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