Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/storage/DrydockRepositoryOperation.php
Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | final class DrydockRepositoryOperation extends DrydockDAO | ||||
public function setCommandError(array $error) { | public function setCommandError(array $error) { | ||||
return $this->setProperty('exec.workingcopy.error', $error); | return $this->setProperty('exec.workingcopy.error', $error); | ||||
} | } | ||||
public function getCommandError() { | public function getCommandError() { | ||||
return $this->getProperty('exec.workingcopy.error'); | return $this->getProperty('exec.workingcopy.error'); | ||||
} | } | ||||
public function logText($text) { | |||||
return $this->logEvent( | |||||
DrydockTextLogType::LOGCONST, | |||||
array( | |||||
'text' => $text, | |||||
)); | |||||
} | |||||
public function logEvent($type, array $data = array()) { | public function logEvent($type, array $data = array()) { | ||||
$log = id(new DrydockLog()) | $log = id(new DrydockLog()) | ||||
->setEpoch(PhabricatorTime::getNow()) | ->setEpoch(PhabricatorTime::getNow()) | ||||
->setType($type) | ->setType($type) | ||||
->setData($data); | ->setData($data); | ||||
$log->setOperationPHID($this->getPHID()); | $log->setOperationPHID($this->getPHID()); | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |