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


PHP PhabricatorApplicationTransaction::getIcon方法代码示例

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


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

示例1: getIcon

 public function getIcon()
 {
     $old = $this->getOldValue();
     $new = $this->getNewValue();
     switch ($this->getTransactionType()) {
         case PhabricatorTransactions::TYPE_CREATE:
             return 'fa-plus';
             break;
         case self::TYPE_HEADERIMAGE:
             return 'fa-camera-retro';
             break;
         case self::TYPE_VISIBILITY:
             if ($new == PhameConstants::VISIBILITY_PUBLISHED) {
                 return 'fa-globe';
             } else {
                 if ($new == PhameConstants::VISIBILITY_ARCHIVED) {
                     return 'fa-ban';
                 } else {
                     return 'fa-eye-slash';
                 }
             }
             break;
     }
     return parent::getIcon();
 }
开发者ID:NeoArmageddon,项目名称:phabricator,代码行数:25,代码来源:PhamePostTransaction.php

示例2: getIcon

 public function getIcon()
 {
     $old = $this->getOldValue();
     $new = $this->getNewValue();
     switch ($this->getTransactionType()) {
         case self::TYPE_NAME:
             if ($old === null) {
                 return 'fa-plus';
             } else {
                 return 'fa-pencil';
             }
             break;
         case self::TYPE_DESCRIPTION:
         case self::TYPE_DOMAIN:
             return 'fa-pencil';
         case self::TYPE_STATUS:
             if ($new == PhameBlog::STATUS_ARCHIVED) {
                 return 'fa-ban';
             } else {
                 return 'fa-check';
             }
             break;
     }
     return parent::getIcon();
 }
开发者ID:pugong,项目名称:phabricator,代码行数:25,代码来源:PhameBlogTransaction.php

示例3: getIcon

 public function getIcon()
 {
     $old = $this->getOldValue();
     $new = $this->getNewValue();
     switch ($this->getTransactionType()) {
         case self::TYPE_STATUS:
             if ($old == 0) {
                 return 'fa-ban';
             } else {
                 return 'fa-check';
             }
         case self::TYPE_LOCKED:
             if ($new) {
                 return 'fa-lock';
             } else {
                 return 'fa-unlock';
             }
         case self::TYPE_ICON:
             return $new;
         case self::TYPE_IMAGE:
             return 'fa-photo';
         case self::TYPE_MEMBERS:
             return 'fa-user';
         case self::TYPE_SLUGS:
             return 'fa-tag';
     }
     return parent::getIcon();
 }
开发者ID:patelhardik,项目名称:phabricator,代码行数:28,代码来源:PhabricatorProjectTransaction.php

示例4: getIcon

 public function getIcon()
 {
     switch ($this->getTransactionType()) {
         case self::TYPE_DIFF_CREATE:
             return 'fa-refresh';
     }
     return parent::getIcon();
 }
开发者ID:pugong,项目名称:phabricator,代码行数:8,代码来源:DifferentialDiffTransaction.php

示例5: getIcon

 public final function getIcon()
 {
     $icon = $this->getTransactionImplementation()->getIcon();
     if ($icon !== null) {
         return $icon;
     }
     return parent::getIcon();
 }
开发者ID:NeoArmageddon,项目名称:phabricator,代码行数:8,代码来源:PhabricatorModularTransaction.php

示例6: getIcon

 public function getIcon()
 {
     switch ($this->getTransactionType()) {
         case self::TYPE_EDIT:
             return 'fa-pencil';
     }
     return parent::getIcon();
 }
开发者ID:denghp,项目名称:phabricator,代码行数:8,代码来源:PhabricatorConfigTransaction.php

示例7: getIcon

 public function getIcon()
 {
     $old = $this->getOldValue();
     $new = $this->getNewValue();
     switch ($this->getTransactionType()) {
         case self::TYPE_NAME:
             return 'fa-pencil';
     }
     return parent::getIcon();
 }
开发者ID:pugong,项目名称:phabricator,代码行数:10,代码来源:PhabricatorFileTransaction.php

示例8: getIcon

 public function getIcon()
 {
     switch ($this->getTransactionType()) {
         case self::TYPE_NAME:
         case self::TYPE_URL:
         case self::TYPE_DESCRIPTION:
             return 'fa-pencil';
             break;
     }
     return parent::getIcon();
 }
开发者ID:fengshao0907,项目名称:phabricator,代码行数:11,代码来源:PhabricatorPhurlURLTransaction.php

示例9: getIcon

 public function getIcon()
 {
     $author_phid = $this->getAuthorPHID();
     $old = $this->getOldValue();
     $new = $this->getNewValue();
     switch ($this->getTransactionType()) {
         case self::TYPE_CREATE:
             return 'fa-plus';
     }
     return parent::getIcon();
 }
开发者ID:pugong,项目名称:phabricator,代码行数:11,代码来源:HarbormasterBuildStepTransaction.php

示例10: getIcon

 public function getIcon()
 {
     switch ($this->getTransactionType()) {
         case self::TYPE_CONTENT:
             return 'fa-plus';
             break;
         case self::TYPE_TITLE:
         case self::TYPE_LANGUAGE:
             return 'fa-pencil';
             break;
     }
     return parent::getIcon();
 }
开发者ID:hrb518,项目名称:phabricator,代码行数:13,代码来源:PhabricatorPasteTransaction.php

示例11: getColor

 public function getColor()
 {
     $old = $this->getOldValue();
     $new = $this->getNewValue();
     switch ($this->getTransactionType()) {
         case self::TYPE_NAME:
             if ($old === null) {
                 return 'green';
             }
             break;
     }
     return parent::getIcon();
 }
开发者ID:pugong,项目名称:phabricator,代码行数:13,代码来源:HarbormasterBuildPlanTransaction.php

示例12: getIcon

 public function getIcon()
 {
     $old = $this->getOldValue();
     $new = $this->getNewValue();
     switch ($this->getTransactionType()) {
         case self::TYPE_DISABLE:
             if ($new) {
                 return 'fa-pause';
             } else {
                 return 'fa-play';
             }
     }
     return parent::getIcon();
 }
开发者ID:denghp,项目名称:phabricator,代码行数:14,代码来源:HeraldRuleTransaction.php

示例13: getIcon

 public function getIcon()
 {
     $old = $this->getOldValue();
     $new = $this->getNewValue();
     switch ($this->getTransactionType()) {
         case self::TYPE_ACTIVE:
             if ($new) {
                 return 'fa-pencil';
             } else {
                 return 'fa-times';
             }
             break;
     }
     return parent::getIcon();
 }
开发者ID:pugong,项目名称:phabricator,代码行数:15,代码来源:ReleephProductTransaction.php

示例14: getIcon

 public function getIcon()
 {
     switch ($this->getTransactionType()) {
         case PholioTransactionType::TYPE_INLINE:
             return 'fa-comment';
         case PholioTransactionType::TYPE_NAME:
         case PholioTransactionType::TYPE_DESCRIPTION:
         case PholioTransactionType::TYPE_STATUS:
         case PholioTransactionType::TYPE_IMAGE_NAME:
         case PholioTransactionType::TYPE_IMAGE_DESCRIPTION:
         case PholioTransactionType::TYPE_IMAGE_SEQUENCE:
             return 'fa-pencil';
         case PholioTransactionType::TYPE_IMAGE_FILE:
         case PholioTransactionType::TYPE_IMAGE_REPLACE:
             return 'fa-picture-o';
     }
     return parent::getIcon();
 }
开发者ID:denghp,项目名称:phabricator,代码行数:18,代码来源:PholioTransaction.php

示例15: getIcon

 public function getIcon()
 {
     $old = $this->getOldValue();
     switch ($this->getTransactionType()) {
         case self::TYPE_TITLE:
             if ($old === null) {
                 return 'fa-plus';
             } else {
                 return 'fa-pencil';
             }
             break;
         case self::TYPE_PHAME_TITLE:
         case self::TYPE_BODY:
         case self::TYPE_VISIBILITY:
             return 'fa-pencil';
             break;
     }
     return parent::getIcon();
 }
开发者ID:miaokuan,项目名称:phabricator,代码行数:19,代码来源:PhamePostTransaction.php


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