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"));
 }