* * This script is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * test.Functions.php */ include '../cooluri/link.Functions.php'; // test lookindb $sql = 'SELECT title FROM tx_news_domain_model_news WHERE deleted=\'0\' AND hidden=\'0\' AND (uid=$1 OR l10n_parent=$1) AND sys_language_uid={L=0}'; $param = '70'; \Bednarik\Cooluri\Core\Functions::lookindb($sql, $param, new stdClass(), array('L' => '2')); class DB { public static function getInstance() { return new DB(); } public static function query($sql) { echo $sql; return $sql; } public static function fetch_row($res) { return $res; }