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


PHP PhabricatorLiskDAO::getName方法代码示例

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


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

示例1: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PassphraseCredentialTransaction::TYPE_NAME:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getName();
         case PassphraseCredentialTransaction::TYPE_DESCRIPTION:
             return $object->getDescription();
         case PassphraseCredentialTransaction::TYPE_USERNAME:
             return $object->getUsername();
         case PassphraseCredentialTransaction::TYPE_SECRET_ID:
             return $object->getSecretID();
         case PassphraseCredentialTransaction::TYPE_DESTROY:
             return (int) $object->getIsDestroyed();
         case PassphraseCredentialTransaction::TYPE_LOCK:
             return (int) $object->getIsLocked();
         case PassphraseCredentialTransaction::TYPE_CONDUIT:
             return (int) $object->getAllowConduit();
         case PassphraseCredentialTransaction::TYPE_LOOKEDATSECRET:
             return null;
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:rchicoli,项目名称:phabricator,代码行数:25,代码来源:PassphraseCredentialTransactionEditor.php

示例2: getCustomTransactionOldValue

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

示例3: 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

示例4: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorRepositoryTransaction::TYPE_VCS:
             return $object->getVersionControlSystem();
         case PhabricatorRepositoryTransaction::TYPE_ACTIVATE:
             return $object->isTracked();
         case PhabricatorRepositoryTransaction::TYPE_NAME:
             return $object->getName();
         case PhabricatorRepositoryTransaction::TYPE_DESCRIPTION:
             return $object->getDetail('description');
         case PhabricatorRepositoryTransaction::TYPE_ENCODING:
             return $object->getDetail('encoding');
         case PhabricatorRepositoryTransaction::TYPE_DEFAULT_BRANCH:
             return $object->getDetail('default-branch');
         case PhabricatorRepositoryTransaction::TYPE_TRACK_ONLY:
             return array_keys($object->getDetail('branch-filter', array()));
         case PhabricatorRepositoryTransaction::TYPE_AUTOCLOSE_ONLY:
             return array_keys($object->getDetail('close-commits-filter', array()));
         case PhabricatorRepositoryTransaction::TYPE_UUID:
             return $object->getUUID();
         case PhabricatorRepositoryTransaction::TYPE_SVN_SUBPATH:
             return $object->getDetail('svn-subpath');
         case PhabricatorRepositoryTransaction::TYPE_NOTIFY:
             return (int) (!$object->getDetail('herald-disabled'));
         case PhabricatorRepositoryTransaction::TYPE_AUTOCLOSE:
             return (int) (!$object->getDetail('disable-autoclose'));
         case PhabricatorRepositoryTransaction::TYPE_REMOTE_URI:
             return $object->getDetail('remote-uri');
         case PhabricatorRepositoryTransaction::TYPE_LOCAL_PATH:
             return $object->getDetail('local-path');
         case PhabricatorRepositoryTransaction::TYPE_HOSTING:
             return $object->isHosted();
         case PhabricatorRepositoryTransaction::TYPE_PROTOCOL_HTTP:
             return $object->getServeOverHTTP();
         case PhabricatorRepositoryTransaction::TYPE_PROTOCOL_SSH:
             return $object->getServeOverSSH();
         case PhabricatorRepositoryTransaction::TYPE_PUSH_POLICY:
             return $object->getPushPolicy();
         case PhabricatorRepositoryTransaction::TYPE_CREDENTIAL:
             return $object->getCredentialPHID();
         case PhabricatorRepositoryTransaction::TYPE_DANGEROUS:
             return $object->shouldAllowDangerousChanges();
         case PhabricatorRepositoryTransaction::TYPE_SLUG:
             return $object->getRepositorySlug();
         case PhabricatorRepositoryTransaction::TYPE_SERVICE:
             return $object->getAlmanacServicePHID();
         case PhabricatorRepositoryTransaction::TYPE_SYMBOLS_LANGUAGE:
             return $object->getSymbolLanguages();
         case PhabricatorRepositoryTransaction::TYPE_SYMBOLS_SOURCES:
             return $object->getSymbolSources();
         case PhabricatorRepositoryTransaction::TYPE_STAGING_URI:
             return $object->getDetail('staging-uri');
         case PhabricatorRepositoryTransaction::TYPE_AUTOMATION_BLUEPRINTS:
             return $object->getDetail('automation.blueprintPHIDs', array());
         case PhabricatorRepositoryTransaction::TYPE_CALLSIGN:
             return $object->getCallsign();
     }
 }
开发者ID:Houzz,项目名称:phabricator,代码行数:59,代码来源:PhabricatorRepositoryEditor.php

示例5: getCustomTransactionOldValue

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

示例6: getCustomTransactionOldValue

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

示例7: getCustomTransactionOldValue

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

示例8: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case AlmanacServiceTransaction::TYPE_NAME:
             return $object->getName();
         case AlmanacServiceTransaction::TYPE_LOCK:
             return (bool) $object->getIsLocked();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:pugong,项目名称:phabricator,代码行数:10,代码来源:AlmanacServiceEditor.php

示例9: 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

示例10: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorProjectColumnTransaction::TYPE_NAME:
             return $object->getName();
         case PhabricatorProjectColumnTransaction::TYPE_STATUS:
             return $object->getStatus();
         case PhabricatorProjectColumnTransaction::TYPE_LIMIT:
             return $object->getPointLimit();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:rchicoli,项目名称:phabricator,代码行数:12,代码来源:PhabricatorProjectColumnTransactionEditor.php

示例11: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case FundInitiativeTransaction::TYPE_NAME:
             return $object->getName();
         case FundInitiativeTransaction::TYPE_DESCRIPTION:
             return $object->getDescription();
         case FundInitiativeTransaction::TYPE_STATUS:
             return $object->getStatus();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:denghp,项目名称:phabricator,代码行数:12,代码来源:FundInitiativeEditor.php

示例12: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhameBlogTransaction::TYPE_NAME:
             return $object->getName();
         case PhameBlogTransaction::TYPE_DESCRIPTION:
             return $object->getDescription();
         case PhameBlogTransaction::TYPE_DOMAIN:
             return $object->getDomain();
         case PhameBlogTransaction::TYPE_SKIN:
             return $object->getSkin();
     }
 }
开发者ID:fengshao0907,项目名称:phabricator,代码行数:13,代码来源:PhameBlogEditor.php

示例13: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case HarbormasterBuildPlanTransaction::TYPE_NAME:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getName();
         case HarbormasterBuildPlanTransaction::TYPE_STATUS:
             return $object->getPlanStatus();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:rchicoli,项目名称:phabricator,代码行数:13,代码来源:HarbormasterBuildPlanEditor.php

示例14: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorDashboardPanelTransaction::TYPE_NAME:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getName();
         case PhabricatorDashboardPanelTransaction::TYPE_ARCHIVE:
             return (int) $object->getIsArchived();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:denghp,项目名称:phabricator,代码行数:13,代码来源:PhabricatorDashboardPanelTransactionEditor.php

示例15: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorRepositoryTransaction::TYPE_VCS:
             return $object->getVersionControlSystem();
         case PhabricatorRepositoryTransaction::TYPE_ACTIVATE:
             return $object->isTracked();
         case PhabricatorRepositoryTransaction::TYPE_NAME:
             return $object->getName();
         case PhabricatorRepositoryTransaction::TYPE_DESCRIPTION:
             return $object->getDetail('description');
         case PhabricatorRepositoryTransaction::TYPE_ENCODING:
             return $object->getDetail('encoding');
         case PhabricatorRepositoryTransaction::TYPE_DEFAULT_BRANCH:
             return $object->getDetail('default-branch');
         case PhabricatorRepositoryTransaction::TYPE_TRACK_ONLY:
             return array_keys($object->getDetail('branch-filter', array()));
         case PhabricatorRepositoryTransaction::TYPE_AUTOCLOSE_ONLY:
             return array_keys($object->getDetail('close-commits-filter', array()));
         case PhabricatorRepositoryTransaction::TYPE_UUID:
             return $object->getUUID();
         case PhabricatorRepositoryTransaction::TYPE_SVN_SUBPATH:
             return $object->getDetail('svn-subpath');
         case PhabricatorRepositoryTransaction::TYPE_NOTIFY:
             return (int) (!$object->getDetail('herald-disabled'));
         case PhabricatorRepositoryTransaction::TYPE_AUTOCLOSE:
             return (int) (!$object->getDetail('disable-autoclose'));
         case PhabricatorRepositoryTransaction::TYPE_REMOTE_URI:
             return $object->getDetail('remote-uri');
         case PhabricatorRepositoryTransaction::TYPE_LOCAL_PATH:
             return $object->getDetail('local-path');
         case PhabricatorRepositoryTransaction::TYPE_HOSTING:
             return $object->isHosted();
         case PhabricatorRepositoryTransaction::TYPE_PROTOCOL_HTTP:
             return $object->getServeOverHTTP();
         case PhabricatorRepositoryTransaction::TYPE_PROTOCOL_SSH:
             return $object->getServeOverSSH();
         case PhabricatorRepositoryTransaction::TYPE_PUSH_POLICY:
             return $object->getPushPolicy();
         case PhabricatorRepositoryTransaction::TYPE_CREDENTIAL:
             return $object->getCredentialPHID();
         case PhabricatorRepositoryTransaction::TYPE_DANGEROUS:
             return $object->shouldAllowDangerousChanges();
         case PhabricatorRepositoryTransaction::TYPE_CLONE_NAME:
             return $object->getDetail('clone-name');
     }
 }
开发者ID:denghp,项目名称:phabricator,代码行数:47,代码来源:PhabricatorRepositoryEditor.php


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