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


PHP PhabricatorLiskDAO::getIsDisabled方法代码示例

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


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

示例1: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorEditEngineConfigurationTransaction::TYPE_NAME:
             return $object->getName();
         case PhabricatorEditEngineConfigurationTransaction::TYPE_PREAMBLE:
             return $object->getPreamble();
         case PhabricatorEditEngineConfigurationTransaction::TYPE_ORDER:
             return $object->getFieldOrder();
         case PhabricatorEditEngineConfigurationTransaction::TYPE_DEFAULT:
             $field_key = $xaction->getMetadataValue('field.key');
             return $object->getFieldDefault($field_key);
         case PhabricatorEditEngineConfigurationTransaction::TYPE_LOCKS:
             return $object->getFieldLocks();
         case PhabricatorEditEngineConfigurationTransaction::TYPE_DEFAULTCREATE:
             return (int) $object->getIsDefault();
         case PhabricatorEditEngineConfigurationTransaction::TYPE_ISEDIT:
             return (int) $object->getIsEdit();
         case PhabricatorEditEngineConfigurationTransaction::TYPE_DISABLE:
             return (int) $object->getIsDisabled();
         case PhabricatorEditEngineConfigurationTransaction::TYPE_CREATEORDER:
             return (int) $object->getCreateOrder();
         case PhabricatorEditEngineConfigurationTransaction::TYPE_EDITORDER:
             return (int) $object->getEditOrder();
     }
 }
开发者ID:pugong,项目名称:phabricator,代码行数:26,代码来源:PhabricatorEditEngineConfigurationEditor.php

示例2: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case HeraldRuleTransaction::TYPE_DISABLE:
             return (int) $object->getIsDisabled();
     }
 }
开发者ID:pugong,项目名称:phabricator,代码行数:7,代码来源:HeraldRuleEditor.php

示例3: getCustomTransactionOldValue

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

示例4: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case AlmanacBindingTransaction::TYPE_INTERFACE:
             return $object->getInterfacePHID();
         case AlmanacBindingTransaction::TYPE_DISABLE:
             return $object->getIsDisabled();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:rchicoli,项目名称:phabricator,代码行数:10,代码来源:AlmanacBindingEditor.php

示例5: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorOAuthServerTransaction::TYPE_NAME:
             return $object->getName();
         case PhabricatorOAuthServerTransaction::TYPE_REDIRECT_URI:
             return $object->getRedirectURI();
         case PhabricatorOAuthServerTransaction::TYPE_DISABLED:
             return $object->getIsDisabled();
     }
 }
开发者ID:rchicoli,项目名称:phabricator,代码行数:11,代码来源:PhabricatorOAuthServerEditor.php

示例6: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case HeraldRuleTransaction::TYPE_DISABLE:
             return (int) $object->getIsDisabled();
         case HeraldRuleTransaction::TYPE_EDIT:
             return id(new HeraldRuleSerializer())->serializeRule($object);
         case HeraldRuleTransaction::TYPE_NAME:
             return $object->getName();
     }
 }
开发者ID:rchicoli,项目名称:phabricator,代码行数:11,代码来源:HeraldRuleEditor.php

示例7: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorMacroTransaction::TYPE_NAME:
             return $object->getName();
         case PhabricatorMacroTransaction::TYPE_DISABLED:
             return $object->getIsDisabled();
         case PhabricatorMacroTransaction::TYPE_FILE:
             return $object->getFilePHID();
         case PhabricatorMacroTransaction::TYPE_AUDIO:
             return $object->getAudioPHID();
         case PhabricatorMacroTransaction::TYPE_AUDIO_BEHAVIOR:
             return $object->getAudioBehavior();
     }
 }
开发者ID:pugong,项目名称:phabricator,代码行数:15,代码来源:PhabricatorMacroEditor.php

示例8: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorRepositoryURITransaction::TYPE_URI:
             return $object->getURI();
         case PhabricatorRepositoryURITransaction::TYPE_IO:
             return $object->getIOType();
         case PhabricatorRepositoryURITransaction::TYPE_DISPLAY:
             return $object->getDisplayType();
         case PhabricatorRepositoryURITransaction::TYPE_REPOSITORY:
             return $object->getRepositoryPHID();
         case PhabricatorRepositoryURITransaction::TYPE_CREDENTIAL:
             return $object->getCredentialPHID();
         case PhabricatorRepositoryURITransaction::TYPE_DISABLE:
             return (int) $object->getIsDisabled();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:endlessm,项目名称:phabricator,代码行数:18,代码来源:DiffusionURIEditor.php


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