private function setField($tableSource, $dtl, $features, $fieldLabel)
    {
        if ($dtl['COLUMN_NAME'] == 'host') {
            $inVl = gethostbyaddr($this->tCmnRequest->server->get('REMOTE_ADDR'));
            return [
                'label' => '<label for="' . $dtl['COLUMN_NAME'] . '">Numele calculatorului</label>',
                'input' => '<input type="text" name="host" size="15" readonly value="' . $inVl . '" />',
            ];
        }
        $result = $this->setFieldInput($tableSource, $dtl, $features);
        return ['label' => $this->setFieldLabel($dtl, $features, $fieldLabel), 'input' => $result];
    }
private function setField($tableSource, $dtl, $features, $fieldLabel)
    {
        if ($dtl['COLUMN_NAME'] == 'host') {
            $inVl = gethostbyaddr($this->tCmnRequest->server->get('REMOTE_ADDR'));
            return [
                'label' => '<label for="' . $dtl['COLUMN_NAME'] . '">Numele calculatorului</label>',
                'input' => '<input type="text" name="host" size="15" readonly value="' . $inVl . '" />',
            ];
        }
        $result = $this->setFieldInput($tableSource, $dtl, $features);
        return ['label' => $this->setFieldLabel($dtl, $features, $fieldLabel), 'input' => $result];
    }
private function setField ( $ tableSource , $ dtl , $ features , $ fieldLabel ) { if ( $ dtl [ 'COLUMN_NAME' ] == 'host' ) { $ inVl = gethostbyaddr ( $ this -> tCmnRequest -> server -> get ( 'REMOTE_ADDR' ) ) ; return [ 'label' => '<label for="' . $ dtl [ 'COLUMN_NAME' ] . '">Numele calculatorului</label>' , 'input' => '<input type="text" name="host" size="15" readonly value="' . $ inVl . '" />' , ] ; } $ result = $ this -> setFieldInput ( $ tableSource , $ dtl , $ features ) ; return [ 'label' => $ this -> setFieldLabel ( $ dtl , $ features , $ fieldLabel ) , 'input' => $ result ] ; }
Builds field output w. special column name

@param string $tableSource
@param array $dtl
@param array $features
@param string $fieldLabel
@return array
Builds field output w . special column name