components/MainBehavior.php
public function refresh()
    {
        $behaviors = $this->owner->behaviors();
        $settings = $behaviors[$this->getName()];
        foreach ($settings as $attribute=>$value) {
            if (in_array($attribute, array('class'))) {
                continue;
            }
            $this->$attribute = $value;
        }
        return $this;
    }
public function refresh()
    {
        $behaviors = $this->owner->behaviors();
        $settings = $behaviors[$this->getName()];
        foreach ($settings as $attribute=>$value) {
            if (in_array($attribute, array('class'))) {
                continue;
            }
            $this->$attribute = $value;
        }
        return $this;
    }
public function refresh ( ) { $ behaviors = $ this -> owner -> behaviors ( ) ; $ settings = $ behaviors [ $ this -> getName ( ) ] ; foreach ( $ settings as $ attribute => $ value ) { if ( in_array ( $ attribute , array ( 'class' ) ) ) { continue ; } $ this -> $ attribute = $ value ; } return $ this ; }
refreshes its attributes from owner behavior method data
@return \ActiveRecordBehavior this
refreshes its attributes from owner behavior method data