english/administrator/components/com_languages/models/language.php
/**
	 * Method to delete from the database.
	 *
	 * @param	integer	$cid	An array of	numeric ids of the rows.
	 *
	 * @return	boolean	True on success/false on failure.
	 * @since	1.6
	 */
Method to delete from the database.
@param       integer $cid    An array of     numeric ids of the rows.

@return      boolean True on success/false on failure.
Method to delete from the database . @param integer $cid An array of numeric ids of the rows . @return boolean True on success / false on failure .
public function delete($cid)
	{
		$table = $this->getTable();
		for ($i = 0, $c = count($cid); $i < $c; $i++)
		{
			$return = $table->load($cid[$i]);
			if ($return === false) {
				$this->setError($table->getError());
				return false;
			}
			$return = $table->delete();
			if ($return === false) {
				$this->setError($table->getError());
				return false;
			}
		}
		$this->cleanCache();
		return true;
	}
public function delete ( $ cid ) { $ table = $ this -> getTable ( ) ; for ( $ i = 0 , $ c = count ( $ cid ) ; $ i < $ c ; $ i ++ ) { $ return = $ table -> load ( $ cid [ $ i ] ) ; if ( $ return === false ) { $ this -> setError ( $ table -> getError ( ) ) ; return false ; } $ return = $ table -> delete ( ) ; if ( $ return === false ) { $ this -> setError ( $ table -> getError ( ) ) ; return false ; } } $ this -> cleanCache ( ) ; return true ; }
Method to delete from the database.
Method to delete from the database .
// Load the row. // Check for an error. // Delete the row. // Check for an error. // Clean the cache.