Changeset View
Changeset View
Standalone View
Standalone View
src/applications/legalpad/storage/LegalpadDocument.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | final class LegalpadDocument extends LegalpadDAO | ||||
} | } | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
'recentContributorPHIDs' => self::SERIALIZATION_JSON, | 'recentContributorPHIDs' => self::SERIALIZATION_JSON, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'title' => 'text255', | |||||
'contributorCount' => 'uint32', | |||||
'versions' => 'uint32', | |||||
'mailKey' => 'bytes20', | |||||
'signatureType' => 'text4', | |||||
'preamble' => 'text', | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
PhabricatorLegalpadDocumentPHIDType::TYPECONST); | PhabricatorLegalpadDocumentPHIDType::TYPECONST); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |