當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ZurmoRedBean::getVersion方法代碼示例

本文整理匯總了PHP中ZurmoRedBean::getVersion方法的典型用法代碼示例。如果您正苦於以下問題:PHP ZurmoRedBean::getVersion方法的具體用法?PHP ZurmoRedBean::getVersion怎麽用?PHP ZurmoRedBean::getVersion使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ZurmoRedBean的用法示例。


在下文中一共展示了ZurmoRedBean::getVersion方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: checkRedBean

 public static function checkRedBean($minimumRequiredVersion, &$actualVersion)
 {
     $actualVersion = ZurmoRedBean::getVersion();
     if ($actualVersion !== null) {
         return static::checkVersion($minimumRequiredVersion, $actualVersion);
     }
     return false;
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:8,代碼來源:InstallUtil.php

示例2: 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

示例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


注:本文中的ZurmoRedBean::getVersion方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。