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


PHP PhabricatorLiskDAO::isTracked方法代码示例

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


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

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

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