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


PHP YiiBase::getVersion方法代码示例

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


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

示例1: renderContent

    protected function renderContent()
    {
        $zurmoVersion = self::getZurmoVersionDisplayContent();
        $yiiVersion = YiiBase::getVersion();
        if (method_exists('R', 'getVersion')) {
            $redBeanVersion = ZurmoRedBean::getVersion();
        } else {
            $redBeanVersion = '< 1.2.9.1';
        }
        // Begin Not Coding Standard
        $content = '<div>
                            <h1>Zurmo Open Source CRM</h1>';
        $content .= '<div id="aboutText" class="clearfix">
                            <div id="leftCol">
                                <div id="ZurmoLogo" class="zurmo-logo"></div>
                                <div><p>';
        $content .= Zurmo::t('ZurmoModule', '<strong>Zurmo</strong> is a <strong>Customer Relationship Management</strong> system by <strong>Zurmo Inc.</strong>');
        $content .= '</p>';
        $content .= '<p>';
        $content .= Zurmo::t('ZurmoModule', 'Visit <strong>Zurmo Inc.</strong> at {url}.', array('{url}' => '<a href="http://www.zurmo.com">http://www.zurmo.com</a>'));
        $content .= '<br/>';
        $content .= '</p>';
        $content .= '<p>';
        $content .= Zurmo::t('ZurmoModule', '<strong>Achieve more with a Zurmo subscription</strong> {url}.', array('{url}' => '<a href="http://www.zurmo.com/needSupport.php?source=about">Learn More</a>'));
        $content .= '<br/>';
        $content .= '</p>';
        $content .= '</div>
                            <div>
                                <h3>Core Team</h3>
                                <ul>
                                    <li>Amit Ashckenazi</li>
                                    <li>Laura Engel</li>
                                    <li>Jason Green</li>
                                    <li>Stafford McKay</li>
                                    <li>Sushil Meher</li>
                                    <li>Nabeel Mushtaq</li>
                                    <li>Ivica Nedeljkovic</li>
                                    <li>Ross Peetoom</li>
                                    <li>Sérgio Peixoto</li>
                                    <li>Muhammad Shoaib</li>
                                    <li>Mayank Singhai</li>
                                    <li>Ray Stoeckicht</li>
                                </ul>
                            </div>
                            <div>
                                <h3>Special Thanks</h3>
                                <ul>
                                    <li>Richard Baldwin  - CRM Processes</li>
                                    <li>Nev Delap        - Infrastructure</li>
                                    <li>Sergey Fayngold  - Language Infrastructure</li>
                                    <li>Theresa Neil     - User Interface Design</li>
                                    <li>Mandy Robinson   - Icons</li>
                                    <li>Sacha Telgenhof  - Language Infrastructure</li>
                                    <li>Subtle Patterns  - Background Textures</li>
                                </ul>
                            </div>';
        $content .= '<div>';
        $content .= '<p>';
        $content .= Zurmo::t('ZurmoModule', 'Visit the <strong>Zurmo Open Source Project</strong> at {url}.', array('{url}' => '<a href="http://www.zurmo.org">http://www.zurmo.org</a>'));
        $content .= '<br/>';
        $content .= '</p>';
        $content .= '<p>';
        $content .= Zurmo::t('ZurmoModule', '<strong>Zurmo</strong> is licensed under the AGPLv3.  You can read the license <a href="http://www.zurmo.org/license">here</a>.');
        $content .= '</p></div>';
        $content .= '</div>';
        $content .= '<div id="rightCol">';
        $content .= static::renderSocialLinksContent();
        $content .= '<div><h3>Application Info</h3><p>';
        $content .= Zurmo::t('ZurmoModule', 'This is <strong>version {zurmoVersion}</strong> of <strong>Zurmo</strong>.', array('{zurmoVersion}' => $zurmoVersion));
        $content .= '</p>';
        $content .= '<p>';
        $content .= Zurmo::t('ZurmoModule', '<strong>Zurmo</strong> uses the following great Open Source tools and frameworks:');
        $content .= '<ul>';
        $content .= '<li>';
        $content .= Zurmo::t('ZurmoModule', '{url} (version {version} is installed)', array('{url}' => '<a href="http://www.yiiframework.com">Yii Framework</a>', '{version}' => $yiiVersion));
        $content .= '</li>';
        $content .= '<li>';
        $content .= Zurmo::t('ZurmoModule', '{url} (version {version} is installed)', array('{url}' => '<a href="http://www.redbeanphp.com">RedBeanPHP ORM</a>', '{version}' => $redBeanVersion));
        $content .= '</li>';
        $content .= '<li>';
        $content .= '<a href="http://www.jquery.com">jQuery JavaScript Framework</a> (with Yii)';
        $content .= '</li>';
        $content .= '</ul></p></div>
                <div>
                    <a class="twitter-timeline" width="300" height="300" href="https://twitter.com/ZurmoCRM" data-widget-id="400952809924730881">
                        Tweets by @ZurmoCRM
                    </a>
                    <script>
                        !function(d,s,id)
                        {
                            var js,
                            fjs = d.getElementsByTagName(s)[0],
                            p = /^http:/.test(d.location)?"http":"https";
                            if(!d.getElementById(id))
                            {
                                js = d.createElement(s);
                                js.id = id;
                                js.src = p+"://platform.twitter.com/widgets.js";
                                fjs.parentNode.insertBefore(js,fjs);
                            }
//.........这里部分代码省略.........
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:101,代码来源:AboutView.php

示例2: yiiVersion

 /**
  * Initialize Yii and return Yii version
  *
  * @param bool $refresh
  * @return bool|string Yii version or false if Yii is not found
  */
 public static function yiiVersion($refresh = false)
 {
     static $yiiVersion;
     if ($yiiVersion !== null && !$refresh) {
         return $yiiVersion;
     }
     $yii_file = self::yiiPath($refresh) . '/framework/YiiBase.php';
     if (!file_exists($yii_file)) {
         return $yiiVersion = false;
     }
     require_once $yii_file;
     YiiBase::setPathOfAlias('yii_embed', YII_EMBED_PATH . 'app');
     YiiBase::import('yii_embed.components.*');
     YiiBase::import('yii_embed.models.*');
     YiiBase::$enableIncludePath = false;
     return $yiiVersion = YiiBase::getVersion();
 }
开发者ID:cornernote,项目名称:yii-embed-wordpress,代码行数:23,代码来源:YiiEmbed.php

示例3: handleLibraryCompatibilityCheck

 public function handleLibraryCompatibilityCheck($event)
 {
     $basePath = Yii::app()->getBasePath();
     require_once "{$basePath}/../../redbean/rb.php";
     $redBeanVersion = ZurmoRedBean::getVersion();
     $yiiVersion = YiiBase::getVersion();
     if ($redBeanVersion != Yii::app()->params['redBeanVersion']) {
         echo Zurmo::t('ZurmoModule', 'Your RedBean version is currentVersion and it should be acceptableVersion.', array('currentVersion' => $redBeanVersion, 'acceptableVersion' => Yii::app()->params['redBeanVersion']));
         Yii::app()->end(0, false);
     }
     if ($yiiVersion != Yii::app()->params['yiiVersion']) {
         echo Zurmo::t('ZurmoModule', 'Your Yii version is currentVersion and it should be acceptableVersion.', array('currentVersion' => $yiiVersion, 'acceptableVersion' => Yii::app()->params['yiiVersion']));
         Yii::app()->end(0, false);
     }
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:15,代码来源:BeginRequestBehavior.php

示例4: GetYiiVersion

 public static function GetYiiVersion()
 {
     $_18iwav4zbxu42z2xpid1b9l89i = '';
     if (method_exists("\\yii\\BaseYii", "getVersion")) {
         $_18iwav4zbxu42z2xpid1b9l89i = call_user_func(array("\\yii\\BaseYii", "getVersion"));
     } else {
         if (method_exists("YiiBase", "getVersion")) {
             $_18iwav4zbxu42z2xpid1b9l89i = YiiBase::getVersion();
         }
     }
     return $_18iwav4zbxu42z2xpid1b9l89i;
 }
开发者ID:vunguyen1601,项目名称:57895094b7065dd61f288efa5d9e6105,代码行数:12,代码来源:CaptchaIncludes.php

示例5: GetYiiVersion

 public static function GetYiiVersion()
 {
     $_0idls9xudw1rjki8 = '';
     if (method_exists("\\yii\\BaseYii", "getVersion")) {
         $_0idls9xudw1rjki8 = call_user_func(array("\\yii\\BaseYii", "getVersion"));
     } else {
         if (method_exists("YiiBase", "getVersion")) {
             $_0idls9xudw1rjki8 = YiiBase::getVersion();
         }
     }
     return $_0idls9xudw1rjki8;
 }
开发者ID:Keneth1212,项目名称:moodle,代码行数:12,代码来源:CaptchaIncludes.php

示例6: renderContent

    protected function renderContent()
    {
        $zurmoVersion = self::getZurmoVersionDisplayContent();
        $yiiVersion = YiiBase::getVersion();
        if (method_exists('R', 'getVersion')) {
            $redBeanVersion = R::getVersion();
        } else {
            $redBeanVersion = '&lt; 1.2.9.1';
        }
        // Begin Not Coding Standard
        $content = '<div>
                            <h1>Zurmo Open Source CRM</h1>';
        $content .= '<div id="aboutText" class="clearfix">
                            <div id="leftCol">
                                <div id="ZurmoLogo" class="zurmo-logo"></div>
                                <div><p>';
        $content .= Zurmo::t('ZurmoModule', '<strong>Zurmo</strong> is a <strong>Customer Relationship Management</strong> system by <strong>Zurmo Inc.</strong>');
        $content .= '</p><p>';
        $content .= Zurmo::t('ZurmoModule', 'Visit the <strong>Zurmo Open Source Project</strong> at {url}.', array('{url}' => '<a href="http://www.zurmo.org">http://www.zurmo.org</a>'));
        $content .= '<br/>';
        $content .= '</p>';
        $content .= '<p>';
        $content .= Zurmo::t('ZurmoModule', 'Visit <strong>Zurmo Inc.</strong> at {url}.', array('{url}' => '<a href="http://www.zurmo.com">http://www.zurmo.com</a>'));
        $content .= '<br/>';
        $content .= '</p>';
        $content .= '<p>';
        $content .= Zurmo::t('ZurmoModule', '<strong>Zurmo</strong> is licensed under the AGPLv3.  You can read the license <a href="http://www.zurmo.org/license">here</a>.');
        $content .= '</p></div>
                            <div>
                                <h3>Core Team</h3>
                                <ul>
                                    <li>Amit Ashckenazi</li>
                                    <li>Laura Engel</li>
                                    <li>Jason Green</li>
                                    <li>Stafford McKay</li>
                                    <li>Ivica Nedeljkovic</li>
                                    <li>Nilesh Patkar</li>
                                    <li>Ross Peetoom</li>
                                    <li>Ray Stoeckicht</li>
                                </ul>
                            </div>
                            <div>
                                <h3>Special Thanks</h3>
                                <ul>
                                    <li>Richard Baldwin  - CRM Processes</li>
                                    <li>Nev Delap        - Infrastructure</li>
                                    <li>Sergey Fayngold  - Language Infrastructure</li>
                                    <li>Theresa Neil     - User Interface Design</li>
                                    <li>Sérgio Peixoto   - Portuguese Translation and Development</li>
                                    <li>Mandy Robinson   - Icons</li>
                                    <li>Sacha Telgenhof  - Language Infrastructure</li>
                                    <li>Subtle Patterns  - Background Textures</li>
                                </ul>
                            </div>
                        </div>';
        $content .= '<div id="rightCol">';
        $content .= static::renderSocialLinksContent();
        $content .= '<div><h3>Application Info</h3><p>';
        $content .= Zurmo::t('ZurmoModule', 'This is <strong>version {zurmoVersion}</strong> of <strong>Zurmo</strong>.', array('{zurmoVersion}' => $zurmoVersion));
        $content .= '</p>';
        $content .= '<p>';
        $content .= Zurmo::t('ZurmoModule', '<strong>Zurmo</strong> uses the following great Open Source tools and frameworks:');
        $content .= '<ul>';
        $content .= '<li>';
        $content .= Zurmo::t('ZurmoModule', '{url} (version {version} is installed)', array('{url}' => '<a href="http://www.yiiframework.com">Yii Framework</a>', '{version}' => $yiiVersion));
        $content .= '</li>';
        $content .= '<li>';
        $content .= Zurmo::t('ZurmoModule', '{url} (version {version} is installed)', array('{url}' => '<a href="http://www.redbeanphp.com">RedBeanPHP ORM</a>', '{version}' => $redBeanVersion));
        $content .= '</li>';
        $content .= '<li>';
        $content .= '<a href="http://www.jquery.com">jQuery JavaScript Framework</a> (with Yii)';
        $content .= '</li>';
        $content .= '</ul></p></div>
                <div>
                    <script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
                    <script>
                    new TWTR.Widget(
                    {
                      version: 2,
                      type: "profile",
                      rpp: 4,
                      interval: 30000,
                      width: "auto",
                      height: 300,
                      theme:
                      {
                        shell:
                        {
                          background: "#f4f4f4",
                          color: "#262777"
                        }
                        ,
                        tweets:
                        {
                          background: "#f4f4f4",
                          color: "#545454",
                          links: "#262777"
                        }
                      }
                      ,
//.........这里部分代码省略.........
开发者ID:youprofit,项目名称:Zurmo,代码行数:101,代码来源:AboutView.php


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