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


PHP PhabricatorLiskDAO::getDescription方法代码示例

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


在下文中一共展示了PhabricatorLiskDAO::getDescription方法的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 PhabricatorSpacesNamespaceTransaction::TYPE_NAME:
             $name = $object->getNamespaceName();
             if (!strlen($name)) {
                 return null;
             }
             return $name;
         case PhabricatorSpacesNamespaceTransaction::TYPE_DESCRIPTION:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getDescription();
         case PhabricatorSpacesNamespaceTransaction::TYPE_ARCHIVE:
             return $object->getIsArchived();
         case PhabricatorSpacesNamespaceTransaction::TYPE_DEFAULT:
             return $object->getIsDefaultNamespace() ? 1 : null;
         case PhabricatorTransactions::TYPE_VIEW_POLICY:
             return $object->getViewPolicy();
         case PhabricatorTransactions::TYPE_EDIT_POLICY:
             return $object->getEditPolicy();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:pugong,项目名称:phabricator,代码行数:25,代码来源:PhabricatorSpacesNamespaceEditor.php

示例3: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case ManiphestTransaction::TYPE_PRIORITY:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return (int) $object->getPriority();
         case ManiphestTransaction::TYPE_STATUS:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getStatus();
         case ManiphestTransaction::TYPE_TITLE:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getTitle();
         case ManiphestTransaction::TYPE_DESCRIPTION:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getDescription();
         case ManiphestTransaction::TYPE_OWNER:
             return nonempty($object->getOwnerPHID(), null);
         case ManiphestTransaction::TYPE_PROJECT_COLUMN:
             // These are pre-populated.
             return $xaction->getOldValue();
         case ManiphestTransaction::TYPE_SUBPRIORITY:
             return $object->getSubpriority();
         case ManiphestTransaction::TYPE_MERGED_INTO:
         case ManiphestTransaction::TYPE_MERGED_FROM:
             return null;
     }
 }
开发者ID:miaokuan,项目名称:phabricator,代码行数:35,代码来源:ManiphestTransactionEditor.php

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

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

示例6: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorCountdownTransaction::TYPE_TITLE:
             return $object->getTitle();
         case PhabricatorCountdownTransaction::TYPE_DESCRIPTION:
             return $object->getDescription();
         case PhabricatorCountdownTransaction::TYPE_EPOCH:
             return $object->getEpoch();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:fengshao0907,项目名称:phabricator,代码行数:12,代码来源:PhabricatorCountdownEditor.php

示例7: 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_STATUS:
             return $object->getStatus();
     }
 }
开发者ID:MenZil-Team,项目名称:phabricator,代码行数:13,代码来源:PhameBlogEditor.php

示例8: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorSlowvoteTransaction::TYPE_QUESTION:
             return $object->getQuestion();
         case PhabricatorSlowvoteTransaction::TYPE_DESCRIPTION:
             return $object->getDescription();
         case PhabricatorSlowvoteTransaction::TYPE_RESPONSES:
             return $object->getResponseVisibility();
         case PhabricatorSlowvoteTransaction::TYPE_SHUFFLE:
             return $object->getShuffle();
         case PhabricatorSlowvoteTransaction::TYPE_CLOSE:
             return $object->getIsClosed();
     }
 }
开发者ID:fengshao0907,项目名称:phabricator,代码行数:15,代码来源:PhabricatorSlowvoteEditor.php

示例9: 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();
         case PhortuneMerchantTransaction::TYPE_CONTACTINFO:
             return $object->getContactInfo();
         case PhortuneMerchantTransaction::TYPE_INVOICEEMAIL:
             return $object->getInvoiceEmail();
         case PhortuneMerchantTransaction::TYPE_INVOICEFOOTER:
             return $object->getInvoiceFooter();
         case PhortuneMerchantTransaction::TYPE_PICTURE:
             return $object->getProfileImagePHID();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:NeoArmageddon,项目名称:phabricator,代码行数:18,代码来源:PhortuneMerchantEditor.php

示例10: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PholioTransactionType::TYPE_NAME:
             return $object->getName();
         case PholioTransactionType::TYPE_DESCRIPTION:
             return $object->getDescription();
         case PholioTransactionType::TYPE_STATUS:
             return $object->getStatus();
         case PholioTransactionType::TYPE_IMAGE_FILE:
             $images = $object->getImages();
             return mpull($images, 'getPHID');
         case PholioTransactionType::TYPE_IMAGE_NAME:
             $name = null;
             $phid = null;
             $image = $this->getImageForXaction($object, $xaction);
             if ($image) {
                 $name = $image->getName();
                 $phid = $image->getPHID();
             }
             return array($phid => $name);
         case PholioTransactionType::TYPE_IMAGE_DESCRIPTION:
             $description = null;
             $phid = null;
             $image = $this->getImageForXaction($object, $xaction);
             if ($image) {
                 $description = $image->getDescription();
                 $phid = $image->getPHID();
             }
             return array($phid => $description);
         case PholioTransactionType::TYPE_IMAGE_REPLACE:
             $raw = $xaction->getNewValue();
             return $raw->getReplacesImagePHID();
         case PholioTransactionType::TYPE_IMAGE_SEQUENCE:
             $sequence = null;
             $phid = null;
             $image = $this->getImageForXaction($object, $xaction);
             if ($image) {
                 $sequence = $image->getSequence();
                 $phid = $image->getPHID();
             }
             return array($phid => $sequence);
     }
 }
开发者ID:denghp,项目名称:phabricator,代码行数:44,代码来源:PholioMockEditor.php

示例11: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case ManiphestTransaction::TYPE_PRIORITY:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return (int) $object->getPriority();
         case ManiphestTransaction::TYPE_STATUS:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getStatus();
         case ManiphestTransaction::TYPE_TITLE:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getTitle();
         case ManiphestTransaction::TYPE_DESCRIPTION:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getDescription();
         case ManiphestTransaction::TYPE_OWNER:
             return nonempty($object->getOwnerPHID(), null);
         case ManiphestTransaction::TYPE_SUBPRIORITY:
             return $object->getSubpriority();
         case ManiphestTransaction::TYPE_COVER_IMAGE:
             return $object->getCoverImageFilePHID();
         case ManiphestTransaction::TYPE_POINTS:
             $points = $object->getPoints();
             if ($points !== null) {
                 $points = (double) $points;
             }
             return $points;
         case ManiphestTransaction::TYPE_MERGED_INTO:
         case ManiphestTransaction::TYPE_MERGED_FROM:
             return null;
         case ManiphestTransaction::TYPE_PARENT:
         case PhabricatorTransactions::TYPE_COLUMNS:
             return null;
     }
 }
开发者ID:vinzent,项目名称:phabricator,代码行数:43,代码来源:ManiphestTransactionEditor.php

示例12: 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_RISKS:
             return $object->getRisks();
         case FundInitiativeTransaction::TYPE_STATUS:
             return $object->getStatus();
         case FundInitiativeTransaction::TYPE_BACKER:
         case FundInitiativeTransaction::TYPE_REFUND:
             return null;
         case FundInitiativeTransaction::TYPE_MERCHANT:
             return $object->getMerchantPHID();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:rchicoli,项目名称:phabricator,代码行数:19,代码来源:FundInitiativeEditor.php

示例13: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorOwnersPackageTransaction::TYPE_NAME:
             return $object->getName();
         case PhabricatorOwnersPackageTransaction::TYPE_OWNERS:
             $phids = mpull($object->getOwners(), 'getUserPHID');
             $phids = array_values($phids);
             return $phids;
         case PhabricatorOwnersPackageTransaction::TYPE_AUDITING:
             return (int) $object->getAuditingEnabled();
         case PhabricatorOwnersPackageTransaction::TYPE_DESCRIPTION:
             return $object->getDescription();
         case PhabricatorOwnersPackageTransaction::TYPE_PATHS:
             $paths = $object->getPaths();
             return mpull($paths, 'getRef');
         case PhabricatorOwnersPackageTransaction::TYPE_STATUS:
             return $object->getStatus();
     }
 }
开发者ID:AbhishekGhosh,项目名称:phabricator,代码行数:20,代码来源:PhabricatorOwnersPackageTransactionEditor.php

示例14: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorOwnersPackageTransaction::TYPE_NAME:
             return $object->getName();
         case PhabricatorOwnersPackageTransaction::TYPE_PRIMARY:
             return $object->getPrimaryOwnerPHID();
         case PhabricatorOwnersPackageTransaction::TYPE_OWNERS:
             // TODO: needOwners() this on the Query.
             $phids = mpull($object->loadOwners(), 'getUserPHID');
             $phids = array_values($phids);
             return $phids;
         case PhabricatorOwnersPackageTransaction::TYPE_AUDITING:
             return (int) $object->getAuditingEnabled();
         case PhabricatorOwnersPackageTransaction::TYPE_DESCRIPTION:
             return $object->getDescription();
         case PhabricatorOwnersPackageTransaction::TYPE_PATHS:
             // TODO: needPaths() this on the query
             $paths = $object->loadPaths();
             return mpull($paths, 'getRef');
     }
 }
开发者ID:JohnnyEstilles,项目名称:phabricator,代码行数:22,代码来源:PhabricatorOwnersPackageTransactionEditor.php

示例15: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case HarbormasterBuildStepTransaction::TYPE_CREATE:
             return null;
         case HarbormasterBuildStepTransaction::TYPE_NAME:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getName();
         case HarbormasterBuildStepTransaction::TYPE_DEPENDS_ON:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getDetail('dependsOn', array());
         case HarbormasterBuildStepTransaction::TYPE_DESCRIPTION:
             if ($this->getIsNewObject()) {
                 return null;
             }
             return $object->getDescription();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
开发者ID:pugong,项目名称:phabricator,代码行数:23,代码来源:HarbormasterBuildStepEditor.php


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