/**
  * constructor
  * @param string $column_name
  * @param mixed $argument
  * @param string $operation
  * @param string $pipe
  * @return void
  */
 function __construct($column_name, $argument, $operation, $pipe = "")
 {
     if ($argument === null) {
         $this->_show = false;
         return;
     }
     parent::__construct($column_name, $argument, $operation, $pipe);
     $this->_value = $argument->getValue();
 }
 /**
  * constructor
  * @param string $column_name
  * @param mixed $argument
  * @param string $operation
  * @param string $pipe
  * @return void
  */
 function __construct($column_name, $argument, $operation, $pipe = "")
 {
     parent::__construct($column_name, $argument, $operation, $pipe);
     $tmpArray = array('in' => 1, 'notin' => 1, 'not_in' => 1);
     if (isset($tmpArray[$operation])) {
         if (is_array($argument)) {
             $argument = implode($argument, ',');
         }
         $this->_value = '(' . $argument . ')';
     } else {
         $this->_value = $argument;
     }
 }
 /**
  * @param $_key
  * @param $_value
  */
 function __construct($_key, $_value)
 {
     parent::__construct($_key, '<', $_value);
 }
Esempio n. 4
0
 /**
  * @param string $column
  * @param mixed  $value
  */
 public function __construct($column, $value)
 {
     parent::__construct($column, "LIKE ?", array($value));
 }
Esempio n. 5
0
 /**
  * The route can accept a simple pattern syntax: `:id` to match a path
  * segment named `id`, `*path` to match a portion of the URL named
  * `path` which may span multiple segments , and `(optional)` to an
  * optional section. Named parameters will be collected in the array
  * `$data->parameters`.
  *
  * @param string $route A URL pattern. 
  */
 public function __construct($route, $callback)
 {
     parent::__construct($callback);
     $this->route = $route;
 }
Esempio n. 6
0
 /**
  * constructor
  * @param string $column_name
  * @param mixed $argument
  * @param string $operation
  * @param string $pipe
  * @return void
  */
 function __construct($column_name, $argument, $operation, $pipe = "")
 {
     parent::__construct($column_name, $argument, $operation, $pipe);
     $this->_value = $this->argument->toString();
 }
 /**
  * @param $_key
  * @param $_value
  */
 function __construct($_key, $_value)
 {
     parent::__construct($_key, 'LIKE', '%' . $_value . '%');
 }