public function setUp() { parent::setUp(); if (!self::$connectionSet) { LudoDb::setConnectionType('PDO'); } }
/** * Constructs a new LudoDBModel/LudoDBCollection */ public function __construct() { $this->db = LudoDb::getInstance(); if (func_num_args() > 0) { $this->arguments = $this->escapeArguments(func_get_args()); } $this->parser = $this->configParser(); $this->onConstruct(); }
/** * Clear all cache record for given class name / resource. * @param $className */ public static function clearByClass($className) { LudoDb::getInstance()->query("delete from ludo_db_cache where class_name=?", array($className)); }