Changeset View
Changeset View
Standalone View
Standalone View
src/applications/macro/storage/PhabricatorFileImageMacro.php
Show All 37 Lines | final class PhabricatorFileImageMacro extends PhabricatorFileDAO | ||||
public function getAudio() { | public function getAudio() { | ||||
return $this->assertAttached($this->audio); | return $this->assertAttached($this->audio); | ||||
} | } | ||||
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( | |||||
'name' => 'text255', | |||||
'authorPHID' => 'phid?', | |||||
'isDisabled' => 'bool', | |||||
'audioPHID' => 'phid?', | |||||
'audioBehavior' => 'text64', | |||||
'mailKey' => 'bytes20', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'name' => array( | |||||
'columns' => array('name'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
PhabricatorMacroMacroPHIDType::TYPECONST); | PhabricatorMacroMacroPHIDType::TYPECONST); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |