/** * Executes the form for an object. * @param STORABLE $obj * @param string $load_action * @access private */ protected function _process($obj, $load_action) { if ($this->previewing()) { if ($load_action != Form_load_action_default && $obj->exists()) { $this->_set_object($obj, $load_action); } $this->validate($obj); if (sizeof($this->_errors) == 0) { /* Store the data loaded from the request to the object and add it as a preview. */ $this->_store_to_object($obj); $this->add_preview($obj, $this->_preview_title($obj)); } $this->_apply_all_data($obj, $load_action); } else { parent::_process($obj, $load_action); } }