Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/HarbormasterObject.php
<?php | <?php | ||||
final class HarbormasterObject extends HarbormasterDAO { | final class HarbormasterObject extends HarbormasterDAO { | ||||
protected $phid; | |||||
protected $name; | protected $name; | ||||
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' => 'text255', | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
PhabricatorPHIDConstants::PHID_TYPE_TOBJ); | PhabricatorPHIDConstants::PHID_TYPE_TOBJ); | ||||
} | } | ||||
} | } |