/** * GetCacheKey * * Gets the cache key to use for this object * * @access public * @return string cache key */ public function GetCacheKey() { $key = parent::GetCacheKey(); if (!empty($key)) { $key .= '|'; } $key .= 'tag|' . $this->refName; return $key; }
/** * __construct * * Instantiates head * * @access public * @param mixed $project the project * @param string $head head name * @param string $headHash head hash * @return mixed head object * @throws Exception exception on invalid head or hash */ public function __construct($project, $head, $headHash = '') { parent::__construct($project, 'heads', $head, $headHash); }
/** * Called to prepare the object for serialization * * @return string[] list of properties to serialize */ public function __sleep() { $properties = array('dataRead', 'object', 'commitHash', 'type', 'tagger', 'taggerEpoch', 'taggerTimezone', 'comment'); return array_merge($properties, parent::__sleep()); }