예제 #1
0
 /**
  *
  * @return Gpf_Db_Table_Versions
  */
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
예제 #2
0
 private function getInstalledVersion()
 {
     try {
         return Gpf_Db_Table_Versions::getInstance()->getLatestVersion($this->application);
     } catch (Exception $e) {
     }
     return '0.0.0';
 }
예제 #3
0
 protected function computeLatestInstalledApplicationVersion()
 {
     return $this->installedVersion = Gpf_Db_Table_Versions::getInstance()->getLatestVersion($this->getCode());
 }
예제 #4
0
 protected function computeLatestInstalledApplicationVersion()
 {
     return Gpf_Db_Table_Versions::getInstance()->getLatestVersion(array($this->getCode(), 'paplite'));
 }
예제 #5
0
 public function init()
 {
     $this->setTable(Gpf_Db_Table_Versions::getInstance());
     parent::init();
 }