當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PhabricatorLiskDAO::setDescription方法代碼示例

本文整理匯總了PHP中PhabricatorLiskDAO::setDescription方法的典型用法代碼示例。如果您正苦於以下問題:PHP PhabricatorLiskDAO::setDescription方法的具體用法?PHP PhabricatorLiskDAO::setDescription怎麽用?PHP PhabricatorLiskDAO::setDescription使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PhabricatorLiskDAO的用法示例。


在下文中一共展示了PhabricatorLiskDAO::setDescription方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhameBlogTransaction::TYPE_NAME:
             return $object->setName($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_SUBTITLE:
             return $object->setSubtitle($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_DESCRIPTION:
             return $object->setDescription($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_FULLDOMAIN:
             $new_value = $xaction->getNewValue();
             if (strlen($new_value)) {
                 $uri = new PhutilURI($new_value);
                 $domain = $uri->getDomain();
                 $object->setDomain($domain);
             } else {
                 $object->setDomain(null);
             }
             $object->setDomainFullURI($new_value);
             return;
         case PhameBlogTransaction::TYPE_PROFILEIMAGE:
             return $object->setProfileImagePHID($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_HEADERIMAGE:
             return $object->setHeaderImagePHID($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_STATUS:
             return $object->setStatus($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_PARENTSITE:
             return $object->setParentSite($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_PARENTDOMAIN:
             return $object->setParentDomain($xaction->getNewValue());
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:rchicoli,項目名稱:phabricator,代碼行數:33,代碼來源:PhameBlogEditor.php

示例2: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     $type = $xaction->getTransactionType();
     switch ($type) {
         case PhabricatorBadgesTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             return;
         case PhabricatorBadgesTransaction::TYPE_FLAVOR:
             $object->setFlavor($xaction->getNewValue());
             return;
         case PhabricatorBadgesTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             return;
         case PhabricatorBadgesTransaction::TYPE_ICON:
             $object->setIcon($xaction->getNewValue());
             return;
         case PhabricatorBadgesTransaction::TYPE_QUALITY:
             $object->setQuality($xaction->getNewValue());
             return;
         case PhabricatorBadgesTransaction::TYPE_STATUS:
             $object->setStatus($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:pugong,項目名稱:phabricator,代碼行數:25,代碼來源:PhabricatorBadgesEditor.php

示例3: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     $type = $xaction->getTransactionType();
     switch ($type) {
         case FundInitiativeTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             return;
         case FundInitiativeTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             return;
         case FundInitiativeTransaction::TYPE_RISKS:
             $object->setRisks($xaction->getNewValue());
             return;
         case FundInitiativeTransaction::TYPE_MERCHANT:
             $object->setMerchantPHID($xaction->getNewValue());
             return;
         case FundInitiativeTransaction::TYPE_STATUS:
             $object->setStatus($xaction->getNewValue());
             return;
         case FundInitiativeTransaction::TYPE_BACKER:
         case FundInitiativeTransaction::TYPE_REFUND:
             $amount = $xaction->getMetadataValue(FundInitiativeTransaction::PROPERTY_AMOUNT);
             $amount = PhortuneCurrency::newFromString($amount);
             if ($type == FundInitiativeTransaction::TYPE_REFUND) {
                 $total = $object->getTotalAsCurrency()->subtract($amount);
             } else {
                 $total = $object->getTotalAsCurrency()->add($amount);
             }
             $object->setTotalAsCurrency($total);
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:rchicoli,項目名稱:phabricator,代碼行數:33,代碼來源:FundInitiativeEditor.php

示例4: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     $new = $xaction->getNewValue();
     switch ($xaction->getTransactionType()) {
         case PhabricatorSpacesNamespaceTransaction::TYPE_NAME:
             $object->setNamespaceName($new);
             return;
         case PhabricatorSpacesNamespaceTransaction::TYPE_DESCRIPTION:
             $object->setDescription($new);
             return;
         case PhabricatorSpacesNamespaceTransaction::TYPE_DEFAULT:
             $object->setIsDefaultNamespace($new ? 1 : null);
             return;
         case PhabricatorSpacesNamespaceTransaction::TYPE_ARCHIVE:
             $object->setIsArchived($new ? 1 : 0);
             return;
         case PhabricatorTransactions::TYPE_VIEW_POLICY:
             $object->setViewPolicy($new);
             return;
         case PhabricatorTransactions::TYPE_EDIT_POLICY:
             $object->setEditPolicy($new);
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:pugong,項目名稱:phabricator,代碼行數:25,代碼來源:PhabricatorSpacesNamespaceEditor.php

示例5: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhortuneMerchantTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             return;
         case PhortuneMerchantTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:truSense,項目名稱:phabricator,代碼行數:12,代碼來源:PhortuneMerchantEditor.php

示例6: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case HarbormasterBuildStepTransaction::TYPE_CREATE:
             return;
         case HarbormasterBuildStepTransaction::TYPE_NAME:
             return $object->setName($xaction->getNewValue());
         case HarbormasterBuildStepTransaction::TYPE_DEPENDS_ON:
             return $object->setDetail('dependsOn', $xaction->getNewValue());
         case HarbormasterBuildStepTransaction::TYPE_DESCRIPTION:
             return $object->setDescription($xaction->getNewValue());
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:pugong,項目名稱:phabricator,代碼行數:14,代碼來源:HarbormasterBuildStepEditor.php

示例7: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhameBlogTransaction::TYPE_NAME:
             return $object->setName($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_DESCRIPTION:
             return $object->setDescription($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_DOMAIN:
             return $object->setDomain($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_STATUS:
             return $object->setStatus($xaction->getNewValue());
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:MenZil-Team,項目名稱:phabricator,代碼行數:14,代碼來源:PhameBlogEditor.php

示例8: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PassphraseCredentialTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             return;
         case PassphraseCredentialTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             return;
         case PassphraseCredentialTransaction::TYPE_USERNAME:
             $object->setUsername($xaction->getNewValue());
             return;
         case PassphraseCredentialTransaction::TYPE_SECRET_ID:
             $old_id = $object->getSecretID();
             if ($old_id) {
                 $this->destroySecret($old_id);
             }
             $object->setSecretID($xaction->getNewValue());
             return;
         case PassphraseCredentialTransaction::TYPE_DESTROY:
             // When destroying a credential, wipe out its secret.
             $is_destroyed = $xaction->getNewValue();
             $object->setIsDestroyed($is_destroyed);
             if ($is_destroyed) {
                 $secret_id = $object->getSecretID();
                 if ($secret_id) {
                     $this->destroySecret($secret_id);
                     $object->setSecretID(null);
                 }
             }
             return;
         case PhabricatorTransactions::TYPE_VIEW_POLICY:
             $object->setViewPolicy($xaction->getNewValue());
             return;
         case PhabricatorTransactions::TYPE_EDIT_POLICY:
             $object->setEditPolicy($xaction->getNewValue());
             return;
         case PassphraseCredentialTransaction::TYPE_LOOKEDATSECRET:
             return;
         case PassphraseCredentialTransaction::TYPE_LOCK:
             $object->setIsLocked((int) $xaction->getNewValue());
             return;
         case PassphraseCredentialTransaction::TYPE_CONDUIT:
             $object->setAllowConduit((int) $xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:denghp,項目名稱:phabricator,代碼行數:48,代碼來源:PassphraseCredentialTransactionEditor.php

示例9: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     $type = $xaction->getTransactionType();
     switch ($type) {
         case PhabricatorCountdownTransaction::TYPE_TITLE:
             $object->setTitle($xaction->getNewValue());
             return;
         case PhabricatorCountdownTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             return;
         case PhabricatorCountdownTransaction::TYPE_EPOCH:
             $object->setEpoch($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:fengshao0907,項目名稱:phabricator,代碼行數:16,代碼來源:PhabricatorCountdownEditor.php

示例10: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorPhurlURLTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             return;
         case PhabricatorPhurlURLTransaction::TYPE_URL:
             $object->setLongURL($xaction->getNewValue());
             return;
         case PhabricatorPhurlURLTransaction::TYPE_ALIAS:
             $object->setAlias($xaction->getNewValue());
             return;
         case PhabricatorPhurlURLTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:endlessm,項目名稱:phabricator,代碼行數:18,代碼來源:PhabricatorPhurlURLEditor.php

示例11: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case FundInitiativeTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             return;
         case FundInitiativeTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             return;
         case FundInitiativeTransaction::TYPE_STATUS:
             $object->setStatus($xaction->getNewValue());
             return;
         case PhabricatorTransactions::TYPE_SUBSCRIBERS:
         case PhabricatorTransactions::TYPE_EDGE:
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:denghp,項目名稱:phabricator,代碼行數:18,代碼來源:FundInitiativeEditor.php

示例12: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorSlowvoteTransaction::TYPE_QUESTION:
             $object->setQuestion($xaction->getNewValue());
             break;
         case PhabricatorSlowvoteTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             break;
         case PhabricatorSlowvoteTransaction::TYPE_RESPONSES:
             $object->setResponseVisibility($xaction->getNewValue());
             break;
         case PhabricatorSlowvoteTransaction::TYPE_SHUFFLE:
             $object->setShuffle($xaction->getNewValue());
             break;
         case PhabricatorSlowvoteTransaction::TYPE_CLOSE:
             $object->setIsClosed((int) $xaction->getNewValue());
             break;
     }
 }
開發者ID:fengshao0907,項目名稱:phabricator,代碼行數:20,代碼來源:PhabricatorSlowvoteEditor.php

示例13: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorOwnersPackageTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             return;
         case PhabricatorOwnersPackageTransaction::TYPE_PRIMARY:
             $object->setPrimaryOwnerPHID($xaction->getNewValue());
             return;
         case PhabricatorOwnersPackageTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             return;
         case PhabricatorOwnersPackageTransaction::TYPE_AUDITING:
             $object->setAuditingEnabled($xaction->getNewValue());
             return;
         case PhabricatorOwnersPackageTransaction::TYPE_OWNERS:
         case PhabricatorOwnersPackageTransaction::TYPE_PATHS:
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:JohnnyEstilles,項目名稱:phabricator,代碼行數:21,代碼來源:PhabricatorOwnersPackageTransactionEditor.php

示例14: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhortuneMerchantTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             return;
         case PhortuneMerchantTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             return;
         case PhortuneMerchantTransaction::TYPE_CONTACTINFO:
             $object->setContactInfo($xaction->getNewValue());
             return;
         case PhortuneMerchantTransaction::TYPE_INVOICEEMAIL:
             $object->setInvoiceEmail($xaction->getNewValue());
             return;
         case PhortuneMerchantTransaction::TYPE_INVOICEFOOTER:
             $object->setInvoiceFooter($xaction->getNewValue());
             return;
         case PhortuneMerchantTransaction::TYPE_PICTURE:
             $object->setProfileImagePHID($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:NeoArmageddon,項目名稱:phabricator,代碼行數:24,代碼來源:PhortuneMerchantEditor.php

示例15: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorOwnersPackageTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             return;
         case PhabricatorOwnersPackageTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             return;
         case PhabricatorOwnersPackageTransaction::TYPE_AUDITING:
             $object->setAuditingEnabled($xaction->getNewValue());
             return;
         case PhabricatorOwnersPackageTransaction::TYPE_OWNERS:
         case PhabricatorOwnersPackageTransaction::TYPE_PATHS:
             return;
         case PhabricatorOwnersPackageTransaction::TYPE_STATUS:
             $object->setStatus($xaction->getNewValue());
             return;
         case PhabricatorOwnersPackageTransaction::TYPE_AUTOREVIEW:
             $object->setAutoReview($xaction->getNewValue());
             return;
         case PhabricatorOwnersPackageTransaction::TYPE_DOMINION:
             $object->setDominion($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:rchicoli,項目名稱:phabricator,代碼行數:27,代碼來源:PhabricatorOwnersPackageTransactionEditor.php


注:本文中的PhabricatorLiskDAO::setDescription方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。