base\Component canSetProperty()

canSetProperty() public method Returns a value indicating whether a property can be set. A property can be written if: the class has a setter method associated with the specified name (in this case, property name is case-insensitive); the class has a member variable with the specified name (when $checkVars is true); an attached behavior has a writable property of the given name (when $checkBehaviors is true). See also canGetProperty(). public boolean canSetProperty ( $name, $checkVars = t

base\Component canGetProperty()

canGetProperty() public method Returns a value indicating whether a property can be read. A property can be read if: the class has a getter method associated with the specified name (in this case, property name is case-insensitive); the class has a member variable with the specified name (when $checkVars is true); an attached behavior has a readable property of the given name (when $checkBehaviors is true). See also canSetProperty(). public boolean canGetProperty ( $name, $checkVars = tru

base\Component behaviors()

behaviors() public method Returns a list of behaviors that this component should behave as. Child classes may override this method to specify the behaviors they want to behave as. The return value of this method should be an array of behavior objects or configurations indexed by behavior names. A behavior configuration can be either a string specifying the behavior class or an array of the following structure: 'behaviorName' => [ 'class' => 'BehaviorClass', 'property1' => '

base\Component attachBehaviors()

attachBehaviors() public method Attaches a list of behaviors to the component. Each behavior is indexed by its name and should be a yii\base\Behavior object, a string specifying the behavior class, or an configuration array for creating the behavior. See also attachBehavior(). public void attachBehaviors ( $behaviors )$behaviors array List of behaviors to be attached to the component

base\Component attachBehavior()

attachBehavior() public method Attaches a behavior to this component. This method will create the behavior object based on the given configuration. After that, the behavior object will be attached to this component by calling the yii\base\Behavior::attach() method. See also detachBehavior(). public yii\base\Behavior attachBehavior ( $name, $behavior )$name string The name of the behavior. $behavior string|array|yii\base\Behavior The behavior configuration. This can be one of the foll

base\Component $behaviors

$behaviors public read-only property List of behaviors attached to this component public yii\base\Behavior[] getBehaviors ( )

base\BootstrapInterface bootstrap()

bootstrap() public abstract method Bootstrap method to be called during application bootstrap stage. public abstract void bootstrap ( $app )$app yii\base\Application The application currently running

base\Behavior events()

events() public method Declares event handlers for the $owner's events. Child classes may override this method to declare what PHP callbacks should be attached to the events of the $owner component. The callbacks will be attached to the $owner's events when the behavior is attached to the owner; and they will be detached from the events when the behavior is detached from the component. The callbacks can be any of the following: method in this behavior: 'handleClick', equivalent to [$this, '

base\Behavior detach()

detach() public method Detaches the behavior object from the component. The default implementation will unset the $owner property and detach event handlers declared in events(). Make sure you call the parent implementation if you override this method. public void detach ( )

base\Behavior attach()

attach() public method Attaches the behavior object to the component. The default implementation will set the $owner property and attach event handlers as declared in events(). Make sure you call the parent implementation if you override this method. public void attach ( $owner )$owner yii\base\Component The component that this behavior is to be attached to.