コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 /**
  * 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;
 }
コード例 #3
0
 /**
  * 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;
 }
コード例 #4
0
 /**
  * create a new FilterRule instance.
  * @param IMetaModelAttribute $objAttribute the attribute this rule applies to.
  */
 public function __construct()
 {
     parent::__construct();
 }
コード例 #5
0
 /**
  * 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;
 }