public function buildRow($title, $input, $required = false, $notes = '')
    {
        // Create form row
        $row = $this->formRow();

        // Create label
        $inputId = $input->attr('id');
        $label = $this->buildLabel($title, $inputId, $required);
        $row->append($label);

        // Append input
        if (!is_null($input)) {
            $input->addClass('form-input');
            $row->append($input);
        }

        // Set input notes
        if (!empty($notes)) {
            $notesElement = $this->formNotes($notes);
            $row->append($notesElement);
        }

        return $row;
    }
public function buildRow($title, $input, $required = false, $notes = '')
    {
        // Create form row
        $row = $this->formRow();

        // Create label
        $inputId = $input->attr('id');
        $label = $this->buildLabel($title, $inputId, $required);
        $row->append($label);

        // Append input
        if (!is_null($input)) {
            $input->addClass('form-input');
            $row->append($input);
        }

        // Set input notes
        if (!empty($notes)) {
            $notesElement = $this->formNotes($notes);
            $row->append($notesElement);
        }

        return $row;
    }
public function buildRow ( $ title , $ input , $ required = false , $ notes = '' ) { // Create form row $ row = $ this -> formRow ( ) ; // Create label $ inputId = $ input -> attr ( 'id' ) ; $ label = $ this -> buildLabel ( $ title , $ inputId , $ required ) ; $ row -> append ( $ label ) ; // Append input if ( ! is_null ( $ input ) ) { $ input -> addClass ( 'form-input' ) ; $ row -> append ( $ input ) ; } // Set input notes if ( ! empty ( $ notes ) ) { $ notesElement = $ this -> formNotes ( $ notes ) ; $ row -> append ( $ notesElement ) ; } return $ row ; }
Builds a form row including a label and an input.

@param string      $title
@param HTMLElement $input
@param bool        $required
@param string      $notes

@return HTMLElement
@throws Exception
@throws InvalidArgumentException
Builds a form row including a label and an input .