public function hasMethod($name, $checkBehaviors = true)
{
if (method_exists($this, $name)) {
return true;
} elseif ($checkBehaviors) {
$this->ensureBehaviors();
foreach ($this->_behaviors as $behavior) {
if ($behavior->hasMethod($name)) {
return true;
}
}
}
return false;
}
/** * @inheritdoc */ public function hasMethod($name, $checkBehaviors = true) { if (method_exists($this->obj, $name)) { return true; } return parent::hasMethod($name, $checkBehaviors); }