src/apis/StorageController.php
public function actionFileInfo($id)
    {
        $model = StorageFile::find()->where(['id' => $id])->with(['user', 'images', 'tags'])->one();
        
        if (!$model) {
            throw new NotFoundHttpException("Unable to find the given storage file.");
        }
        
        return $model->toArray([], ['user', 'file', 'images', 'source', 'tags']);
    }
public function actionFileInfo($id)
    {
        $model = StorageFile::find()->where(['id' => $id])->with(['user', 'images', 'tags'])->one();
        
        if (!$model) {
            throw new NotFoundHttpException("Unable to find the given storage file.");
        }
        
        return $model->toArray([], ['user', 'file', 'images', 'source', 'tags']);
    }
public function actionFileInfo ( $ id ) { $ model = StorageFile :: find ( ) -> where ( [ 'id' => $ id ] ) -> with ( [ 'user' , 'images' , 'tags' ] ) -> one ( ) ; if ( ! $ model ) { throw new NotFoundHttpException ( "Unable to find the given storage file." ) ; } return $ model -> toArray ( [ ] , [ 'user' , 'file' , 'images' , 'source' , 'tags' ] ) ; }
Get all storage file informations for a given ID.

@param integer $fileId
@throws NotFoundHttpException
@return array
@since 1.2.0
Get all storage file informations for a given ID .