Пример #1
0
 /**
  * @param Filter $filter
  * @return array
  */
 protected function _renderFilterBooleans(Filter $filter)
 {
     $booleans = $filter->getBooleans();
     array_walk($booleans, function (&$boolean) {
         $boolean = "(ISNULL(" . $this->_renderColumn($boolean["subject"]) . ", 0) = " . $this->_renderBoolean($boolean["value"]) . " )";
     });
     return $booleans;
 }
 public function testConstruct()
 {
     $filter = new Filter();
     $filter->setTable("project");
     $this->assertInstanceOf('\\RBM\\SqlQuery\\Table', $filter->getTable());
 }