當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。