Exemplo n.º 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;
 }