Beispiel #1
0
 public function execute($params = array())
 {
     if (array_key_exists('binds', $params)) {
         $binds = $params['binds'];
         $this->query->bind($binds);
     }
     if (array_key_exists('order', $params)) {
         $order = $params['order'];
         $this->query->orderBy($order);
     }
     if (array_key_exists('limit', $params)) {
         $limit = $params['limit'];
         $this->query->limit($limit[0], $limit[1]);
     }
     try {
         return $this->query->execute();
     } catch (Exception $e) {
         return false;
     }
 }