/** * Creates an instance of a simple query filter rule. * * @param IAttribute $objAttribute The attribute to be searched. * * @param string $strValue The value to be searched for. Wildcards (* and ? allowed). * * @param array $arrValidLanguages The list of valid languages to be searched in. */ public function __construct($objAttribute, $strValue = '', $arrValidLanguages = array()) { parent::__construct(); $this->objAttribute = $objAttribute; $this->strValue = $strValue; $this->arrValidLanguages = $arrValidLanguages; }
/** * Creates an instance of a simple query filter rule. * * @param string $strQueryString The query that shall be executed. * * @param array $arrParams The query parameters that shall be used. * * @param string $strIdColumn The column where the item id is stored in. * * @param Database $dataBase The database to use. */ public function __construct($strQueryString, $arrParams = array(), $strIdColumn = 'id', $dataBase = null) { parent::__construct(); if ($dataBase === null) { $dataBase = \Database::getInstance(); } $this->strQueryString = $strQueryString; $this->arrParams = $arrParams; $this->strIdColumn = $strIdColumn; $this->dataBase = $dataBase; }
/** * Create a new FilterRule instance. * * @param boolean $stopAfterMatch Flag determining if filtering shall return * the first non-empty match. */ public function __construct($stopAfterMatch = false) { parent::__construct(); $this->stopAfterMatch = $stopAfterMatch; }
/** * {@inheritDoc} */ public function __construct(AbstractSelect $objAttribute, $strValue) { parent::__construct(); $this->objAttribute = $objAttribute; $this->value = $strValue; }
/** * Create a new FilterRule instance. * * @param string[]|null $arrIds Static list of ids that shall be returned as matches. */ public function __construct($arrIds) { parent::__construct(); $this->arrIds = $arrIds; }