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