Example #1
0
 /**
 * 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;
     }
 }