Esempio n. 1
0
 /**
  * Constructor
  *
  * @param   object  $ele
  * @param   string  $condition
  **/
 function __construct($ele = null, $condition = 'AND')
 {
     parent::__construct();
     if (isset($ele)) {
         $this->add($ele, $condition);
     }
 }
Esempio n. 2
0
 /**
  * Constructor
  *
  * @param   string  $column
  * @param   string  $value
  * @param   string  $operator
  **/
 function __construct($column = '', $value = '', $operator = '=', $prefix = '', $function = '')
 {
     parent::__construct();
     $this->prefix = $prefix;
     $this->function = $function;
     $this->column = $column;
     $this->value = $value;
     $this->operator = $operator;
 }