Changeset 15534
- Timestamp:
- 03/12/08 19:19:21 (7 months ago)
- Files:
-
- trunk/midcom/midcom.core/midcom/core/service/implementation/urlparsertopic.php (modified) (2 diffs)
- trunk/midcom/midcom.core/midcom/services/indexer/document/datamanager.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/services/indexer/document/datamanager2.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/services/indexer/document/midcom.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager/datamanager.php (modified) (1 diff)
- trunk/midcom/net.nemein.payment/config/config.inc (modified) (1 diff)
- trunk/midcom/no.odindata.quickform/formvar.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.core/midcom/core/service/implementation/urlparsertopic.php
r14767 r15534 125 125 126 126 return false; 127 } 127 } 128 128 129 129 $qb = midcom_db_topic::new_query_builder(); … … 169 169 * 170 170 * Try to decode an <namespace>-<key>-<value> pair at the current URL 171 * position. Namespace must be a valid MidCOM Path, Key must ma ch the RegEx171 * position. Namespace must be a valid MidCOM Path, Key must match the RegEx 172 172 * [a-zA-Z0-9]* and value must not contain a "/". 173 173 * 174 * On success it returns an a cciocative array containing two rows,174 * On success it returns an associative array containing two rows, 175 175 * indexed with MIDGARD_HELPER_URLPARSER_KEY and _VALUE which hold 176 176 * the elements that have been parsed. $this->argv[0] will be dropped trunk/midcom/midcom.core/midcom/services/indexer/document/datamanager.php
r14773 r15534 59 59 * 60 60 * Due to the performance drawbacks it should be avoided to rely on this 61 * b ahvoir. Instead, if you don't have a field called 'title' set to auto-indexing,61 * behavior. Instead, if you don't have a field called 'title' set to auto-indexing, 62 62 * set another field to the index-method title (see below). Note, that you should 63 63 * configure that field in a way so that it is not allowed to leave the field empty, trunk/midcom/midcom.core/midcom/services/indexer/document/datamanager2.php
r14391 r15534 90 90 * Be aware that this class is designed to work on *datamanager2* instances, not 91 91 * formmanagers, controllers or storage backends. It is also only targeted for the 92 * actual database storage backend, so the nullstorage back and will not work.92 * actual database storage backend, so the nullstorage backend will not work. 93 93 * 94 94 * @package midcom.services trunk/midcom/midcom.core/midcom/services/indexer/document/midcom.php
r14916 r15534 13 13 * be used whenever MidCOM documents are indexed, either directly or as a base class. 14 14 * 15 * It will take an arbit ary Midgard Object, for which Metadata must be available.15 * It will take an arbitrary Midgard Object, for which Metadata must be available. 16 16 * The document class will then load the metadata information out of the database 17 17 * and populate all metadata fields of the document from there. trunk/midcom/midcom.helper.datamanager/datamanager.php
r15234 r15534 1019 1019 * if the DM returns MIDCOM_DATAMGR_EDITING, you must honor this 1020 1020 * by no longer entering the creation mode, you'll have to fall 1021 * back to the original b ahvoir for future runs in that case.1021 * back to the original behavior for future runs in that case. 1022 1022 * See the data array for a guid/id off the content object. 1023 1023 */ 1024 1024 } 1025 1025 1026 /* F rist, synchronize all data and check for required fields.1026 /* First, synchronize all data and check for required fields. 1027 1027 * Note, that this place could be used for validation as well. 1028 * For readonly/hidden fields, do the opposit , resync the widget1028 * For readonly/hidden fields, do the opposite, resync the widget 1029 1029 * with the datatype, just to be on the safe side. 1030 1030 */ trunk/midcom/net.nemein.payment/config/config.inc
r1228 r15534 1 1 // Payment handlers, override this in your sitegroup configuration 2 // Handlers are indexed by arbit ary values which are not used for further2 // Handlers are indexed by arbitrary values which are not used for further 3 3 // processing. 4 4 // trunk/midcom/no.odindata.quickform/formvar.php
r14773 r15534 10 10 /** 11 11 * midcom_helper_datamanager_getvar 12 * 12 * 13 13 * this class extends DM and only implements one function that, when it is perfect 14 14 * should be ported back to dm. … … 21 21 */ 22 22 var $attachments = array(); 23 23 24 24 function process_form_to_array () 25 25 { … … 27 27 $success = true; 28 28 $this->errstr = ""; 29 29 30 30 debug_push ('midcom_helper_datamanager::process_form_to_array'); 31 31 32 32 33 33 /*** EDIT FORM: CANCEL ***/ 34 34 if (array_key_exists ($this->form_prefix . 'cancel', $_REQUEST)) … … 36 36 debug_add('CANCEL: Editing aborted.'); 37 37 $this->_processing_result = MIDCOM_DATAMGR_CANCELLED; 38 38 39 39 return $this->_processing_result; 40 40 } 41 41 42 42 /*** EDIT FORM: SUBMIT ***/ 43 43 if (array_key_exists ($this->form_prefix . 'submit', $_REQUEST)) 44 44 { 45 45 $this->_processing_result = MIDCOM_DATAMGR_SAVED; 46 foreach ($this->_fields as $name => $field) 46 foreach ($this->_fields as $name => $field) 47 47 { 48 48 switch (get_class($this->_datatypes[$name])) 49 { 49 { 50 50 case 'midcom_helper_datamanager_datatype_blob': 51 51 if (is_uploaded_file($_FILES["midcom_helper_datamanager_field_{$name}"]['tmp_name'])) … … 59 59 } 60 60 break; 61 61 62 62 default: 63 63 if (array_key_exists("midcom_helper_datamanager_field_{$name}", $_POST)) … … 78 78 * First, synchronize all data and check for required fields. 79 79 * Note, that this place could be used for validation as well. 80 * For readonly/hidden fields, do the opposit , resync the widget80 * For readonly/hidden fields, do the opposite, resync the widget 81 81 * with the datatype, just to be on the safe side. 82 82 */ 83 83 $this->_missing_required_fields = Array(); 84 84 85 85 foreach ($this->_fields as $name => $field) 86 86 { … … 97 97 $object->sync_data_with_widget(); 98 98 } 99 99 100 100 if ( $field['required'] === true 101 101 && $object->is_empty() == true) 102 102 { 103 $this->_missing_required_fields[] = $name; 103 $this->_missing_required_fields[] = $name; 104 104 $msg = sprintf($this->_l10n->get('required field missing'), $field['description']); 105 105 $this->append_error("<p class=\"error\">{$msg}</p>\n"); 106 106 $success = false; 107 107 } 108 108 109 109 /* input validation */ 110 if ( $success 111 && array_key_exists('validation', $field)) 110 if ( $success 111 && array_key_exists('validation', $field)) 112 112 { 113 113 if (!is_object($this->_rule_registry)) … … 123 123 return true; 124 124 } 125 } 125 } 126 126 $success = $object->validate($field['description'], $field['validation'],$name); 127 127 } 128 128 } 129 129 130 130 if (!$success) 131 131 { 132 132 $this->_processing_result = MIDCOM_DATAMGR_EDITING; 133 133 } 134 134 135 135 debug_add ('Form submitted.', MIDCOM_LOG_WARN); 136 136 return $this->_processing_result; 137 137 } 138 138 139 139 // nothing to do, how nice :) 140 140 debug_add ('Form opened:.', MIDCOM_LOG_WARN); 141 141 $this->_processing_result = MIDCOM_DATAMGR_EDITING; 142 142 143 143 return $this->_processing_result; 144 } 144 } 145 145 } 146 146 ?>
