Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/storage/PholioImage.php
Show All 16 Lines | final class PholioImage extends PholioDAO | ||||
private $inlineComments = self::ATTACHABLE; | private $inlineComments = self::ATTACHABLE; | ||||
private $file = self::ATTACHABLE; | private $file = self::ATTACHABLE; | ||||
private $mock = self::ATTACHABLE; | private $mock = self::ATTACHABLE; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'mockID' => 'id?', | |||||
'name' => 'text128', | |||||
'description' => 'text', | |||||
'sequence' => 'uint32', | |||||
'isObsolete' => 'bool', | |||||
'replacesImagePHID' => 'phid?', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_phid' => null, | |||||
'keyPHID' => array( | |||||
'columns' => array('phid'), | |||||
'unique' => true, | |||||
), | |||||
'mockID' => array( | |||||
'columns' => array('mockID', 'isObsolete', 'sequence'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID(PholioImagePHIDType::TYPECONST); | return PhabricatorPHID::generateNewPHID(PholioImagePHIDType::TYPECONST); | ||||
} | } | ||||
public function attachFile(PhabricatorFile $file) { | public function attachFile(PhabricatorFile $file) { | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |