Beispiel #1
0
 public function where($expression, $parameters = null)
 {
     $types = array('host' => 1, 'service' => 2, 'contact' => 10);
     if ($expression === 'object_type') {
         parent::where('object_type_id', $types[$parameters]);
     } else {
         parent::where($expression, $parameters);
     }
     return $this;
 }
Beispiel #2
0
 public function where($condition, $value = null)
 {
     $this->filter->addFilter(Filter::where($condition, $value));
     $this->query->where($condition, $value);
     return $this;
 }
Beispiel #3
0
 public function where($condition, $value = null)
 {
     $this->query->where($condition, $value);
     return $this;
 }