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


PHP Version::setVersion方法代码示例

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


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

示例1: getFromJSON

 public static function getFromJSON($json)
 {
     $o = json_decode($json);
     $diagnostic = new Diagnostic();
     if ($o->requested_version) {
         $version = new Version();
         $version->setVersion($o->requested_version->version);
         $version->setReleaseNotes($o->requested_version->notes);
         $version->setReleaseNotesURL($o->requested_version->notes_url);
         $diagnostic->setRequestedVersion($version);
     }
     if ($o->marketplace_item_status) {
         foreach ($o->marketplace_item_status as $status) {
             $s = new MarketplaceItemStatus();
             $s->setMarketplaceItemHandle($status->mpHandle);
             $s->setMarketplaceItemID($status->mpID);
             $s->setSafety($status->safety);
             $s->setStatus($status->status);
             $diagnostic->addMarketplaceItemStatusObject($s);
         }
     }
     if ($o->notices) {
         foreach ($o->notices as $status) {
             $s = new Status();
             $s->setSafety($status->safety);
             $s->setStatus($status->status);
             $diagnostic->addNoticeStatusObject($s);
         }
     }
     if ($o->status) {
         $s = new Status();
         $s->setSafety($o->status->safety);
         $s->setStatus($o->status->status);
         $diagnostic->setUpdateStatusObject($s);
     }
     return $diagnostic;
 }
开发者ID:ppiedaderawnet,项目名称:concrete5,代码行数:37,代码来源:DiagnosticFactory.php

示例2: __autoload

function __autoload($class_name)
{
    if (file_exists("modules/classes/SystemLibrary/" . strtolower($class_name) . ".class.php")) {
        require_once "modules/classes/SystemLibrary/" . strtolower($class_name) . ".class.php";
    } else {
        require_once "modules/classes/" . $class_name . ".class.php";
    }
}
define("IN_EFFECTWEB", "47e5098c88cc5f67543414ff1af32efc");
# Web Info
$CTM = array("CTM_WebStaff", "CTM_WebRecord", "CTM_WebFiles", "CTM_WebTickets", "CTM_WebProfile", "CTM_WebWarning", "CTM_WebNews", "CTM_WebAccBan", "CTM_WebCharBan", "CTM_WebTicketRes", "CTM_WebPayments", "CTM_WebPaymentRes", "CTM_WebRaffles", "CTM_WebCronJob", "CTM_WebRecovery", "CTM_WebPoll", "CTM_WebPollAnswers", "CTM_WebPollVotes", "CTM_WebRegister", "CTM_WebChangeMail", "CTM_WebScreenShots", "CTM_WebScreenVotes", "CTM_WebScreenComments", "CTM_WebNewsComments");
$CTM[C] = array(CHAR_IMAGE_COLUMN, EXTRA_VAULT_COLUMN);
define("Product", "Effect Web");
# Version
$version = new Version();
$version->setVersion("v1.8.5", "v1.8.5 Finish Edition");
$version->compareVersions(constant("Update_Key"), true);
# Login
if (!empty($_SESSION['Hash_Account'])) {
    $_SESSION["Hash_Account"] = str_replace(array("'", ";", "--"), NULL, $_SESSION["Hash_Account"]);
    $Login = str_replace(array("'", ";", "--"), NULL, $_SESSION["Hash_Account"]);
}
# Class Load
$CTM_Security = new CTM_Security();
$CTM_Template = new CTM_Template();
$CTM_Pages = new CTM_Pages();
$CTM_Crypt = new CTM_Crypt();
if ($CTM_Crypt->CallSecuritySite() != "YTc2ZGJiMmZlNDY5ZThkNzkwYmU0ZjJhYWUyNDUwMDI=") {
    exit("Files corrupted.");
}
$CTM_MSSQL = new CTM_MSSQL();
开发者ID:axlduff,项目名称:teste,代码行数:31,代码来源:load.inc.php


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