function createItemElement($content, $checked = false) { $name = RequestContext::name($this->_fieldName . "_checked"); $currItemId = $this->_currentItem->getId(); $id = urlencode($currItemId->getIdString()); $chk = $checked ? " checked" : ""; $content = "<input type='checkbox' name='" . $name . "[]' value='{$id}'{$chk} />\n" . $content; return parent::createItemElement($content); }
/** * Return a string containing HTML links to other pages of the iterator. * if all items fit on one page, an empty string will be returned. * * @param integer $startingNumber The item number to start with. * @param integer $numItems The total number of Items. * @return string * @access public * @since 12/7/05 */ function getPageLinks($startingNumber, $numItems) { return "<td colspan='4'>" . parent::getPageLinks($startingNumber, $numItems) . "</td>"; }