protected function beforeSave($event)
    {
        if ($this->autoSave) {
            $this->saveFile($this->owner->{$this->uploadAttribute}, $this->name, $this->path);
        }
    }
protected function beforeSave($event)
    {
        if ($this->autoSave) {
            $this->saveFile($this->owner->{$this->uploadAttribute}, $this->name, $this->path);
        }
    }
protected function beforeSave ( $ event ) { if ( $ this -> autoSave ) { $ this -> saveFile ( $ this -> owner -> { $ this -> uploadAttribute } , $ this -> name , $ this -> path ) ; } }
Actions to take before saving the owner of this behavior.
@param CModelEvent $event event parameter.
Actions to take before saving the owner of this behavior .