Example #1
0
 /**
  * @param Filter $filter
  * @return array
  */
 protected function _renderFilterNotIns(Filter $filter)
 {
     $notIns = array();
     foreach ($filter->getNotIns() as $col => $values) {
         $col = Helper::prepareColumn($col, $filter->getTable());
         $col = $this->_renderColumn($col);
         $values = $this->_renderValues($values);
         $values = implode(", ", $values);
         $notIns[] = "( {$col} NOT IN ({$values}) )";
     }
     return $notIns;
 }
 public function testConstruct()
 {
     $filter = new Filter();
     $filter->setTable("project");
     $this->assertInstanceOf('\\RBM\\SqlQuery\\Table', $filter->getTable());
 }