private function appendCheckRow($row, $checkName, $checked, $checkValue = '')
    {
        // Create the check item
        $gridCheck = $this->getFormFactory()->buildHtmlElement('div', '', '', 'DataTableCheck');

        // Get the checkbox
        $chk = $this->getFormFactory()->buildInput($type = 'checkbox', $name = $checkName, $value = $checkValue, $id = '', $class = '', $autofocus = false, $required = false);
        if ($checked) {
            $chk->attr('checked', 'checked');
        }
        $gridCheck->append($chk);

        // Add to checklist
        $this->checkList[] = $chk;
        $row->prepend($gridCheck);

        return $this;
    }
private function appendCheckRow($row, $checkName, $checked, $checkValue = '')
    {
        // Create the check item
        $gridCheck = $this->getFormFactory()->buildHtmlElement('div', '', '', 'DataTableCheck');

        // Get the checkbox
        $chk = $this->getFormFactory()->buildInput($type = 'checkbox', $name = $checkName, $value = $checkValue, $id = '', $class = '', $autofocus = false, $required = false);
        if ($checked) {
            $chk->attr('checked', 'checked');
        }
        $gridCheck->append($chk);

        // Add to checklist
        $this->checkList[] = $chk;
        $row->prepend($gridCheck);

        return $this;
    }
private function appendCheckRow ( $ row , $ checkName , $ checked , $ checkValue = '' ) { // Create the check item $ gridCheck = $ this -> getFormFactory ( ) -> buildHtmlElement ( 'div' , '' , '' , 'DataTableCheck' ) ; // Get the checkbox $ chk = $ this -> getFormFactory ( ) -> buildInput ( $ type = 'checkbox' , $ name = $ checkName , $ value = $ checkValue , $ id = '' , $ class = '' , $ autofocus = false , $ required = false ) ; if ( $ checked ) { $ chk -> attr ( 'checked' , 'checked' ) ; } $ gridCheck -> append ( $ chk ) ; // Add to checklist $ this -> checkList [ ] = $ chk ; $ row -> prepend ( $ gridCheck ) ; return $ this ; }
Assistant function in prepending a checkbox in a row.

@param HTMLElement $row        Row to insert checkbox
@param string      $checkName  Name of the checkbox
@param bool        $checked    Initial state of the checkbox
@param string      $checkValue The value of the row's checkbox (This is ignored if list is not checkable).
It is empty by default.

@return $this
@throws Exception
@throws InvalidArgumentException
Assistant function in prepending a checkbox in a row .