/** * Sets SQL filters. * This is a lowlevel method to set the SQL filter array. * The format of this array is: * * <code> * array( * '<MODE, i.e. 'r' for read, 'w' for write>' => array( * '<TABLE NAME>' => array( * '<COLUMN NAME>' => '<SQL>' * ) * ) * ) * </code> * * Example: * * <code> * array( * QueryWriter::C_SQLFILTER_READ => array( * 'book' => array( * 'title' => ' LOWER(book.title) ' * ) * ) * </code> * * Note that you can use constants instead of magical chars * as keys for the uppermost array. * This is a lowlevel method. For a more friendly method * please take a look at the facade: R::bindFunc(). * * @param array list of filters to set * * @return void */ public static function setSQLFilters($sqlFilters, $safeMode = false) { self::$flagSQLFilterSafeMode = (bool) $safeMode; self::$sqlFilters = $sqlFilters; }
/** * Clears renames. * * @return void */ public static function clearRenames() { self::$renames = array(); }