예제 #1
0
 public static function getInstance()
 {
     if (!self::$blogs_instance) {
         self::$blogs_instance = new Blogposts();
     }
     return self::$blogs_instance;
 }
예제 #2
0
 function setCollectionClass()
 {
     $this->Collection = Blogposts::getInstance();
 }
예제 #3
0
 function _update($data)
 {
     $tableName = Blogposts::getInstance()->tableName;
     $this->dropCache();
     return parent::_update($data, $tableName);
 }