public function allButtons()
    {
        $buttons = [];
        if (\Yii::$app->user->checkAccess('read::' . $this->getCompatibilityId())) {
            $buttons['pdf'] = [
                'text' => 'Download PDF',
                'url' => Url::toRoute(['pdf']),
                'options' => [
                    'target' => '_blank',
                ]
            ];
            $buttons['csv'] = [
                'text' => 'Download CSV',
                'url' => Url::toRoute(['csv']),
                'options' => [
                    'target' => '_blank',
                ]
            ];
        }
        return $buttons;
    }
public function allButtons()
    {
        $buttons = [];
        if (\Yii::$app->user->checkAccess('read::' . $this->getCompatibilityId())) {
            $buttons['pdf'] = [
                'text' => 'Download PDF',
                'url' => Url::toRoute(['pdf']),
                'options' => [
                    'target' => '_blank',
                ]
            ];
            $buttons['csv'] = [
                'text' => 'Download CSV',
                'url' => Url::toRoute(['csv']),
                'options' => [
                    'target' => '_blank',
                ]
            ];
        }
        return $buttons;
    }
public function allButtons ( ) { $ buttons = [ ] ; if ( \ Yii :: $ app -> user -> checkAccess ( 'read::' . $ this -> getCompatibilityId ( ) ) ) { $ buttons [ 'pdf' ] = [ 'text' => 'Download PDF' , 'url' => Url :: toRoute ( [ 'pdf' ] ) , 'options' => [ 'target' => '_blank' , ] ] ; $ buttons [ 'csv' ] = [ 'text' => 'Download CSV' , 'url' => Url :: toRoute ( [ 'csv' ] ) , 'options' => [ 'target' => '_blank' , ] ] ; } return $ buttons ; }
Sets the buttons that can be performed on the entire result
@return array
Sets the buttons that can be performed on the entire result