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


PHP Author::fetch方法代碼示例

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


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

示例1: fetch

 static final function fetch($fp)
 {
     $includedPack = new self();
     $includedPack->checksum = self::fetchChecksum($fp);
     $includedPack->name = self::fetchString($fp);
     $includedPack->author = Author::fetch($fp);
     $includedPack->manialink = self::fetchString($fp);
     $includedPack->creationDate = self::fetchChecksum($fp);
     return $includedPack;
 }
開發者ID:maniaplanet,項目名稱:dedicated-manager,代碼行數:10,代碼來源:IncludedPack.php

示例2: fetch

 static final function fetch($fp)
 {
     $pack = new self();
     self::ignore($fp, 8);
     $version = self::fetchLong($fp);
     $pack->checksum = self::fetchChecksum($fp);
     $pack->flags = self::fetchLong($fp);
     $pack->author = Author::fetch($fp);
     $pack->manialink = self::fetchString($fp);
     $pack->creationDate = self::fetchDate($fp);
     $pack->description = self::fetchString($fp);
     if ($version >= 12) {
         $header = self::fetchString($fp);
         $pack->uid = self::fetchString($fp);
     }
     $pack->type = self::fetchString($fp);
     $pack->creationBuildInfo = self::fetchString($fp);
     self::ignore($fp, 16);
     $nbIncludedPacks = self::fetchLong($fp);
     for (; $nbIncludedPacks > 0; --$nbIncludedPacks) {
         $pack->includedPacks[] = IncludedPack::fetch($fp);
     }
     return $pack;
 }
開發者ID:maniaplanet,項目名稱:dedicated-manager,代碼行數:24,代碼來源:Pack.php

示例3: fetchChunk008

 private static function fetchChunk008(Map $map, $fp)
 {
     $version = self::fetchLong($fp);
     $map->author = Author::fetch($fp);
 }
開發者ID:maniaplanet,項目名稱:dedicated-manager,代碼行數:5,代碼來源:Map.php


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