Changeset View
Changeset View
Standalone View
Standalone View
src/applications/macro/storage/PhabricatorFileImageMacro.php
| Show All 9 Lines | final class PhabricatorFileImageMacro extends PhabricatorFileDAO | ||||
| protected $authorPHID; | protected $authorPHID; | ||||
| protected $filePHID; | protected $filePHID; | ||||
| protected $name; | protected $name; | ||||
| protected $isDisabled = 0; | protected $isDisabled = 0; | ||||
| protected $audioPHID; | protected $audioPHID; | ||||
| protected $audioBehavior = self::AUDIO_BEHAVIOR_NONE; | protected $audioBehavior = self::AUDIO_BEHAVIOR_NONE; | ||||
| protected $mailKey; | protected $mailKey; | ||||
| protected $useOriginalSize; | |||||
| private $file = self::ATTACHABLE; | private $file = self::ATTACHABLE; | ||||
| private $audio = self::ATTACHABLE; | private $audio = self::ATTACHABLE; | ||||
| const AUDIO_BEHAVIOR_NONE = 'audio:none'; | const AUDIO_BEHAVIOR_NONE = 'audio:none'; | ||||
| const AUDIO_BEHAVIOR_ONCE = 'audio:once'; | const AUDIO_BEHAVIOR_ONCE = 'audio:once'; | ||||
| const AUDIO_BEHAVIOR_LOOP = 'audio:loop'; | const AUDIO_BEHAVIOR_LOOP = 'audio:loop'; | ||||
| Show All 20 Lines | return array( | ||||
| self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
| self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
| 'name' => 'text128', | 'name' => 'text128', | ||||
| 'authorPHID' => 'phid?', | 'authorPHID' => 'phid?', | ||||
| 'isDisabled' => 'bool', | 'isDisabled' => 'bool', | ||||
| 'audioPHID' => 'phid?', | 'audioPHID' => 'phid?', | ||||
| 'audioBehavior' => 'text64', | 'audioBehavior' => 'text64', | ||||
| 'mailKey' => 'bytes20', | 'mailKey' => 'bytes20', | ||||
| 'useOriginalSize' => 'bool', | |||||
| ), | ), | ||||
| self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
| 'name' => array( | 'name' => array( | ||||
| 'columns' => array('name'), | 'columns' => array('name'), | ||||
| 'unique' => true, | 'unique' => true, | ||||
| ), | ), | ||||
| 'key_disabled' => array( | 'key_disabled' => array( | ||||
| 'columns' => array('isDisabled'), | 'columns' => array('isDisabled'), | ||||
| ▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines | |||||