commit() публичный Метод

This is useful if you make a bunch of setProperty() calls at once and you dont want to update the database every time. Instead you can set all the variables without committing them, then call this function.
public commit ( array $p_ignoreColumns = null ) : boolean
$p_ignoreColumns array Specify column names to ignore when doing the commit.
Результат boolean Return TRUE if the database was updated, false otherwise.
Пример #1
0
	/**
	 * Commit current values to the database.
	 * The values "TimeCreated" and "LastModified" are ignored.
	 *
	 * @return boolean
	 *		Return TRUE if the database was updated, false otherwise.
	 */
	public function commit()
	{
		return parent::commit(array("TimeCreated", "LastModified"));
	} // fn commit
Пример #2
0
 /**
  * Commit current values to the database.
  * The values "TimeCreated" and "LastModified" are ignored.
  *
  * @return boolean
  *                 Return TRUE if the database was updated, false otherwise.
  */
 public function commit($p_ignoreColumns = NULL)
 {
     return parent::commit(array("TimeCreated", "LastModified"));
 }