Exemplo n.º 1
0
 protected function exe($sql, $arrayValues = array())
 {
     $options = array();
     if ($this->connection) {
         $options['connection'] =& $this->connection;
     }
     if ($this->trigger) {
         if (count($arrayValues) > 0) {
             return \KMapper\MySql::execute($sql, $arrayValues, $options);
         }
         return \KMapper\MySql::execute($sql, $this->arrayParams, $options);
     } else {
         return new \KMapper\KDataObject(array());
     }
 }