Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/storage/PhortuneMerchant.php
Show All 13 Lines | final class PhortuneMerchant extends PhortuneDAO | ||||
protected $profileImagePHID; | protected $profileImagePHID; | ||||
private $memberPHIDs = self::ATTACHABLE; | private $memberPHIDs = self::ATTACHABLE; | ||||
private $profileImageFile = self::ATTACHABLE; | private $profileImageFile = self::ATTACHABLE; | ||||
public static function initializeNewMerchant(PhabricatorUser $actor) { | public static function initializeNewMerchant(PhabricatorUser $actor) { | ||||
return id(new PhortuneMerchant()) | return id(new PhortuneMerchant()) | ||||
->setViewPolicy(PhabricatorPolicies::getMostOpenPolicy()) | ->setViewPolicy(PhabricatorPolicies::getMostOpenPolicy()) | ||||
->attachMemberPHIDs(array()); | ->attachMemberPHIDs(array()) | ||||
->setContactInfo('') | |||||
->setInvoiceEmail('') | |||||
->setInvoiceFooter(''); | |||||
} | } | ||||
protected function getConfiguration() { | protected function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'name' => 'text255', | 'name' => 'text255', | ||||
'description' => 'text', | 'description' => 'text', | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |