本文整理汇总了PHP中thebuggenie\core\entities\User::doesIDExist方法的典型用法代码示例。如果您正苦于以下问题:PHP User::doesIDExist方法的具体用法?PHP User::doesIDExist怎么用?PHP User::doesIDExist使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类thebuggenie\core\entities\User
的用法示例。
在下文中一共展示了User::doesIDExist方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: hasValidTarget
public function hasValidTarget()
{
if (!$this->_target_value) {
return true;
}
switch ($this->_action_type) {
case self::ACTION_ASSIGN_ISSUE:
$target_details = explode('_', $this->_target_value);
return (bool) ($target_details[0] == 'user') ? \thebuggenie\core\entities\User::doesIDExist($target_details[1]) : Team::doesIDExist($target_details[1]);
break;
case self::ACTION_SET_PERCENT:
return (bool) ($this->_target_value > -1);
break;
case self::ACTION_SET_MILESTONE:
return (bool) Milestone::doesIDExist($this->_target_value);
break;
case self::ACTION_SET_PRIORITY:
return (bool) Priority::has($this->_target_value);
break;
case self::ACTION_SET_STATUS:
return (bool) Status::has($this->_target_value);
break;
case self::ACTION_SET_REPRODUCABILITY:
return (bool) Reproducability::has($this->_target_value);
break;
case self::ACTION_SET_RESOLUTION:
return (bool) Resolution::has($this->_target_value);
break;
default:
return true;
}
}