has() public method

public has ( $table, $join, $where = null )
Ejemplo n.º 1
0
 /**
  * @param $table
  * @param $where
  * @return bool
  */
 public function has($table, $where)
 {
     if (empty($this->_reader)) {
         return $this->_writer->has($table, $where);
     } else {
         return $this->_reader->has($table, $where);
     }
 }
Ejemplo n.º 2
0
 public function has($where, $extCall = false)
 {
     $this->gp->checkAccess(__FUNCTION__, $extCall);
     if (is_numeric($where)) {
         $where = array('id' => $where);
     }
     if (!is_array($where)) {
         throw new FatalError('Invalid argument');
     }
     return $this->dbConnection->has($this->dbTable, $where);
 }