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


PHP PhabricatorApplicationTransactionEditor::getCustomTransactionNewValue方法代码示例

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


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

示例1: getCustomTransactionNewValue

 protected function getCustomTransactionNewValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorProjectTransaction::TYPE_NAME:
         case PhabricatorProjectTransaction::TYPE_STATUS:
         case PhabricatorProjectTransaction::TYPE_IMAGE:
         case PhabricatorProjectTransaction::TYPE_ICON:
         case PhabricatorProjectTransaction::TYPE_COLOR:
         case PhabricatorProjectTransaction::TYPE_LOCKED:
         case PhabricatorProjectTransaction::TYPE_PARENT:
             return $xaction->getNewValue();
         case PhabricatorProjectTransaction::TYPE_SLUGS:
             return $this->normalizeSlugs($xaction->getNewValue());
         case PhabricatorProjectTransaction::TYPE_MILESTONE:
             $current = queryfx_one($object->establishConnection('w'), 'SELECT MAX(milestoneNumber) n
         FROM %T
         WHERE parentProjectPHID = %s', $object->getTableName(), $object->getParentProject()->getPHID());
             if (!$current) {
                 $number = 1;
             } else {
                 $number = (int) $current['n'] + 1;
             }
             return $number;
     }
     return parent::getCustomTransactionNewValue($object, $xaction);
 }
开发者ID:phpengineer,项目名称:phabricator,代码行数:26,代码来源:PhabricatorProjectTransactionEditor.php

示例2: getCustomTransactionNewValue

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

示例3: getCustomTransactionNewValue

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

示例4: getCustomTransactionNewValue

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

示例5: getCustomTransactionNewValue

 protected function getCustomTransactionNewValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case AlmanacTransaction::TYPE_PROPERTY_UPDATE:
         case AlmanacTransaction::TYPE_PROPERTY_REMOVE:
             return $xaction->getNewValue();
     }
     return parent::getCustomTransactionNewValue($object, $xaction);
 }
开发者ID:rchicoli,项目名称:phabricator,代码行数:9,代码来源:AlmanacEditor.php

示例6: getCustomTransactionNewValue

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

示例7: getCustomTransactionNewValue

 protected function getCustomTransactionNewValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorDashboardTransaction::TYPE_NAME:
         case PhabricatorDashboardTransaction::TYPE_LAYOUT_MODE:
             return $xaction->getNewValue();
     }
     return parent::getCustomTransactionNewValue($object, $xaction);
 }
开发者ID:hrb518,项目名称:phabricator,代码行数:9,代码来源:PhabricatorDashboardTransactionEditor.php

示例8: getCustomTransactionNewValue

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

示例9: getCustomTransactionNewValue

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

示例10: getCustomTransactionNewValue

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

示例11: getCustomTransactionNewValue

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

示例12: getCustomTransactionNewValue

 protected function getCustomTransactionNewValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case NuanceItemTransaction::TYPE_REQUESTOR:
         case NuanceItemTransaction::TYPE_SOURCE:
         case NuanceItemTransaction::TYPE_OWNER:
             return $xaction->getNewValue();
     }
     return parent::getCustomTransactionNewValue($object, $xaction);
 }
开发者ID:denghp,项目名称:phabricator,代码行数:10,代码来源:NuanceItemEditor.php

示例13: getCustomTransactionNewValue

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

示例14: getCustomTransactionNewValue

 protected function getCustomTransactionNewValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhortuneProductTransaction::TYPE_NAME:
         case PhortuneProductTransaction::TYPE_TYPE:
         case PhortuneProductTransaction::TYPE_PRICE:
             return $xaction->getNewValue();
     }
     return parent::getCustomTransactionNewValue($object, $xaction);
 }
开发者ID:denghp,项目名称:phabricator,代码行数:10,代码来源:PhortuneProductEditor.php

示例15: getCustomTransactionNewValue

 protected function getCustomTransactionNewValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case HarbormasterBuildPlanTransaction::TYPE_NAME:
             return $xaction->getNewValue();
         case HarbormasterBuildPlanTransaction::TYPE_STATUS:
             return $xaction->getNewValue();
     }
     return parent::getCustomTransactionNewValue($object, $xaction);
 }
开发者ID:rchicoli,项目名称:phabricator,代码行数:10,代码来源:HarbormasterBuildPlanEditor.php


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