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


PHP PhabricatorLiskDAO::setIcon方法代码示例

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


在下文中一共展示了PhabricatorLiskDAO::setIcon方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

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

示例2: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorProjectTransaction::TYPE_NAME:
             $name = $xaction->getNewValue();
             $object->setName($name);
             $object->setPrimarySlug(PhabricatorSlug::normalizeProjectSlug($name));
             return;
         case PhabricatorProjectTransaction::TYPE_SLUGS:
             return;
         case PhabricatorProjectTransaction::TYPE_STATUS:
             $object->setStatus($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_IMAGE:
             $object->setProfileImagePHID($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_ICON:
             $object->setIcon($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_COLOR:
             $object->setColor($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_LOCKED:
             $object->setIsMembershipLocked($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
开发者ID:patelhardik,项目名称:phabricator,代码行数:28,代码来源:PhabricatorProjectTransactionEditor.php

示例3: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorProjectTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             $object->setPhrictionSlug($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_SLUGS:
             return;
         case PhabricatorProjectTransaction::TYPE_STATUS:
             $object->setStatus($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_IMAGE:
             $object->setProfileImagePHID($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_ICON:
             $object->setIcon($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_COLOR:
             $object->setColor($xaction->getNewValue());
             return;
         case PhabricatorTransactions::TYPE_EDGE:
             return;
         case PhabricatorTransactions::TYPE_VIEW_POLICY:
             $object->setViewPolicy($xaction->getNewValue());
             return;
         case PhabricatorTransactions::TYPE_EDIT_POLICY:
             $object->setEditPolicy($xaction->getNewValue());
             return;
         case PhabricatorTransactions::TYPE_JOIN_POLICY:
             $object->setJoinPolicy($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
开发者ID:denghp,项目名称:phabricator,代码行数:35,代码来源:PhabricatorProjectTransactionEditor.php

示例4: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorProjectTransaction::TYPE_NAME:
             $name = $xaction->getNewValue();
             $object->setName($name);
             if (!$this->getIsMilestone()) {
                 $object->setPrimarySlug(PhabricatorSlug::normalizeProjectSlug($name));
             }
             return;
         case PhabricatorProjectTransaction::TYPE_SLUGS:
             return;
         case PhabricatorProjectTransaction::TYPE_STATUS:
             $object->setStatus($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_IMAGE:
             $object->setProfileImagePHID($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_ICON:
             $object->setIcon($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_COLOR:
             $object->setColor($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_LOCKED:
             $object->setIsMembershipLocked($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_PARENT:
             $object->setParentProjectPHID($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_MILESTONE:
             $number = $object->getParentProject()->loadNextMilestoneNumber();
             $object->setMilestoneNumber($number);
             $object->setParentProjectPHID($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_HASWORKBOARD:
             $object->setHasWorkboard($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_DEFAULT_SORT:
             $object->setDefaultWorkboardSort($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_DEFAULT_FILTER:
             $object->setDefaultWorkboardFilter($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
开发者ID:kalsolio,项目名称:phabricator,代码行数:47,代码来源:PhabricatorProjectTransactionEditor.php

示例5: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorCalendarEventTransaction::TYPE_RECURRING:
             return $object->setIsRecurring($xaction->getNewValue());
         case PhabricatorCalendarEventTransaction::TYPE_FREQUENCY:
             return $object->setRecurrenceFrequency($xaction->getNewValue());
         case PhabricatorCalendarEventTransaction::TYPE_INSTANCE_OF_EVENT:
             return $object->setInstanceOfEventPHID($xaction->getNewValue());
         case PhabricatorCalendarEventTransaction::TYPE_SEQUENCE_INDEX:
             return $object->setSequenceIndex($xaction->getNewValue());
         case PhabricatorCalendarEventTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             return;
         case PhabricatorCalendarEventTransaction::TYPE_START_DATE:
             $object->setDateFrom($xaction->getNewValue());
             return;
         case PhabricatorCalendarEventTransaction::TYPE_END_DATE:
             $object->setDateTo($xaction->getNewValue());
             return;
         case PhabricatorCalendarEventTransaction::TYPE_RECURRENCE_END_DATE:
             $object->setRecurrenceEndDate($xaction->getNewValue());
             return;
         case PhabricatorCalendarEventTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             return;
         case PhabricatorCalendarEventTransaction::TYPE_CANCEL:
             $object->setIsCancelled((int) $xaction->getNewValue());
             return;
         case PhabricatorCalendarEventTransaction::TYPE_ALL_DAY:
             $object->setIsAllDay((int) $xaction->getNewValue());
             return;
         case PhabricatorCalendarEventTransaction::TYPE_ICON:
             $object->setIcon($xaction->getNewValue());
             return;
         case PhabricatorCalendarEventTransaction::TYPE_INVITE:
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
开发者ID:fengshao0907,项目名称:phabricator,代码行数:40,代码来源:PhabricatorCalendarEventEditor.php


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