[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/dashboard/customfield/ -> PhabricatorDashboardPanelCoreCustomField.php (source)

   1  <?php
   2  
   3  final class PhabricatorDashboardPanelCoreCustomField
   4    extends PhabricatorDashboardPanelCustomField
   5    implements PhabricatorStandardCustomFieldInterface {
   6  
   7    public function getStandardCustomFieldNamespace() {
   8      return 'dashboard:core';
   9    }
  10  
  11    public function createFields($object) {
  12      $impl = $object->requireImplementation();
  13      $specs = $impl->getFieldSpecifications();
  14      return PhabricatorStandardCustomField::buildStandardFields($this, $specs);
  15    }
  16  
  17    public function shouldUseStorage() {
  18      return false;
  19    }
  20  
  21    public function readValueFromObject(PhabricatorCustomFieldInterface $object) {
  22      $key = $this->getProxy()->getRawStandardFieldKey();
  23      $this->setValueFromStorage($object->getProperty($key));
  24    }
  25  
  26    public function applyApplicationTransactionInternalEffects(
  27      PhabricatorApplicationTransaction $xaction) {
  28      $object = $this->getObject();
  29      $key = $this->getProxy()->getRawStandardFieldKey();
  30  
  31      $this->setValueFromApplicationTransactions($xaction->getNewValue());
  32      $value = $this->getValueForStorage();
  33  
  34      $object->setProperty($key, $value);
  35    }
  36  
  37    public function applyApplicationTransactionExternalEffects(
  38      PhabricatorApplicationTransaction $xaction) {
  39      return;
  40    }
  41  
  42  }


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