/** * 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. */ public function __construct($strQueryString, $arrParams = array(), $strIdColumn = 'id') { parent::__construct(null); $this->strQueryString = $strQueryString; $this->arrParams = $arrParams; $this->strIdColumn = $strIdColumn; }
/** * 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. */ public function __construct($objAttribute, $strValue = array(), $arrValidLanguages = array()) { parent::__construct(null); $this->objAttribute = $objAttribute; $this->strValue = $strValue; $this->arrValidLanguages = $arrValidLanguages; }
/** * 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; }
/** * create a new FilterRule instance. * @param IMetaModelAttribute $objAttribute the attribute this rule applies to. */ public function __construct() { parent::__construct(); }
/** * create a new FilterRule instance. * * @param int[] $arrIds static list of ids that shall be returned as matches. */ public function __construct($arrIds) { parent::__construct(null); $this->arrIds = $arrIds; }