本文整理汇总了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;
}
示例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;
}
示例3: fetchChunk008
private static function fetchChunk008(Map $map, $fp)
{
$version = self::fetchLong($fp);
$map->author = Author::fetch($fp);
}