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
$checkBehaviorsis 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 |
Please login to continue.