Changeset 14805
- Timestamp:
- 02/08/08 13:08:20 (10 months ago)
- Files:
-
- branches/MidCOM_2_8/midcom.helper.datamanager2/datamanager.php (modified) (1 diff)
- branches/MidCOM_2_8/midcom.helper.datamanager2/type.php (modified) (1 diff)
- branches/MidCOM_2_8/midcom.helper.datamanager2/type/blobs.php (modified) (1 diff)
- branches/MidCOM_2_8/midcom.helper.datamanager2/type/mnrelation.php (modified) (1 diff)
- branches/MidCOM_2_8/midcom.helper.datamanager2/type/parameters.php (modified) (1 diff)
- branches/MidCOM_2_8/midcom.helper.datamanager2/type/position.php (modified) (1 diff)
- branches/MidCOM_2_8/midcom.helper.datamanager2/type/privilege.php (modified) (1 diff)
- branches/MidCOM_2_8/midcom.helper.datamanager2/type/privilegeset.php (modified) (1 diff)
- branches/MidCOM_2_8/midcom.helper.datamanager2/type/tags.php (modified) (1 diff)
- branches/MidCOM_2_8/midcom.helper.datamanager2/type/tagselect.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/MidCOM_2_8/midcom.helper.datamanager2/datamanager.php
r14625 r14805 382 382 continue; 383 383 } 384 $result[$name] = $this->types[$name]->convert_to_ storage();384 $result[$name] = $this->types[$name]->convert_to_raw(); 385 385 } 386 386 return $result; branches/MidCOM_2_8/midcom.helper.datamanager2/type.php
r14545 r14805 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. branches/MidCOM_2_8/midcom.helper.datamanager2/type/blobs.php
r13998 r14805 300 300 } 301 301 302 function convert_to_raw() 303 { 304 return ''; 305 } 306 307 302 308 /** 303 309 * This function synchronizes the attachment listing parameter of this field with the branches/MidCOM_2_8/midcom.helper.datamanager2/type/mnrelation.php
r14545 r14805 372 372 } 373 373 374 function convert_to_raw() 375 { 376 return null; 377 } 378 374 379 } 375 380 branches/MidCOM_2_8/midcom.helper.datamanager2/type/parameters.php
r14545 r14805 129 129 } 130 130 131 function convert_to_raw() 132 { 133 return $this->convert_to_csv(); 134 } 135 131 136 /** 132 137 * CSV conversion works from the storage representation, converting the arrays branches/MidCOM_2_8/midcom.helper.datamanager2/type/position.php
r13841 r14805 51 51 $this->location = new org_routamc_positioning_location_dba(); 52 52 } 53 } 54 55 function convert_to_raw() 56 { 57 return $this->convert_to_csv(); 53 58 } 54 59 branches/MidCOM_2_8/midcom.helper.datamanager2/type/privilege.php
r14545 r14805 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 { branches/MidCOM_2_8/midcom.helper.datamanager2/type/privilegeset.php
r14545 r14805 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. branches/MidCOM_2_8/midcom.helper.datamanager2/type/tags.php
r11014 r14805 44 44 } 45 45 46 function convert_to_raw() 47 { 48 return net_nemein_tag_handler::string2tag_array($this->value); 49 } 50 46 51 function convert_to_storage() 47 52 { branches/MidCOM_2_8/midcom.helper.datamanager2/type/tagselect.php
r14545 r14805 808 808 } 809 809 810 function convert_to_raw() 811 { 812 return $this->selection; 813 } 814 810 815 } 811 816
