PMA\libraries\controllers\table\TableSearchController::changeTableInfoAction PHP Метод

changeTableInfoAction() публичный Метод

Change table info action
public changeTableInfoAction ( ) : void
Результат void
    public function changeTableInfoAction()
    {
        $field = $_REQUEST['field'];
        if ($field == 'pma_null') {
            $this->response->addJSON('field_type', '');
            $this->response->addJSON('field_collation', '');
            $this->response->addJSON('field_operators', '');
            $this->response->addJSON('field_value', '');
            return;
        }
        $key = array_search($field, $this->_columnNames);
        $search_index = isset($_REQUEST['it']) && is_numeric($_REQUEST['it']) ? intval($_REQUEST['it']) : 0;
        $properties = $this->getColumnProperties($search_index, $key);
        $this->response->addJSON('field_type', htmlspecialchars($properties['type']));
        $this->response->addJSON('field_collation', $properties['collation']);
        $this->response->addJSON('field_operators', $properties['func']);
        $this->response->addJSON('field_value', $properties['value']);
    }