/** * Tells the wizard component to update itself - this may include getting * form post data or validation - whatever this particular component wants to * do every pageload. * * @param string $fieldName The field name to use when outputting form data or * similar parameters/information. * @access public * @return boolean - TRUE if everything is OK * @since 11/27/07 */ public function update($fieldName) { parent::update($fieldName); $this->searchSource->update($fieldName); }
/** * Tells the wizard component to update itself - this may include getting * form post data or validation - whatever this particular component wants to * do every pageload. * * @param string $fieldName The field name to use when outputting form data or * similar parameters/information. * @access public * @return boolean - TRUE if everything is OK * @since 12/12/07 */ public function update($fieldName) { // Update the list with any subtractions $removeId = RequestContext::value($fieldName . "_remove"); if ($removeId) { foreach ($this->list as $key => $result) { if ($removeId == $result->getIdString()) { $this->removeFromList($key); break; } } } // Update the list with any additions $addId = RequestContext::value($fieldName . "_add"); if ($addId) { foreach ($this->searchResults as $result) { if ($addId == $result->getIdString()) { $this->addToList($result); break; } } } // update the search field parent::update($fieldName); }