企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 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](#) »