/**
* TODO
*/
- protected $_logs = array();
+ public $logs = array();
/**
* TODO
*/
public function queryLastLog()
{
- if (!isset($this->_revs[0]) || !isset($this->_logs[$this->_revs[0]])) {
+ if (!isset($this->_revs[0]) || !isset($this->logs[$this->_revs[0]])) {
throw new Horde_Vcs_Exception('No revisions');
}
- return $this->_logs[$this->_revs[0]];
+ return $this->logs[$this->_revs[0]];
}
/**
break;
}
- uasort($this->_logs, array($this, 'sortBy' . $func));
+ uasort($this->logs, array($this, 'sortBy' . $func));
return true;
}
public function queryLogs($rev = null)
{
return is_null($rev)
- ? $this->_logs
- : (isset($this->_logs[$rev]) ? $this->_logs[$rev] : null);
+ ? $this->logs
+ : (isset($this->logs[$rev]) ? $this->logs[$rev] : null);
}
/**
if ($onbranch) {
$this->_revs[] = $rev;
- $this->_logs[$rev] = $log;
+ $this->logs[$rev] = $log;
}
$this->_accum = array();
}
foreach ($log_list as $val) {
- $this->_logs[$val] = $rep->getLogObject($this, $val);
+ $this->logs[$val] = $rep->getLogObject($this, $val);
}
}
*/
public function getHashForRevision($rev)
{
- if (!isset($this->_logs[$rev])) {
+ if (!isset($this->logs[$rev])) {
throw new Horde_Vcs_Exception('This file doesn\'t exist at that revision');
}
- return $this->_logs[$rev]->getHashForPath($this->queryModulePath());
+ return $this->logs[$rev]->getHashForPath($this->queryModulePath());
}
/**
$rev = reset($this->_revlist[$this->_branch]);
if (!is_null($rev)) {
- if (isset($this->_logs[$rev])) {
- return $this->_logs[$rev];
+ if (isset($this->logs[$rev])) {
+ return $this->logs[$rev];
}
}
try {
$log = $rep->getLogObject($this, null);
$rev = $log->queryRevision();
- $this->_logs[$rev] = $log;
+ $this->logs[$rev] = $log;
$this->_revs[] = $rev;
} catch (Horde_Vcs_Exception $e) {}