protected function setQueryOptions($crud_type = 'Read')
    {
        $options   = array();
        $crud_type = ucfirst(strtolower($crud_type));

        if ($crud_type === 'Create'
            || $crud_type === 'Read'
            || $crud_type === 'Update'
            || $crud_type === 'Delete'
        ) {
        } else {
            $crud_type = 'Read';
        }

        $options['crud_type']    = $crud_type;
        $options['runtime_data'] = $this->runtime_data;

        if (isset($this->plugin_data)) {
            $options['plugin_data'] = $this->plugin_data;
        }

        return $options;
    }
protected function setQueryOptions($crud_type = 'Read')
    {
        $options   = array();
        $crud_type = ucfirst(strtolower($crud_type));

        if ($crud_type === 'Create'
            || $crud_type === 'Read'
            || $crud_type === 'Update'
            || $crud_type === 'Delete'
        ) {
        } else {
            $crud_type = 'Read';
        }

        $options['crud_type']    = $crud_type;
        $options['runtime_data'] = $this->runtime_data;

        if (isset($this->plugin_data)) {
            $options['plugin_data'] = $this->plugin_data;
        }

        return $options;
    }
protected function setQueryOptions ( $ crud_type = 'Read' ) { $ options = array ( ) ; $ crud_type = ucfirst ( strtolower ( $ crud_type ) ) ; if ( $ crud_type === 'Create' || $ crud_type === 'Read' || $ crud_type === 'Update' || $ crud_type === 'Delete' ) { } else { $ crud_type = 'Read' ; } $ options [ 'crud_type' ] = $ crud_type ; $ options [ 'runtime_data' ] = $ this -> runtime_data ; if ( isset ( $ this -> plugin_data ) ) { $ options [ 'plugin_data' ] = $ this -> plugin_data ; } return $ options ; }
Set Query Options

@param   string $crud_type

@return  array
@since   1.0.0
Set Query Options