backend/models/search/EventsForFileSearch.php
/**
     * Creates data provider instance with search query applied
     *
     * @param \common\models\UserFiles $UserFile
     * @return ActiveDataProvider
     */
Creates data provider instance with search query applied
@param \common\models\UserFiles $UserFile
@return ActiveDataProvider
Creates data provider instance with search query applied @param \ common \ models \ UserFiles $UserFile @return ActiveDataProvider
public function search($UserFile)
    {
        $queryEvents = UserFileEvents::find()->with('node')
            ->where([
                'user_id' => $UserFile->user_id,
                'file_id' => $UserFile->file_id
            ]);
        $dataProvider = new ActiveDataProvider([
            'query' => $queryEvents,
            'sort'=> false,
            'pagination' => false,
        ]);
        return $dataProvider;
    }
public function search ( $ UserFile ) { $ queryEvents = UserFileEvents :: find ( ) -> with ( 'node' ) -> where ( [ 'user_id' => $ UserFile -> user_id , 'file_id' => $ UserFile -> file_id ] ) ; $ dataProvider = new ActiveDataProvider ( [ 'query' => $ queryEvents , 'sort' => false , 'pagination' => false , ] ) ; return $ dataProvider ; }
Creates data provider instance with search query applied
 @param \common\models\UserFiles $UserFile
 @return ActiveDataProvider
Creates data provider instance with search query applied @param \ common \ models \ UserFiles $UserFile @return ActiveDataProvider