Services_CamelotHerald


Constants

  • SERVICES_CAMELOTHERALD_FIND_DEFAULT = 1
  • SERVICES_CAMELOTHERALD_FIND_FORCE = 2
  • SERVICES_CAMELOTHERALD_FIND_CACHE = 3

Methods

Services_CamelotHerald (construct)

Create Services_CamelotHerald object.

  • param string $cacheDir
  • param string $cacheLifetime

singleton

Returns the Services_CamelotHerald instance if exists. If not exists, new instance of the Services_CamelotHerald class will be created and returned.

  • param string $cacheDir
  • param string $cacheLifetime
  • return object a Services_CamelotHerald object

useCache

Use Services_CamelotHerald's cache service.

  • param string $cacheDir
  • param string $cacheLifetime
  • return object Services_CamelotHerald_Cache
  • see Services_CamelotHerald_Cache

searchGuild

Return the searching guild.

  • param string $guildName
  • param string $serverName
  • return array
  • see Services_CamelotHerald_Guild, Services_CamelotHerald_Dto_Guild

findGuild

Return the finding guild.

  • param mixed $findArg Guild name or Services_CamelotHerald_Dto_Guild
  • param string $serverName
  • param integer $findMode
  • return mixed
  • see Services_CamelotHerald_Guild, Services_CamelotHerald_Dto_Guild

cleanGuildCache

Clean the guild's cache data.

  • see Services_CamelotHerald_Cache

searchCharacter

Return the searching character.

  • param string $characterName
  • param string $serverName
  • return array
  • see Services_CamelotHerald_Character, Services_CamelotHerald_Dto_Character

findCharacter

Return the finding character.

  • param mixed $findArg character name or Services_CamelotHerald_Dto_Character.
  • param string $serverName
  • param integer $findMode
  • return mixed
  • see Services_CamelotHerald_Character, Services_CamelotHerald_Dto_Character

cleanCharacterCache

Clean the character's cache data.

  • see Services_CamelotHerald_Cache