Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/build/HarbormasterBuildLog.php
| <?php | <?php | ||||
| final class HarbormasterBuildLog | final class HarbormasterBuildLog | ||||
| extends HarbormasterDAO | extends HarbormasterDAO | ||||
| implements | implements | ||||
| PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
| PhabricatorDestructibleInterface { | PhabricatorDestructibleInterface, | ||||
| PhabricatorConduitResultInterface { | |||||
| protected $buildTargetPHID; | protected $buildTargetPHID; | ||||
| protected $logSource; | protected $logSource; | ||||
| protected $logType; | protected $logType; | ||||
| protected $duration; | protected $duration; | ||||
| protected $live; | protected $live; | ||||
| protected $filePHID; | protected $filePHID; | ||||
| protected $byteLength; | protected $byteLength; | ||||
| ▲ Show 20 Lines • Show All 693 Lines • ▼ Show 20 Lines | queryfx( | ||||
| 'DELETE FROM %T WHERE logID = %d', | 'DELETE FROM %T WHERE logID = %d', | ||||
| $chunk->getTableName(), | $chunk->getTableName(), | ||||
| $this->getID()); | $this->getID()); | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| /* -( PhabricatorConduitResultInterface )---------------------------------- */ | |||||
| public function getFieldSpecificationsForConduit() { | |||||
| return array( | |||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('buildTargetPHID') | |||||
| ->setType('phid') | |||||
| ->setDescription(pht('Build target this log is attached to.')), | |||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('byteLength') | |||||
| ->setType('int') | |||||
| ->setDescription(pht('Length of the log in bytes.')), | |||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('filePHID') | |||||
| ->setType('phid?') | |||||
| ->setDescription(pht('A file containing the log data.')), | |||||
| ); | |||||
| } | |||||
| public function getFieldValuesForConduit() { | |||||
| return array( | |||||
| 'buildTargetPHID' => $this->getBuildTargetPHID(), | |||||
| 'byteLength' => (int)$this->getByteLength(), | |||||
| 'filePHID' => $this->getFilePHID(), | |||||
| ); | |||||
| } | |||||
| public function getConduitSearchAttachments() { | |||||
| return array(); | |||||
| } | |||||
| } | } | ||||