/** * function loadFromForm * <pre> * Loads the data from the submitted form. * </pre> * @return [void] */ function loadFromForm() { parent::loadFromForm(); /* * Put any additional data manipulations here. * if you don't need to do anything else, you should * just remove this method and let the parent method get * called directly. */ }
/** * function loadFromForm * <pre> * Loads the data from the submitted form. * </pre> * @return [void] */ function loadFromForm() { parent::loadFromForm(); // if the button pressed was a 'Delete?' confirmation then if (isset($_REQUEST['submit'])) { if ($_REQUEST['submit'] == $this->labels->getLabel('[Delete?]')) { // set shouldDelete $this->shouldDelete = true; } } }