예제 #1
0
 public function setUp()
 {
     parent::setUp();
     if (!self::$connectionSet) {
         LudoDb::setConnectionType('PDO');
     }
 }
예제 #2
0
 /**
  * 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();
 }
예제 #3
0
 /**
  * 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));
 }