|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($major, $minor, $revision, $build, $dateInstalled, $current, $productType, $product, $productClassName, $lazyLoad, $sitewide) | |
| compare ($version) | |
| getBuild () | |
| getCurrent () | |
| getDateInstalled () | |
| getLazyLoad () | |
| getMajor () | |
| getMinor () | |
| getProduct () | |
| getProductClassName () | |
| getProductType () | |
| getRevision () | |
| getSitewide () | |
| getVersionString ($numeric=true) | |
| setBuild ($build) | |
| setCurrent ($current) | |
| setDateInstalled ($dateInstalled) | |
| setLazyLoad ($lazyLoad) | |
| setMajor ($major) | |
| setMinor ($minor) | |
| setProduct ($product) | |
| setProductClassName ($productClassName) | |
| setProductType ($productType) | |
| setRevision ($revision) | |
| setSitewide ($sitewide) | |
Public Member Functions inherited from DataObject | |
| __construct () | |
| addSupportedMetadataAdapter ($metadataAdapter) | |
| extractMetadata ($metadataSchema) | |
| getAdditionalMetadataFieldNames () | |
| & | getAllData () |
| getDAO () | |
| & | getData ($key, $locale=null) |
| getHasLoadableAdapters () | |
| getId () | |
| getLocaleMetadataFieldNames () | |
| getLocalizedData ($key, $preferredLocale=null) | |
| getMetadataFieldNames ($translated=true) | |
| getSetMetadataFieldNames ($translated=true) | |
| getSupportedExtractionAdapters () | |
| getSupportedInjectionAdapters () | |
| getSupportedMetadataSchemas () | |
| hasData ($key, $locale=null) | |
| injectMetadata ($metadataDescription) | |
| removeSupportedMetadataAdapter ($metadataSchemaName) | |
| setAllData (&$data) | |
| setData ($key, $value, $locale=null) | |
| setHasLoadableAdapters ($hasLoadableAdapters) | |
| setId ($id) | |
| unsetData ($key, $locale=null) | |
| upcastTo ($targetObject) | |
Static Public Member Functions | |
| static | fromString ($versionString, $productType=null, $product=null, $productClass='', $lazyLoad=0, $sitewide=1) |
Additional Inherited Members | |
Data Fields inherited from DataObject | |
| $_data = array() | |
| $_extractionAdaptersLoaded = false | |
| $_hasLoadableAdapters = false | |
| $_injectionAdaptersLoaded = false | |
| $_metadataExtractionAdapters = array() | |
| $_metadataInjectionAdapters = array() | |
| Version::__construct | ( | $major, | |
| $minor, | |||
| $revision, | |||
| $build, | |||
| $dateInstalled, | |||
| $current, | |||
| $productType, | |||
| $product, | |||
| $productClassName, | |||
| $lazyLoad, | |||
| $sitewide | |||
| ) |
Constructor.
Definition at line 22 of file Version.inc.php.
References setBuild(), setCurrent(), setDateInstalled(), setLazyLoad(), setMajor(), setMinor(), setProduct(), setProductClassName(), setProductType(), setRevision(), and setSitewide().
| Version::compare | ( | $version | ) |
Compare this version with another version. Returns: < 0 if this version is lower 0 if they are equal > 0 if this version is higher
| $version | string/Version the version to compare against |
Definition at line 50 of file Version.inc.php.
References getVersionString().
|
static |
Static method to return a new version from a version string of the form "W.X.Y.Z".
| $versionString | string |
| $productType | string |
| $product | string |
| $productClass | string |
| $lazyLoad | integer |
| $sitewide | integer |
Definition at line 67 of file Version.inc.php.
References $application, PKPApplication\get(), and Core\getCurrentDate().
Referenced by Installer\parseInstaller(), VersionCheck\parseVersionXML(), and PKPInstall\preInstall().
| Version::getBuild | ( | ) |
Get build version.
Definition at line 149 of file Version.inc.php.
References DataObject\getData().
Referenced by getVersionString().
| Version::getCurrent | ( | ) |
Check if current version.
Definition at line 181 of file Version.inc.php.
References DataObject\getData().
| Version::getDateInstalled | ( | ) |
Get date installed.
Definition at line 165 of file Version.inc.php.
References DataObject\getData().
| Version::getLazyLoad | ( | ) |
Get the lazy load flag for this product
Definition at line 245 of file Version.inc.php.
References DataObject\getData().
| Version::getMajor | ( | ) |
Get major version.
Definition at line 101 of file Version.inc.php.
References DataObject\getData().
Referenced by getVersionString().
| Version::getMinor | ( | ) |
Get minor version.
Definition at line 117 of file Version.inc.php.
References DataObject\getData().
Referenced by getVersionString().
| Version::getProduct | ( | ) |
Get product name.
Definition at line 213 of file Version.inc.php.
References DataObject\getData().
Referenced by getVersionString().
| Version::getProductClassName | ( | ) |
Get the product's class name
Definition at line 229 of file Version.inc.php.
References DataObject\getData().
| Version::getProductType | ( | ) |
Get product type.
Definition at line 197 of file Version.inc.php.
References DataObject\getData().
| Version::getRevision | ( | ) |
Get revision version.
Definition at line 133 of file Version.inc.php.
References DataObject\getData().
Referenced by getVersionString().
| Version::getSitewide | ( | ) |
Get the sitewide flag for this product
Definition at line 261 of file Version.inc.php.
References DataObject\getData().
| Version::getVersionString | ( | $numeric = true | ) |
Return complete version string. @numeric boolean True (default) iff a numeric (comparable) version is to be returned.
Definition at line 278 of file Version.inc.php.
References getBuild(), getMajor(), getMinor(), getProduct(), and getRevision().
Referenced by compare().
| Version::setBuild | ( | $build | ) |
Set build version.
| $build | int |
Definition at line 157 of file Version.inc.php.
References DataObject\setData().
Referenced by __construct().
| Version::setCurrent | ( | $current | ) |
Set if current version.
| $current | int |
Definition at line 189 of file Version.inc.php.
References DataObject\setData().
Referenced by __construct().
| Version::setDateInstalled | ( | $dateInstalled | ) |
Set date installed.
| $dateInstalled | date |
Definition at line 173 of file Version.inc.php.
References DataObject\setData().
Referenced by __construct().
| Version::setLazyLoad | ( | $lazyLoad | ) |
Set the lazy load flag for this product
| $lazyLoad | boolean |
Definition at line 253 of file Version.inc.php.
References DataObject\setData().
Referenced by __construct().
| Version::setMajor | ( | $major | ) |
Set major version.
| $major | int |
Definition at line 109 of file Version.inc.php.
References DataObject\setData().
Referenced by __construct().
| Version::setMinor | ( | $minor | ) |
Set minor version.
| $minor | int |
Definition at line 125 of file Version.inc.php.
References DataObject\setData().
Referenced by __construct().
| Version::setProduct | ( | $product | ) |
Set product name.
| $product | string |
Definition at line 221 of file Version.inc.php.
References DataObject\setData().
Referenced by __construct().
| Version::setProductClassName | ( | $productClassName | ) |
Set the product's class name
| $productClassName | string |
Definition at line 237 of file Version.inc.php.
References DataObject\setData().
Referenced by __construct().
| Version::setProductType | ( | $productType | ) |
Set product type.
| $productType | string |
Definition at line 205 of file Version.inc.php.
References DataObject\setData().
Referenced by __construct().
| Version::setRevision | ( | $revision | ) |
Set revision version.
| $revision | int |
Definition at line 141 of file Version.inc.php.
References DataObject\setData().
Referenced by __construct().
| Version::setSitewide | ( | $sitewide | ) |
Set the sitewide flag for this product
| $sitewide | boolean |
Definition at line 269 of file Version.inc.php.
References DataObject\setData().
Referenced by __construct().