base\Component hasMethod()

hasMethod() public method

Returns a value indicating whether a method is defined.

A method is defined if:

  • the class has a method with the specified name
  • an attached behavior has a method with the given name (when $checkBehaviors is true).
public boolean hasMethod ( $name, $checkBehaviors = true )
$name string

The property name

$checkBehaviors boolean

Whether to treat behaviors' methods as methods of this component

return boolean

Whether the property is defined

doc_Yii
2016-10-30 16:51:06
Comments
Leave a Comment

Please login to continue.