本文整理汇总了PHP中Piwik_DataTable_Filter类的典型用法代码示例。如果您正苦于以下问题:PHP Piwik_DataTable_Filter类的具体用法?PHP Piwik_DataTable_Filter怎么用?PHP Piwik_DataTable_Filter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Piwik_DataTable_Filter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:8,代码来源:PatternRecursive.php
示例2: __construct
public function __construct($table, $detailName, $detailValue)
{
parent::__construct($table);
$this->name = $detailName;
$this->value = $detailValue;
$this->filter();
}
开发者ID:Doluci,项目名称:tomatocart,代码行数:7,代码来源:AddConstantDetail.php
示例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;
}
开发者ID:0h546f6f78696342756e4e59,项目名称:piwik,代码行数:7,代码来源:AddSummaryRow.php
示例4: __construct
public function __construct($table, $columnToFilter, $functionToApply, $functionParameters = null)
{
parent::__construct($table);
$this->functionToApply = $functionToApply;
$this->functionParameters = $functionParameters;
$this->columnToFilter = $columnToFilter;
}
开发者ID:0h546f6f78696342756e4e59,项目名称:piwik,代码行数:7,代码来源:ColumnCallbackReplace.php
示例5: __construct
public function __construct($table, $columnToFilter, $patternToSearch)
{
parent::__construct($table);
$this->patternToSearch = $patternToSearch;
$this->columnToFilter = $columnToFilter;
$this->filter();
}
开发者ID:Doluci,项目名称:tomatocart,代码行数:7,代码来源:Pattern.php
示例6: __construct
public function __construct($table, $columnToFilter, $minimumValue)
{
$this->columnToFilter = $columnToFilter;
self::$minimumValue = $minimumValue;
parent::__construct($table);
$this->filter();
}
开发者ID:Doluci,项目名称:tomatocart,代码行数:7,代码来源:ExcludeLowPopulation.php
示例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;
}
开发者ID:nnnnathann,项目名称:piwik,代码行数:15,代码来源:GroupBy.php
示例8: __construct
public function __construct($table, $columnToFilter, $functionToApply)
{
parent::__construct($table);
$this->functionToApply = $functionToApply;
$this->columnToFilter = $columnToFilter;
$this->filter();
}
开发者ID:Doluci,项目名称:tomatocart,代码行数:7,代码来源:ColumnCallbackReplace.php
示例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();
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:13,代码来源:UpdateColumnsWhenShowAllGoals.php
示例10: __construct
public function __construct($table, $metadataName, $metadataValue)
{
parent::__construct($table);
$this->name = $metadataName;
$this->value = $metadataValue;
$this->filter();
}
开发者ID:Doluci,项目名称:tomatocart,代码行数:7,代码来源:AddConstantMetadata.php
示例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;
}
开发者ID:nnnnathann,项目名称:piwik,代码行数:13,代码来源:MetadataCallbackAddMetadata.php
示例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;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:8,代码来源:Pattern.php
示例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;
}
}
开发者ID:Gninety,项目名称:Microweber,代码行数:15,代码来源:ReplaceColumnNames.php
示例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();
}
开发者ID:Doluci,项目名称:tomatocart,代码行数:15,代码来源:ReplaceColumnNames.php
示例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;
}
开发者ID:0h546f6f78696342756e4e59,项目名称:piwik,代码行数:8,代码来源:ColumnCallbackAddMetadata.php
示例16: __construct
/**
* @param Piwik_DataTable $table
* @param string|null $newLabel new label for summary row
*/
public function __construct($table, $newLabel = null)
{
parent::__construct($table);
if (is_null($newLabel)) {
$newLabel = Piwik_Translate('General_Others');
}
$this->newLabel = $newLabel;
}
开发者ID:nomoto-ubicast,项目名称:piwik,代码行数:12,代码来源:ReplaceSummaryRowLabel.php
示例17: __construct
public function __construct($table, $startRowToSummarize)
{
parent::__construct($table);
$this->startRowToSummarize = $startRowToSummarize;
if ($table->getRowsCount() > $startRowToSummarize + 1) {
$this->filter();
}
}
开发者ID:Doluci,项目名称:tomatocart,代码行数:8,代码来源:AddSummaryRow.php
示例18: __construct
public function __construct($table, $columnToRead, $detailToAdd, $functionToApply)
{
parent::__construct($table);
$this->functionToApply = $functionToApply;
$this->columnToRead = $columnToRead;
$this->detailToAdd = $detailToAdd;
$this->filter();
}
开发者ID:Doluci,项目名称:tomatocart,代码行数:8,代码来源:ColumnCallbackAddDetail.php
示例19: __construct
/**
* Filter constructor.
*
* @param Piwik_DataTable $table
* @param int $offset Starting row (indexed from 0)
* @param int $limit Number of rows to keep (specify -1 to keep all rows)
*/
public function __construct($table, $offset, $limit = null)
{
parent::__construct($table);
$this->offset = $offset;
if (is_null($limit)) {
$limit = -1;
}
$this->limit = $limit;
}
开发者ID:0h546f6f78696342756e4e59,项目名称:piwik,代码行数:16,代码来源:Limit.php
示例20: __construct
/**
* @param Piwik_DataTable $table
* @param string $columnToFilter name of the column to filter
* @param float $minimumValue minimum value for range
* @param float $maximumValue maximum value for range
*/
public function __construct($table, $columnToFilter, $minimumValue = 0.0, $maximumValue = 100.0)
{
parent::__construct($table);
$this->columnToFilter = $columnToFilter;
if ($minimumValue < $maximumValue) {
self::$minimumValue = $minimumValue;
self::$maximumValue = $maximumValue;
}
}
开发者ID:nnnnathann,项目名称:piwik,代码行数:15,代码来源:RangeCheck.php
注:本文中的Piwik_DataTable_Filter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论