Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/storage/PholioMock.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | final class PholioMock extends PholioDAO | ||||
public function getMonogram() { | public function getMonogram() { | ||||
return 'M'.$this->getID(); | return 'M'.$this->getID(); | ||||
} | } | ||||
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( | |||||
'name' => 'text128', | |||||
'description' => 'text', | |||||
'originalName' => 'text128', | |||||
'mailKey' => 'bytes20', | |||||
'status' => 'text12', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_phid' => null, | |||||
'phid' => array( | |||||
'columns' => array('phid'), | |||||
'unique' => true, | |||||
), | |||||
'authorPHID' => array( | |||||
'columns' => array('authorPHID'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID('MOCK'); | return PhabricatorPHID::generateNewPHID('MOCK'); | ||||
} | } | ||||
public function save() { | public function save() { | ||||
▲ Show 20 Lines • Show All 217 Lines • Show Last 20 Lines |