static function version($withRelease = true, $asAlias = false, $withState = true) { if ($asAlias) { $versionText = eZPublishSDK::alias(); if ($withState) { $versionText .= "-" . eZPublishSDK::state(); } } else { $versionText = 'Community Project ' . eZPublishSDK::majorVersion() . '.' . eZPublishSDK::minorVersion(); // $development = eZPublishSDK::developmentVersion(); // if ( $development !== false ) // $versionText .= '.' . $development; } return $versionText; }
function fetchState() { return array('result' => eZPublishSDK::state()); }