当前位置: 首页>>代码示例>>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;未经允许,请勿转载。