本文整理匯總了PHP中Database_Connection::getInstance方法的典型用法代碼示例。如果您正苦於以下問題:PHP Database_Connection::getInstance方法的具體用法?PHP Database_Connection::getInstance怎麽用?PHP Database_Connection::getInstance使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Database_Connection
的用法示例。
在下文中一共展示了Database_Connection::getInstance方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: delete
/**
* This method will delete the rows in the given tables, that matches the WHERE-clause.
*
* @param array|string $m_table_names the name of all updating tables in an array
(or simply one table as a string)
* @param array $a_table_alias the alias of the tables (leave empty for no alias)
* @param array $a_where_clause an array with the where clause params
* (column_name => column_value)
*
* @return null|Database_Result the result set of the statement
*/
public static function delete($m_table_names, $a_where_clause, $a_table_alias = array())
{
try {
return Database_Result::getInstance(Database_Connection::getInstance()->delete($m_table_names, $a_where_clause, $a_table_alias));
} catch (LOGD_Exception $exc) {
$exc->print_error();
return null;
}
}