本文整理汇总了PHP中Piwik_ViewDataTable::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Piwik_ViewDataTable::init方法的具体用法?PHP Piwik_ViewDataTable::init怎么用?PHP Piwik_ViewDataTable::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Piwik_ViewDataTable
的用法示例。
在下文中一共展示了Piwik_ViewDataTable::init方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
/**
* @see Piwik_ViewDataTable::init()
*/
function init($currentControllerName, $currentControllerAction, $moduleNameAndMethod)
{
parent::init($currentControllerName, $currentControllerAction, $moduleNameAndMethod);
$this->dataTableTemplate = 'Home/templates/cloud.tpl';
$this->disableOffsetInformation();
$this->disableExcludeLowPopulation();
}
示例2: init
/**
* @see Piwik_ViewDataTable::init()
*/
function init($currentControllerName,
$currentControllerAction,
$apiMethodToRequestDataTable,
$controllerActionCalledWhenRequestSubTable = null)
{
parent::init($currentControllerName,
$currentControllerAction,
$apiMethodToRequestDataTable,
$controllerActionCalledWhenRequestSubTable);
$this->dataTableTemplate = 'CoreHome/templates/graph.tpl';
$this->disableOffsetInformationAndPaginationControls();
$this->disableExcludeLowPopulation();
$this->disableSearchBox();
$this->enableShowExportAsImageIcon();
$this->parametersToModify = array(
'viewDataTable' => $this->getViewDataTableIdToLoad(),
// in the case this controller is being executed by another controller
// eg. when being widgetized in an IFRAME
// we need to put in the URL of the graph data the real module and action
'module' => $currentControllerName,
'action' => $currentControllerAction,
);
}
示例3: init
/**
* @see Piwik_ViewDataTable::init()
*/
function init($currentControllerName, $currentControllerAction, $apiMethodToRequestDataTable, $controllerActionCalledWhenRequestSubTable = null)
{
parent::init($currentControllerName, $currentControllerAction, $apiMethodToRequestDataTable, $controllerActionCalledWhenRequestSubTable);
$this->dataTableTemplate = 'CoreHome/templates/cloud.tpl';
$this->disableOffsetInformation();
$this->disableExcludeLowPopulation();
}
示例4: init
/**
* @see Piwik_ViewDataTable::init()
*
*/
function init($currentControllerName, $currentControllerAction, $moduleNameAndMethod)
{
parent::init($currentControllerName, $currentControllerAction, $moduleNameAndMethod);
$this->dataTableTemplate = 'Home/templates/graph.tpl';
$this->disableOffsetInformation();
$this->disableExcludeLowPopulation();
$this->disableSearchBox();
$this->parametersToModify = array('viewDataTable' => $this->valueParameterViewDataTable, 'module' => $currentControllerName, 'action' => $currentControllerAction);
}
示例5: init
/**
* @see Piwik_ViewDataTable::init()
*/
function init($currentControllerName, $currentControllerAction, $apiMethodToRequestDataTable, $controllerActionCalledWhenRequestSubTable = null)
{
parent::init($currentControllerName, $currentControllerAction, $apiMethodToRequestDataTable, $controllerActionCalledWhenRequestSubTable);
$this->dataTableTemplate = 'CoreHome/templates/datatable.tpl';
$this->variablesDefault['enable_sort'] = '1';
$this->setSortedColumn('nb_visits', 'desc');
$this->setLimit(Zend_Registry::get('config')->General->datatable_default_limit);
$this->handleLowPopulation();
}
示例6: init
/**
* @see Piwik_ViewDataTable::init()
* @param string $currentControllerName
* @param string $currentControllerAction
* @param string $apiMethodToRequestDataTable
* @param null $controllerActionCalledWhenRequestSubTable
*/
function init($currentControllerName, $currentControllerAction, $apiMethodToRequestDataTable, $controllerActionCalledWhenRequestSubTable = null)
{
parent::init($currentControllerName, $currentControllerAction, $apiMethodToRequestDataTable, $controllerActionCalledWhenRequestSubTable);
$this->dataTableTemplate = 'CoreHome/templates/graph.tpl';
$this->disableOffsetInformationAndPaginationControls();
$this->disableExcludeLowPopulation();
$this->disableSearchBox();
$this->enableShowExportAsImageIcon();
$this->parametersToModify = array('viewDataTable' => $this->getViewDataTableIdToLoad(), 'module' => $currentControllerName, 'action' => $currentControllerAction);
}
示例7: init
/**
* @see Piwik_ViewDataTable::init()
*/
function init($currentControllerName, $currentControllerAction, $moduleNameAndMethod, $actionToLoadTheSubTable = null)
{
parent::init($currentControllerName, $currentControllerAction, $moduleNameAndMethod, $actionToLoadTheSubTable);
$this->dataTableTemplate = 'Home/templates/datatable.tpl';
$this->variablesDefault['enable_sort'] = true;
// load general columns translations
$this->setColumnTranslation('nb_visits', Piwik_Translate('General_ColumnNbVisits'));
$this->setColumnTranslation('label', Piwik_Translate('General_ColumnLabel'));
$this->setColumnTranslation('nb_uniq_visitors', Piwik_Translate('General_ColumnNbUniqVisitors'));
}
示例8: init
/**
* @see Piwik_ViewDataTable::init()
*/
function init($currentControllerName, $currentControllerAction, $moduleNameAndMethod)
{
parent::init($currentControllerName, $currentControllerAction, $moduleNameAndMethod);
}