$this->loadMessage();
}
+ public function loadById($id)
+ {
+ if (!is_numeric($id)) {
+ throw new Exception_Input('Paste ID not numeric');
+ }
+ $this->id = (int)$id;
+ $this->loadDirs();
+ $this->loadHash();
+ }
+
protected function loadDirs()
{
$gitDir = $GLOBALS['phorkie']['cfg']['gitdir'] . '/' . $this->id . '.git';
}
}
- public function loadById($id)
- {
- if (!is_numeric($id)) {
- throw new Exception_Input('Paste ID not numeric');
- }
- $this->id = (int)$id;
- $this->loadDirs();
- $this->loadHash();
- }
-
public function getVc()
{
return new \VersionControl_Git($this->gitDir);