本文整理汇总了PHP中PhabricatorApplicationTransaction::getNoEffectDescription方法的典型用法代码示例。如果您正苦于以下问题:PHP PhabricatorApplicationTransaction::getNoEffectDescription方法的具体用法?PHP PhabricatorApplicationTransaction::getNoEffectDescription怎么用?PHP PhabricatorApplicationTransaction::getNoEffectDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PhabricatorApplicationTransaction
的用法示例。
在下文中一共展示了PhabricatorApplicationTransaction::getNoEffectDescription方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getNoEffectDescription
public function getNoEffectDescription()
{
switch ($this->getTransactionType()) {
case self::TYPE_ACTIVE:
return pht('The product is already in that state.');
}
return parent::getNoEffectDescription();
}
示例2: getNoEffectDescription
public function getNoEffectDescription()
{
switch ($this->getTransactionType()) {
case self::TYPE_PARTICIPANTS:
return pht('You can not add a participant who has already been added.');
break;
}
return parent::getNoEffectDescription();
}
示例3: getNoEffectDescription
public function getNoEffectDescription()
{
switch ($this->getTransactionType()) {
case self::TYPE_IMAGE_NAME:
return pht('The image title was not updated.');
case self::TYPE_IMAGE_DESCRIPTION:
return pht('The image description was not updated.');
case self::TYPE_IMAGE_SEQUENCE:
return pht('The image sequence was not updated.');
}
return parent::getNoEffectDescription();
}
示例4: getNoEffectDescription
public function getNoEffectDescription()
{
switch ($this->getTransactionType()) {
case self::TYPE_STATUS:
return pht('The task already has the selected status.');
case self::TYPE_OWNER:
return pht('The task already has the selected owner.');
case self::TYPE_PROJECTS:
return pht('The task is already associated with those projects.');
case self::TYPE_PRIORITY:
return pht('The task already has the selected priority.');
}
return parent::getNoEffectDescription();
}
示例5: getNoEffectDescription
public function getNoEffectDescription()
{
switch ($this->getTransactionType()) {
case PhabricatorTransactions::TYPE_EDGE:
switch ($this->getMetadataValue('edge:type')) {
case DifferentialRevisionHasReviewerEdgeType::EDGECONST:
return pht('The reviewers you are trying to add are already reviewing ' . 'this revision.');
}
break;
case self::TYPE_ACTION:
switch ($this->getNewValue()) {
case DifferentialAction::ACTION_CLOSE:
return pht('This revision is already closed.');
case DifferentialAction::ACTION_ABANDON:
return pht('This revision has already been abandoned.');
case DifferentialAction::ACTION_RECLAIM:
return pht('You can not reclaim this revision because his revision is ' . 'not abandoned.');
case DifferentialAction::ACTION_REOPEN:
return pht('You can not reopen this revision because this revision is ' . 'not closed.');
case DifferentialAction::ACTION_RETHINK:
return pht('This revision already requires changes.');
case DifferentialAction::ACTION_REQUEST:
return pht('Review is already requested for this revision.');
case DifferentialAction::ACTION_RESIGN:
return pht('You can not resign from this revision because you are not ' . 'a reviewer.');
case DifferentialAction::ACTION_CLAIM:
return pht('You can not commandeer this revision because you already own ' . 'it.');
case DifferentialAction::ACTION_ACCEPT:
return pht('You have already accepted this revision.');
case DifferentialAction::ACTION_REJECT:
return pht('You have already requested changes to this revision.');
}
break;
}
return parent::getNoEffectDescription();
}