当前位置: 首页>>代码示例>>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;未经允许,请勿转载。