/** * Method to change the published state of one or more records. * * @param array &$pks A list of the primary keys to change. * @param integer $value The value of the published state. * * @return boolean True on success. * * @since 11.1 */ public function publish(&$pks = null, $value = 1) { // make keys to array $pks = $this->_getPrimaryKeys($pks); $val = JRequest::getVar('value', $value); // Execute parent $result = parent::publish($pks, $val); // Build Return Object return $this->_setReturnValue($result); }