本文整理匯總了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);
}