当前位置: 首页>>代码示例>>PHP>>正文


PHP PhabricatorApplicationTransactionEditor::applyCustomExternalTransaction方法代码示例

本文整理汇总了PHP中PhabricatorApplicationTransactionEditor::applyCustomExternalTransaction方法的典型用法代码示例。如果您正苦于以下问题:PHP PhabricatorApplicationTransactionEditor::applyCustomExternalTransaction方法的具体用法?PHP PhabricatorApplicationTransactionEditor::applyCustomExternalTransaction怎么用?PHP PhabricatorApplicationTransactionEditor::applyCustomExternalTransaction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PhabricatorApplicationTransactionEditor的用法示例。


在下文中一共展示了PhabricatorApplicationTransactionEditor::applyCustomExternalTransaction方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case AlmanacDeviceTransaction::TYPE_NAME:
             return;
         case AlmanacDeviceTransaction::TYPE_INTERFACE:
             $old = $xaction->getOldValue();
             if ($old) {
                 $interface = id(new AlmanacInterfaceQuery())->setViewer($this->requireActor())->withIDs(array($old['id']))->executeOne();
                 if (!$interface) {
                     throw new Exception(pht('Unable to load interface!'));
                 }
             } else {
                 $interface = AlmanacInterface::initializeNewInterface()->setDevicePHID($object->getPHID());
             }
             $new = $xaction->getNewValue();
             if ($new) {
                 $interface->setNetworkPHID($new['networkPHID'])->setAddress($new['address'])->setPort((int) $new['port']);
                 if (idx($new, 'phid')) {
                     $interface->setPHID($new['phid']);
                 }
                 $interface->save();
             } else {
                 $interface->delete();
             }
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:pugong,项目名称:phabricator,代码行数:29,代码来源:AlmanacDeviceEditor.php

示例2: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorEditEngineConfigurationTransaction::TYPE_NAME:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:hamilyjing,项目名称:phabricator,代码行数:8,代码来源:PhabricatorEditEngineConfigurationEditor.php

示例3: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case FundBackerTransaction::TYPE_STATUS:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:denghp,项目名称:phabricator,代码行数:8,代码来源:FundBackerEditor.php

示例4: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case DifferentialDiffTransaction::TYPE_DIFF_CREATE:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:hrb518,项目名称:phabricator,代码行数:8,代码来源:DifferentialDiffEditor.php

示例5: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case AlmanacNetworkTransaction::TYPE_NAME:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:pugong,项目名称:phabricator,代码行数:8,代码来源:AlmanacNetworkEditor.php

示例6: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case NuanceRequestorTransaction::TYPE_PROPERTY:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:pugong,项目名称:phabricator,代码行数:8,代码来源:NuanceRequestorEditor.php

示例7: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorUserPreferencesTransaction::TYPE_SETTING:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:rchicoli,项目名称:phabricator,代码行数:8,代码来源:PhabricatorUserPreferencesEditor.php

示例8: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorDashboardPanelTransaction::TYPE_NAME:
         case PhabricatorDashboardPanelTransaction::TYPE_ARCHIVE:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:pugong,项目名称:phabricator,代码行数:9,代码来源:PhabricatorDashboardPanelTransactionEditor.php

示例9: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorMetaMTAApplicationEmailTransaction::TYPE_ADDRESS:
         case PhabricatorMetaMTAApplicationEmailTransaction::TYPE_CONFIG:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:truSense,项目名称:phabricator,代码行数:9,代码来源:PhabricatorMetaMTAApplicationEmailEditor.php

示例10: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case HarbormasterBuildTransaction::TYPE_CREATE:
         case HarbormasterBuildTransaction::TYPE_COMMAND:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:fengshao0907,项目名称:phabricator,代码行数:9,代码来源:HarbormasterBuildTransactionEditor.php

示例11: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case NuanceSourceTransaction::TYPE_NAME:
         case NuanceSourceTransaction::TYPE_DEFAULT_QUEUE:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:rchicoli,项目名称:phabricator,代码行数:9,代码来源:NuanceSourceEditor.php

示例12: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case DrydockBlueprintTransaction::TYPE_NAME:
         case DrydockBlueprintTransaction::TYPE_DISABLED:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:pugong,项目名称:phabricator,代码行数:9,代码来源:DrydockBlueprintEditor.php

示例13: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhluxTransaction::TYPE_EDIT_KEY:
         case PhluxTransaction::TYPE_EDIT_VALUE:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:truSense,项目名称:phabricator,代码行数:9,代码来源:PhluxVariableEditor.php

示例14: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhortuneMerchantTransaction::TYPE_NAME:
         case PhortuneMerchantTransaction::TYPE_DESCRIPTION:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:truSense,项目名称:phabricator,代码行数:9,代码来源:PhortuneMerchantEditor.php

示例15: applyCustomExternalTransaction

 protected function applyCustomExternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorPasteTransaction::TYPE_CONTENT:
         case PhabricatorPasteTransaction::TYPE_TITLE:
         case PhabricatorPasteTransaction::TYPE_LANGUAGE:
             return;
     }
     return parent::applyCustomExternalTransaction($object, $xaction);
 }
开发者ID:hrb518,项目名称:phabricator,代码行数:10,代码来源:PhabricatorPasteEditor.php


注:本文中的PhabricatorApplicationTransactionEditor::applyCustomExternalTransaction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。