当前位置: 首页>>代码示例>>PHP>>正文


PHP KunenaForum::version_name方法代码示例

本文整理汇总了PHP中KunenaForum::version_name方法的典型用法代码示例。如果您正苦于以下问题:PHP KunenaForum::version_name方法的具体用法?PHP KunenaForum::version_name怎么用?PHP KunenaForum::version_name使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在KunenaForum的用法示例。


在下文中一共展示了KunenaForum::version_name方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: buildVersion

 protected static function buildVersion()
 {
     if ('@kunenaversion@' == '@' . 'kunenaversion' . '@') {
         $file = JPATH_MANIFESTS . '/packages/pkg_kunena.xml';
         $manifest = simplexml_load_file($file);
         self::$version = (string) $manifest->version . '-GIT';
     } else {
         self::$version = strtoupper('@kunenaversion@');
     }
     self::$version_major = substr(self::$version, 0, 3);
     self::$version_date = '@kunenaversiondate@' == '@' . 'kunenaversiondate' . '@' ? JFactory::getDate()->format('Y-m-d') : '@kunenaversiondate@';
     self::$version_name = '@kunenaversionname@' == '@' . 'kunenaversionname' . '@' ? 'Git Repository' : '@kunenaversionname@';
 }
开发者ID:Ruud68,项目名称:Kunena-Forum,代码行数:13,代码来源:forum.php

示例2: buildVersion

	protected static function buildVersion() {
		if ('@kunenaversion@' == '@' . 'kunenaversion' . '@') {
			$xml = KPATH_ADMIN . '/kunena.xml';
			$parser = JFactory::getXMLParser ( 'Simple' );
			$parser->loadFile ( $xml );
			self::$version = $parser->document->getElementByPath ( 'version' )->data () . '-SVN';
		} else {
			self::$version = strtoupper ( '@kunenaversion@' );
		}
		self::$version_date = ('@kunenaversiondate@' == '@' . 'kunenaversiondate' . '@') ? JFactory::getDate()->toMySQL() : '@kunenaversiondate@';
		self::$version_name = ('@kunenaversionname@' == '@' . 'kunenaversionname' . '@') ? 'SVN Revision' : '@kunenaversionname@';
	}
开发者ID:GoremanX,项目名称:Kunena-2.0,代码行数:12,代码来源:forum.php

示例3: buildVersion

	protected static function buildVersion() {
		if ('@kunenaversion@' == '@' . 'kunenaversion' . '@') {
			$changelog = file_get_contents ( KPATH_SITE . '/CHANGELOG.php', NULL, NULL, 0, 1000 );
			preg_match ( '|\$Id\: CHANGELOG.php (\d+) (\S+) (\S+) (\S+) \$|', $changelog, $svn );
			preg_match ( '|~~\s+Kunena\s(\d+\.\d+.\d+\S*)|', $changelog, $version );
		}
		self::$version = ('@kunenaversion@' == '@' . 'kunenaversion' . '@') ? strtoupper ( $version [1] . '-SVN' ) : strtoupper ( '@kunenaversion@' );
		self::$version_date = ('@kunenaversiondate@' == '@' . 'kunenaversiondate' . '@') ? $svn [2] : '@kunenaversiondate@';
		self::$version_name = ('@kunenaversionname@' == '@' . 'kunenaversionname' . '@') ? 'SVN Revision' : '@kunenaversionname@';
		self::$version_build = ('@kunenaversionbuild@' == '@' . 'kunenaversionbuild' . '@') ? $svn [1] : '@kunenaversionbuild@';
	}
开发者ID:rich20,项目名称:Kunena,代码行数:11,代码来源:forum.php

示例4: buildVersion

 protected static function buildVersion()
 {
     if ('2.0.1' == '@' . 'kunenaversion' . '@') {
         $xml = KPATH_ADMIN . '/kunena.xml';
         $parser = JFactory::getXMLParser('Simple');
         $parser->loadFile($xml);
         self::$version = $parser->document->getElementByPath('version')->data() . '-GIT';
     } else {
         self::$version = strtoupper('2.0.1');
     }
     self::$version_major = substr(self::$version, 0, 3);
     self::$version_date = '2012-07-07' == '@' . 'kunenaversiondate' . '@' ? JFactory::getDate()->toMySQL() : '2012-07-07';
     self::$version_name = 'Balozi' == '@' . 'kunenaversionname' . '@' ? 'Git Repository' : 'Balozi';
 }
开发者ID:laiello,项目名称:senluonirvana,代码行数:14,代码来源:forum.php


注:本文中的KunenaForum::version_name方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。