Skip to content
Extraits de code Groupes Projets
Valider 562321e3 rédigé par clearcode's avatar clearcode
Parcourir les fichiers

Added methods to get current value of and override $uniqIdTable variable that...

Added methods to get current value of and override $uniqIdTable variable that is used as the DIV ID in the rendered HTML



git-svn-id: http://dev.piwik.org/svn/trunk@2337 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent b68fd22f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -135,6 +135,8 @@ abstract class Piwik_ViewDataTable
* @var array
*/
protected $columnsToDisplay = array();
protected $uniqIdTable = null;
/**
* Method to be implemented by the ViewDataTable_*.
......@@ -442,7 +444,7 @@ abstract class Piwik_ViewDataTable
* @see datatable.js
* @return string
*/
protected function getUniqueIdViewDataTable()
protected function loadUniqueIdViewDataTable()
{
// if we request a subDataTable the $this->currentControllerAction DIV ID is already there in the page
// we make the DIV ID really unique by appending the ID of the subtable requested
......@@ -461,6 +463,27 @@ abstract class Piwik_ViewDataTable
}
return $uniqIdTable;
}
/**
* Sets the $uniqIdTable variable that is used as the DIV ID in the rendered HTML
*/
public function setUniqueIdViewDataTable($uniqIdTable)
{
$this->viewProperties['uniqueId'] = $uniqIdTable;
$this->uniqIdTable = $uniqIdTable;
}
/**
* Returns current value of $uniqIdTable variable that is used as the DIV ID in the rendered HTML
*/
public function getUniqueIdViewDataTable()
{
if( $this->uniqIdTable == null )
{
$this->uniqIdTable = $this->loadUniqueIdViewDataTable();
}
return $this->uniqIdTable;
}
/**
* Returns array of properties, eg. "show_footer", "show_search", etc.
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter