src/apis/StorageController.php
public function actionFolderUpdate($folderId)
    {
        $this->checkRouteAccess(self::PERMISSION_ROUTE);
        
        $model = StorageFolder::findOne($folderId);
        if (!$model) {
            return false;
        }
        $model->attributes = Yii::$app->request->post();
    
        $this->flushApiCache();
        
        return $model->update();
    }
public function actionFolderUpdate($folderId)
    {
        $this->checkRouteAccess(self::PERMISSION_ROUTE);
        
        $model = StorageFolder::findOne($folderId);
        if (!$model) {
            return false;
        }
        $model->attributes = Yii::$app->request->post();
    
        $this->flushApiCache();
        
        return $model->update();
    }
public function actionFolderUpdate ( $ folderId ) { $ this -> checkRouteAccess ( self :: PERMISSION_ROUTE ) ; $ model = StorageFolder :: findOne ( $ folderId ) ; if ( ! $ model ) { return false ; } $ model -> attributes = Yii :: $ app -> request -> post ( ) ; $ this -> flushApiCache ( ) ; return $ model -> update ( ) ; }
Update the folder model data.

@param integer $folderId The folder id.
@return boolean
Update the folder model data .