Changeset View
Changeset View
Standalone View
Standalone View
src/applications/legalpad/storage/LegalpadDocumentBody.php
Show All 10 Lines | final class LegalpadDocumentBody extends LegalpadDAO | ||||
protected $documentPHID; | protected $documentPHID; | ||||
protected $version; | protected $version; | ||||
protected $title; | protected $title; | ||||
protected $text; | protected $text; | ||||
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( | |||||
'version' => 'uint32', | |||||
'title' => 'text255', | |||||
'text' => 'text?', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_document' => array( | |||||
'columns' => array('documentPHID', 'version'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
PhabricatorPHIDConstants::PHID_TYPE_LEGB); | PhabricatorPHIDConstants::PHID_TYPE_LEGB); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |