GridHandler::fetchCell PHP Méthode

fetchCell() public méthode

Render a cell and send it to the client
public fetchCell ( &$args, $request ) : JSONMessage
$args array
$request Request
Résultat JSONMessage JSON object
    function fetchCell(&$args, $request)
    {
        // Check the requested column
        if (!isset($args['columnId'])) {
            fatalError('Missing column id!');
        }
        if (!$this->hasColumn($args['columnId'])) {
            fatalError('Invalid column id!');
        }
        $this->setFirstDataColumn();
        $column = $this->getColumn($args['columnId']);
        // Instantiate the requested row
        $row = $this->getRequestedRow($request, $args);
        if (is_null($row)) {
            fatalError('Row not found!');
        }
        // Render the cell
        return new JSONMessage(true, $this->_renderCellInternally($request, $row, $column));
    }