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


PHP PhabricatorLiskDAO::getStatus方法代碼示例

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


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

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

示例2: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorProjectTransaction::TYPE_NAME:
             return $object->getName();
         case PhabricatorProjectTransaction::TYPE_SLUGS:
             $slugs = $object->getSlugs();
             $slugs = mpull($slugs, 'getSlug', 'getSlug');
             unset($slugs[$object->getPrimarySlug()]);
             return array_keys($slugs);
         case PhabricatorProjectTransaction::TYPE_STATUS:
             return $object->getStatus();
         case PhabricatorProjectTransaction::TYPE_IMAGE:
             return $object->getProfileImagePHID();
         case PhabricatorProjectTransaction::TYPE_ICON:
             return $object->getIcon();
         case PhabricatorProjectTransaction::TYPE_COLOR:
             return $object->getColor();
         case PhabricatorProjectTransaction::TYPE_LOCKED:
             return (int) $object->getIsMembershipLocked();
         case PhabricatorProjectTransaction::TYPE_PARENT:
         case PhabricatorProjectTransaction::TYPE_MILESTONE:
             return null;
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
開發者ID:jvlstudio,項目名稱:phabricator,代碼行數:26,代碼來源:PhabricatorProjectTransactionEditor.php

示例3: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorProjectTransaction::TYPE_NAME:
             return $object->getName();
         case PhabricatorProjectTransaction::TYPE_SLUGS:
             $slugs = $object->getSlugs();
             $slugs = mpull($slugs, 'getSlug', 'getSlug');
             unset($slugs[$object->getPrimarySlug()]);
             return array_keys($slugs);
         case PhabricatorProjectTransaction::TYPE_STATUS:
             return $object->getStatus();
         case PhabricatorProjectTransaction::TYPE_IMAGE:
             return $object->getProfileImagePHID();
         case PhabricatorProjectTransaction::TYPE_ICON:
             return $object->getIcon();
         case PhabricatorProjectTransaction::TYPE_COLOR:
             return $object->getColor();
         case PhabricatorProjectTransaction::TYPE_LOCKED:
             return (int) $object->getIsMembershipLocked();
         case PhabricatorProjectTransaction::TYPE_HASWORKBOARD:
             return (int) $object->getHasWorkboard();
         case PhabricatorProjectTransaction::TYPE_PARENT:
         case PhabricatorProjectTransaction::TYPE_MILESTONE:
             return null;
         case PhabricatorProjectTransaction::TYPE_DEFAULT_SORT:
             return $object->getDefaultWorkboardSort();
         case PhabricatorProjectTransaction::TYPE_DEFAULT_FILTER:
             return $object->getDefaultWorkboardFilter();
         case PhabricatorProjectTransaction::TYPE_BACKGROUND:
             return $object->getWorkboardBackgroundColor();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
開發者ID:rchicoli,項目名稱:phabricator,代碼行數:34,代碼來源:PhabricatorProjectTransactionEditor.php

示例4: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case FundBackerTransaction::TYPE_STATUS:
             return $object->getStatus();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
開發者ID:denghp,項目名稱:phabricator,代碼行數:8,代碼來源:FundBackerEditor.php

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

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

示例7: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PonderQuestionTransaction::TYPE_TITLE:
             return $object->getTitle();
         case PonderQuestionTransaction::TYPE_CONTENT:
             return $object->getContent();
         case PonderQuestionTransaction::TYPE_ANSWERS:
             return mpull($object->getAnswers(), 'getPHID');
         case PonderQuestionTransaction::TYPE_STATUS:
             return $object->getStatus();
     }
 }
開發者ID:andriusribas,項目名稱:phabricator,代碼行數:13,代碼來源:PonderQuestionEditor.php

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

示例9: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorPasteTransaction::TYPE_CONTENT:
             return $object->getFilePHID();
         case PhabricatorPasteTransaction::TYPE_TITLE:
             return $object->getTitle();
         case PhabricatorPasteTransaction::TYPE_LANGUAGE:
             return $object->getLanguage();
         case PhabricatorPasteTransaction::TYPE_STATUS:
             return $object->getStatus();
     }
 }
開發者ID:fengshao0907,項目名稱:phabricator,代碼行數:13,代碼來源:PhabricatorPasteEditor.php

示例10: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorBadgesTransaction::TYPE_NAME:
             return $object->getName();
         case PhabricatorBadgesTransaction::TYPE_FLAVOR:
             return $object->getFlavor();
         case PhabricatorBadgesTransaction::TYPE_DESCRIPTION:
             return $object->getDescription();
         case PhabricatorBadgesTransaction::TYPE_ICON:
             return $object->getIcon();
         case PhabricatorBadgesTransaction::TYPE_QUALITY:
             return $object->getQuality();
         case PhabricatorBadgesTransaction::TYPE_STATUS:
             return $object->getStatus();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
開發者ID:pugong,項目名稱:phabricator,代碼行數:18,代碼來源:PhabricatorBadgesEditor.php

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

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

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

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

示例15: getCustomTransactionOldValue

 protected function getCustomTransactionOldValue(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorProjectTransaction::TYPE_NAME:
             return $object->getName();
         case PhabricatorProjectTransaction::TYPE_SLUGS:
             $slugs = $object->getSlugs();
             $slugs = mpull($slugs, 'getSlug', 'getSlug');
             unset($slugs[$object->getPrimarySlug()]);
             return $slugs;
         case PhabricatorProjectTransaction::TYPE_STATUS:
             return $object->getStatus();
         case PhabricatorProjectTransaction::TYPE_IMAGE:
             return $object->getProfileImagePHID();
         case PhabricatorProjectTransaction::TYPE_ICON:
             return $object->getIcon();
         case PhabricatorProjectTransaction::TYPE_COLOR:
             return $object->getColor();
     }
     return parent::getCustomTransactionOldValue($object, $xaction);
 }
開發者ID:denghp,項目名稱:phabricator,代碼行數:21,代碼來源:PhabricatorProjectTransactionEditor.php


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