Submit
Path:
~
/
/
opt
/
psa
/
admin
/
plib
/
modules
/
galileo
/
vendor
/
plesk
/
db-upgrader
/
src
/
File Content:
Versions.php
<?php // Copyright 1999-2017. Parallels IP Holdings GmbH. All Rights Reserved. namespace PleskExt\Upgrader; /** * Broker for versions table. */ class Versions extends \Zend_Db_Table_Abstract { protected $_name = 'version'; public function getDbVersion() { if (!$this->exists()) { return '0'; } return $this->fetchAll()->current()->dbVersion; } public function setDbVersion($version) { /** @var \Zend_Db_Table_Row_Abstract $row */ $row = $this->fetchAll()->current(); $row->dbVersion = $version; $row->save(); } public function exists() { return !empty($this->getAdapter()->describeTable('version')); } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
Migrations
---
0755
Exception.php
148 bytes
0644
Migration.php
1922 bytes
0644
MigrationManager.php
2041 bytes
0644
Versions.php
727 bytes
0644
N4ST4R_ID | Naxtarrr