Пример #1
0
 /**
  * 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;
 }
Пример #2
0
 /**
  * __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);
 }
Пример #3
0
 /**
  * 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());
 }