Changeset 14806
- Timestamp:
- 02/08/08 13:20:00 (10 months ago)
- Files:
-
- trunk/midcom/midcom.helper.datamanager2/datamanager.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/type.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/type/blobs.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/type/mnrelation.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/type/parameters.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/type/position.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/type/privilege.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/type/privilegeset.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/type/tags.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/type/tagselect.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.helper.datamanager2/datamanager.php
r14773 r14806 400 400 continue; 401 401 } 402 $result[$name] = $this->types[$name]->convert_to_ storage();402 $result[$name] = $this->types[$name]->convert_to_raw(); 403 403 } 404 404 return $result; trunk/midcom/midcom.helper.datamanager2/type.php
r14329 r14806 214 214 215 215 /** 216 * Transforms the current objects' state into 'raw' representation. Usually 217 * the convert_to_storage -method returns suitable value, but in some datatypes 218 * (like privilege, blobs-based ones and tags), convert_to_storage does database 219 * IO directly and returns less usefull data. 220 * 221 * @see convert_to_storage 222 * @return mixed The rendered content. 223 */ 224 function convert_to_raw() 225 { 226 return $this->convert_to_storage(); 227 } 228 229 /** 216 230 * Main validation interface, currently only calls the main type callback, but this 217 231 * can be extended later by a configurable callback into the component. trunk/midcom/midcom.helper.datamanager2/type/blobs.php
r14390 r14806 300 300 } 301 301 302 function convert_to_raw() 303 { 304 return ''; 305 } 306 302 307 function convert_to_storage() 303 308 { trunk/midcom/midcom.helper.datamanager2/type/mnrelation.php
r14329 r14806 372 372 } 373 373 374 function convert_to_raw() 375 { 376 return null; 377 } 374 378 } 375 379 trunk/midcom/midcom.helper.datamanager2/type/parameters.php
r14329 r14806 77 77 } 78 78 79 function convert_to_raw() 80 { 81 return $this->convert_to_csv(); 82 } 83 79 84 /** 80 85 * trunk/midcom/midcom.helper.datamanager2/type/position.php
r14084 r14806 50 50 $this->location = new org_routamc_positioning_location_dba(); 51 51 } 52 } 53 54 function convert_to_raw() 55 { 56 return $this->convert_to_csv(); 52 57 } 53 58 trunk/midcom/midcom.helper.datamanager2/type/privilege.php
r14327 r14806 173 173 } 174 174 175 function convert_to_raw() 176 { 177 return $this->get_value(); 178 } 179 175 180 function convert_to_html() 176 181 { trunk/midcom/midcom.helper.datamanager2/type/privilegeset.php
r14179 r14806 100 100 } 101 101 102 function convert_to_raw() 103 { 104 return ''; 105 } 106 102 107 /** 103 108 * Stores the privileges to the database. This call retrieves a temporary object if necessary. trunk/midcom/midcom.helper.datamanager2/type/tags.php
r14329 r14806 58 58 return null; 59 59 } 60 61 function convert_to_raw() 62 { 63 return net_nemein_tag_handler::string2tag_array($this->value); 64 } 60 65 } 61 66 trunk/midcom/midcom.helper.datamanager2/type/tagselect.php
r14329 r14806 472 472 } 473 473 474 function convert_to_raw() 475 { 476 return $this->selection; 477 } 478 474 479 /** 475 480 * Merges selection and others arrays, the validation cycle ensures that they are
