/** * Resets the query. * @access public */ function reset() { parent::reset(); // an UPDATE query $this->_type = GENERIC; // default query configuration: // no table to insert into $this->_sql = array(); }
/** * Overwrite the constructor so the query is executed directly. * * @param string $table */ public function __construct($table = null) { parent::__construct($table); $this->execute(); }
/** * Resets the query. * @access public */ function reset() { parent::reset(); // an UPDATE query $this->_type = UPDATE; // default query configuration: // no table to update $this->_table = ""; // no columns to update $this->_columns = array(); // one row of values with no values specified $this->_values = array(); // no WHERE condition, by default $this->_condition = array(); }
/** * Resets the query. * @access public */ function reset() { parent::reset(); // a DELETE query $this->_type = DELETE; // default query configuration: // no table to delete from $this->_table = ""; // no WHERE condition, by default $this->_condition = array(); }
/** * Resets the query. * @access public */ function reset() { parent::reset(); // an UPDATE query $this->_type = SELECT; // default query configuration: // no tables to select from $this->_tables = array(); // no columns to select $this->_columns = array(); // no WHERE condition, by default $this->_condition = array(); // no GROUP BY clause $this->_groupBy = array(); $this->_having = ""; // no ORDER BY clause $this->_orderBy = array(); // no LIMIT clause $this->_numberOfRows = 0; $this->_startFromRow = 0; }
/** * Resets the query. * @access public */ function reset() { parent::reset(); // an UPDATE query $this->_type = INSERT; // default query configuration: // no table to insert into $this->_table = ""; // no columns to insert $this->_columns = array(); // no rows of values to add $this->_values = array(); $this->_column = ""; $this->_sequence = ""; }
/** * @param array $parameterList * @param string $queryObject */ public function __construct(array $parameterList, $queryObject) { parent::__construct($parameterList); $this->getParameterBag()->setParameter('queryClassName', $queryObject); }