本文整理汇总了PHP中PhabricatorApplicationTransaction::hasChangeDetails方法的典型用法代码示例。如果您正苦于以下问题:PHP PhabricatorApplicationTransaction::hasChangeDetails方法的具体用法?PHP PhabricatorApplicationTransaction::hasChangeDetails怎么用?PHP PhabricatorApplicationTransaction::hasChangeDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PhabricatorApplicationTransaction
的用法示例。
在下文中一共展示了PhabricatorApplicationTransaction::hasChangeDetails方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: hasChangeDetails
public function hasChangeDetails()
{
switch ($this->getTransactionType()) {
case self::TYPE_EDIT:
return true;
}
return parent::hasChangeDetails();
}
示例2: hasChangeDetails
public function hasChangeDetails()
{
switch ($this->getTransactionType()) {
default:
break;
}
return parent::hasChangeDetails();
}
示例3: hasChangeDetails
public function hasChangeDetails()
{
switch ($this->getTransactionType()) {
case self::TYPE_DESCRIPTION:
return $this->getOldValue() !== null;
}
return parent::hasChangeDetails();
}
示例4: hasChangeDetails
public function hasChangeDetails()
{
$old = $this->getOldValue();
switch ($this->getTransactionType()) {
case self::TYPE_CONTENT:
return $old !== null;
}
return parent::hasChangeDetails();
}
示例5: hasChangeDetails
public function hasChangeDetails()
{
switch ($this->getTransactionType()) {
case self::TYPE_TITLE:
case self::TYPE_TEXT:
case self::TYPE_PREAMBLE:
return true;
}
return parent::hasChangeDetails();
}
示例6: hasChangeDetails
public function hasChangeDetails()
{
switch ($this->getTransactionType()) {
case self::TYPE_DESCRIPTION:
return $this->getOldValue() !== null;
case self::TYPE_CONTACTINFO:
return $this->getOldValue() !== null;
case self::TYPE_INVOICEEMAIL:
return $this->getOldValue() !== null;
case self::TYPE_INVOICEFOOTER:
return $this->getOldValue() !== null;
}
return parent::hasChangeDetails();
}
示例7: hasChangeDetails
public final function hasChangeDetails()
{
if ($this->getTransactionImplementation()->hasChangeDetailView()) {
return true;
}
return parent::hasChangeDetails();
}
示例8: hasChangeDetails
public function hasChangeDetails()
{
switch ($this->getTransactionType()) {
case self::TYPE_CONTENT:
case self::TYPE_ANSWERWIKI:
return true;
}
return parent::hasChangeDetails();
}
示例9: hasChangeDetails
public function hasChangeDetails()
{
switch ($this->getTransactionType()) {
case self::TYPE_DESCRIPTION:
case self::TYPE_IMAGE_DESCRIPTION:
return true;
}
return parent::hasChangeDetails();
}
示例10: hasChangeDetails
public function hasChangeDetails()
{
switch ($this->getTransactionType()) {
case PhabricatorSlowvoteTransaction::TYPE_DESCRIPTION:
return true;
}
return parent::hasChangeDetails();
}