[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/nuance/storage/ -> NuanceRequestor.php (source)

   1  <?php
   2  
   3  final class NuanceRequestor
   4    extends NuanceDAO {
   5  
   6    protected $data;
   7  
   8    public function getConfiguration() {
   9      return array(
  10        self::CONFIG_AUX_PHID => true,
  11        self::CONFIG_SERIALIZATION => array(
  12          'data' => self::SERIALIZATION_JSON,
  13        ),
  14      ) + parent::getConfiguration();
  15    }
  16  
  17    public function generatePHID() {
  18      return PhabricatorPHID::generateNewPHID(
  19        NuanceRequestorPHIDType::TYPECONST);
  20    }
  21  
  22    public function save() {
  23      if (!$this->getMailKey()) {
  24        $this->setMailKey(Filesystem::readRandomCharacters(20));
  25      }
  26      return parent::save();
  27    }
  28  
  29    public function getURI() {
  30      return '/nuance/requestor/view/'.$this->getID().'/';
  31    }
  32  
  33    public function getPhabricatorUserPHID() {
  34      return idx($this->getData(), 'phabricatorUserPHID');
  35    }
  36  
  37  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1