Horde_Db_Adapter::execute PHP Method

execute() public method

Executes the SQL statement in the context of this connection.
Deprecation: Deprecated for external usage. Use select() instead.
public execute ( string $sql, mixed $arg1 = null, string $arg2 = null ) : mixed
$sql string SQL statement.
$arg1 mixed Either an array of bound parameters or a query name.
$arg2 string If $arg1 contains bound parameters, the query name.
return mixed
    public function execute($sql, $arg1 = null, $arg2 = null);

Usage Example

Example #1
0
 /**
  * Sets a script running on the backend.
  *
  * @param array $script  The filter script information. Passed elements:
  *                       - 'name': (string) the script name.
  *                       - 'recipes': (array) the filter recipe objects.
  *                       - 'script': (string) the filter script.
  *
  * @throws Ingo_Exception
  */
 public function setScriptActive($script)
 {
     $this->_connect();
     try {
         foreach ($script['recipes'] as $recipe) {
             $this->_db->execute($recipe['object']->generate());
         }
     } catch (Horde_Db_Exception $e) {
         throw new Ingo_Exception($e);
     }
 }
All Usage Examples Of Horde_Db_Adapter::execute