本文整理汇总了PHP中Piwik_DataTable_Filter类的典型用法代码示例。如果您正苦于以下问题:PHP Piwik_DataTable_Filter类的具体用法?PHP Piwik_DataTable_Filter怎么用?PHP Piwik_DataTable_Filter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Piwik_DataTable_Filter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct( $table, $columnToFilter, $patternToSearch )
{
parent::__construct($table);
$this->patternToSearch = $patternToSearch;
$this->patternToSearchQuoted = Piwik_DataTable_Filter_Pattern::getPatternQuoted($patternToSearch);
$this->patternToSearch = $patternToSearch;//preg_quote($patternToSearch);
$this->columnToFilter = $columnToFilter;
}
示例2: __construct
public function __construct($table, $detailName, $detailValue)
{
parent::__construct($table);
$this->name = $detailName;
$this->value = $detailValue;
$this->filter();
}
示例3: __construct
public function __construct($table, $startRowToSummarize, $labelSummaryRow = Piwik_DataTable::LABEL_SUMMARY_ROW, $columnToSortByBeforeTruncating = null)
{
parent::__construct($table);
$this->startRowToSummarize = $startRowToSummarize;
$this->labelSummaryRow = $labelSummaryRow;
$this->columnToSortByBeforeTruncating = $columnToSortByBeforeTruncating;
}
示例4: __construct
public function __construct($table, $columnToFilter, $functionToApply, $functionParameters = null)
{
parent::__construct($table);
$this->functionToApply = $functionToApply;
$this->functionParameters = $functionParameters;
$this->columnToFilter = $columnToFilter;
}
示例5: __construct
public function __construct($table, $columnToFilter, $patternToSearch)
{
parent::__construct($table);
$this->patternToSearch = $patternToSearch;
$this->columnToFilter = $columnToFilter;
$this->filter();
}
示例6: __construct
public function __construct($table, $columnToFilter, $minimumValue)
{
$this->columnToFilter = $columnToFilter;
self::$minimumValue = $minimumValue;
parent::__construct($table);
$this->filter();
}
示例7: __construct
/**
* Constructor.
*
* @param Piwik_DataTable $table The DataTable to filter.
* @param string $groupByColumn The column name to reduce.
* @param mixed $reduceFunction The reduce function. This must alter the $groupByColumn in some way.
* @param array $parameters Extra parameters to supply to the reduce function.
*/
public function __construct($table, $groupByColumn, $reduceFunction, $parameters = array())
{
parent::__construct($table);
$this->groupByColumn = $groupByColumn;
$this->reduceFunction = $reduceFunction;
$this->parameters = $parameters;
}
示例8: __construct
public function __construct($table, $columnToFilter, $functionToApply)
{
parent::__construct($table);
$this->functionToApply = $functionToApply;
$this->columnToFilter = $columnToFilter;
$this->filter();
}
示例9: __construct
/**
* @param $table
* @param $enable Automatically set to true when filter_update_columns_when_show_all_goals is found in the API request
* @param $processOnlyIdGoal
* @return unknown_type
*/
public function __construct( $table, $enable = true, $processOnlyIdGoal )
{
parent::__construct($table);
$this->mappingIdToNameGoal = Piwik_Archive::$mappingFromIdToNameGoal;
$this->processOnlyIdGoal = $processOnlyIdGoal;
$this->filter();
}
示例10: __construct
public function __construct($table, $metadataName, $metadataValue)
{
parent::__construct($table);
$this->name = $metadataName;
$this->value = $metadataValue;
$this->filter();
}
示例11: __construct
/**
* @param Piwik_DataTable $table
* @param string $metadataToRead
* @param string $metadataToAdd
* @param callback $functionToApply
*/
public function __construct($table, $metadataToRead, $metadataToAdd, $functionToApply)
{
parent::__construct($table);
$this->functionToApply = $functionToApply;
$this->metadataToRead = $metadataToRead;
$this->metadataToAdd = $metadataToAdd;
}
示例12: __construct
public function __construct( $table, $columnToFilter, $patternToSearch, $invertedMatch = false )
{
parent::__construct($table);
$this->patternToSearch = $patternToSearch;
$this->patternToSearchQuoted = self::getPatternQuoted($patternToSearch);
$this->columnToFilter = $columnToFilter;
$this->invertedMatch = $invertedMatch;
}
示例13: __construct
/**
* @param DataTable Table
* @param array Mapping to apply. Must have the format
* array( OLD_COLUMN_NAME => NEW_COLUMN NAME,
* OLD_COLUMN_NAME2 => NEW_COLUMN NAME2,
* )
*/
public function __construct($table, $mappingToApply = null)
{
parent::__construct($table);
$this->mappingToApply = Piwik_Archive::$mappingFromIdToName;
if (!is_null($mappingToApply)) {
$this->mappingToApply = $mappingToApply;
}
}
示例14: __construct
/**
* @param DataTable Table
* @param array Mapping to apply. Must have the format
* array( OLD_COLUMN_NAME => NEW_COLUMN NAME,
* OLD_COLUMN_NAME2 => NEW_COLUMN NAME2,
* )
*/
public function __construct($table, $mappingToApply = null)
{
parent::__construct($table);
if (!is_null($mappingToApply)) {
$this->mappingToApply = $mappingToApply;
}
$this->filter();
}
示例15: __construct
public function __construct($table, $columnToRead, $metadataToAdd, $functionToApply = null, $functionParameters = null)
{
parent::__construct($table);
$this->functionToApply = $functionToApply;
$this->functionParameters = $functionParameters;
$this->columnToRead = $columnToRead;
$this->metadataToAdd = $metadataToAdd;
}