Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/storage/DivinerLiveBook.php
| <?php | <?php | ||||
| final class DivinerLiveBook extends DivinerDAO | final class DivinerLiveBook extends DivinerDAO | ||||
| implements | implements | ||||
| PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
| PhabricatorProjectInterface, | PhabricatorProjectInterface, | ||||
| PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
| PhabricatorApplicationTransactionInterface { | PhabricatorApplicationTransactionInterface { | ||||
| protected $name; | protected $name; | ||||
| protected $repositoryPHID; | protected $repositoryPHID; | ||||
| protected $isArchived = false; | |||||
| protected $viewPolicy; | protected $viewPolicy; | ||||
| protected $editPolicy; | protected $editPolicy; | ||||
| protected $configurationData = array(); | protected $configurationData = array(); | ||||
| private $projectPHIDs = self::ATTACHABLE; | private $projectPHIDs = self::ATTACHABLE; | ||||
| private $repository = self::ATTACHABLE; | private $repository = self::ATTACHABLE; | ||||
| protected function getConfiguration() { | protected function getConfiguration() { | ||||
| return array( | return array( | ||||
| self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
| self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
| 'configurationData' => self::SERIALIZATION_JSON, | 'configurationData' => self::SERIALIZATION_JSON, | ||||
| ), | ), | ||||
| self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
| 'name' => 'text64', | 'name' => 'text64', | ||||
| 'repositoryPHID' => 'phid?', | 'repositoryPHID' => 'phid?', | ||||
| 'isArchived' => 'bool', | |||||
| ), | ), | ||||
| self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
| 'key_phid' => null, | 'key_phid' => null, | ||||
| 'phid' => array( | 'phid' => array( | ||||
| 'columns' => array('phid'), | 'columns' => array('phid'), | ||||
| 'unique' => true, | 'unique' => true, | ||||
| ), | ), | ||||
| 'name' => array( | 'name' => array( | ||||
| ▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines | |||||