Changeset View
Changeset View
Standalone View
Standalone View
src/applications/macro/storage/PhabricatorFileImageMacro.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | return array( | ||||
'isDisabled' => 'bool', | 'isDisabled' => 'bool', | ||||
'audioPHID' => 'phid?', | 'audioPHID' => 'phid?', | ||||
'audioBehavior' => 'text64', | 'audioBehavior' => 'text64', | ||||
'mailKey' => 'bytes20', | 'mailKey' => 'bytes20', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'name' => array( | 'name' => array( | ||||
'columns' => array('name'), | 'columns' => array('name'), | ||||
'unique' => true, | |||||
), | |||||
'key_disabled' => array( | |||||
'columns' => array('isDisabled'), | |||||
), | |||||
'key_dateCreated' => array( | |||||
'columns' => array('dateCreated'), | |||||
), | ), | ||||
), | ), | ||||
) + 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 65 Lines • Show Last 20 Lines |