Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/storage/PhrictionContent.php
Show All 22 Lines | final class PhrictionContent extends PhrictionDAO | ||||
public function renderContent(PhabricatorUser $viewer) { | public function renderContent(PhabricatorUser $viewer) { | ||||
return PhabricatorMarkupEngine::renderOneObject( | return PhabricatorMarkupEngine::renderOneObject( | ||||
$this, | $this, | ||||
self::MARKUP_FIELD_BODY, | self::MARKUP_FIELD_BODY, | ||||
$viewer); | $viewer); | ||||
} | } | ||||
public function getConfiguration() { | |||||
return array( | |||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'version' => 'uint32', | |||||
'title' => 'text', | |||||
'slug' => 'text128', | |||||
'content' => 'text', | |||||
'description' => 'text', | |||||
'changeType' => 'uint32', | |||||
'changeRef' => 'uint32?', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'documentID' => array( | |||||
'columns' => array('documentID', 'version'), | |||||
'unique' => true, | |||||
), | |||||
'authorPHID' => array( | |||||
'columns' => array('authorPHID'), | |||||
), | |||||
'slug' => array( | |||||
'columns' => array('slug(255)'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | |||||
} | |||||
/* -( Markup Interface )--------------------------------------------------- */ | /* -( Markup Interface )--------------------------------------------------- */ | ||||
/** | /** | ||||
* @task markup | * @task markup | ||||
*/ | */ | ||||
public function getMarkupFieldKey($field) { | public function getMarkupFieldKey($field) { | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |