多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# Class Phalcon\\Version # Class **Phalcon\\Version** This class allows to get the installed version of the framework ### Constants *integer***VERSION\_MAJOR** *integer***VERSION\_MEDIUM** *integer***VERSION\_MINOR** *integer***VERSION\_SPECIAL** *integer***VERSION\_SPECIAL\_NUMBER** ### Methods protected static **\_getVersion** () Area where the version number is set. The format is as follows: ABBCCDE A - Major version B - Med version (two digits) C - Min version (two digits) D - Special release: 1 = Alpha, 2 = Beta, 3 = RC, 4 = Stable E - Special release version i.e. RC1, Beta2 etc. final protected static **\_getSpecial** (*unknown* $special) Translates a number to a special release If Special release = 1 this function will return ALPHA public static **get** () Returns the active version (string) ``` <pre class="calibre14">``` <?php echo Phalcon\Version::get(); ``` ``` public static **getId** () Returns the numeric active version ``` <pre class="calibre14">``` <?php echo Phalcon\Version::getId(); ``` ``` public static **getPart** (*unknown* $part) Returns a specific part of the version. If the wrong parameter is passed it will return the full version ``` <pre class="calibre14">``` <?php echo Phalcon\Version::getPart(Phalcon\Version::VERSION_MAJOR); ``` ``` | - [索引](# "总目录") - [下一页](# "Interface Phalcon\Acl\AdapterInterface") | - [上一页](# "Class Phalcon\Validation\Validator\Url") | - [API Indice](#) »