Changeset 15253
- Timestamp:
- 02/26/08 13:00:43 (6 months ago)
- Files:
-
- trunk/midcom/midcom.helper.datamanager2/formmanager.php (modified) (9 diffs)
- trunk/midcom/midcom.helper.datamanager2/type.php (modified) (14 diffs)
- trunk/midcom/midcom.helper.datamanager2/widget/jsdate.php (modified) (2 diffs)
- trunk/midcom/midcom.helper.datamanager2/widget/radiocheckselect.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/widget/select.php (modified) (2 diffs)
- trunk/midcom/midcom.helper.datamanager2/widget/sortable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.helper.datamanager2/formmanager.php
r15104 r15253 26 26 { 27 27 /** 28 * The schema (not the schema <i>database!</i>) to use for operation. This variable will always contain a parsed 29 * representation of the schema, so that one can swiftly switch between individual schemas 30 * of the Database. 28 * The schema (not the schema <i>database!</i>) to use for operation. 29 * 30 * This variable will always contain a parsed representation of the schema, 31 * so that one can swiftly switch between individual schemas of the Database. 31 32 * 32 33 * This member is initialized by-reference. … … 67 68 * This is the renderer that quickform will use. 68 69 * 69 * <i>It is set using the set_renderer() or create_renderer calls.</i>70 * <i>It is set using the set_renderer() or create_renderer() calls.</i> 70 71 * 71 72 * If the configuration option 'default_renderer' (and possibly 'default_renderer_src') … … 427 428 } 428 429 429 // Translate the requ red note430 // Translate the required note 430 431 $this->form->setRequiredNote 431 432 ( … … 666 667 667 668 /** 668 * This helper function adds all rules and filters which are deduc able from the schema669 * This helper function adds all rules and filters which are deducible from the schema 669 670 * to the form. It recognizes the following schema options: 670 671 * … … 767 768 /** 768 769 * Set the value of a formelement. 770 * 769 771 * @param string $key the form field name 770 772 * @param string $value the new value to set … … 779 781 780 782 /** 781 * Creates an instance of the renderer set in the system configuration. This is called 782 * during the initialize code and will make the renderer available immediately after startup. 783 * Creates an instance of the renderer set in the system configuration. 784 * 785 * This is called during the initialize code and will make the renderer 786 * available immediately after startup. 783 787 */ 784 788 function _create_default_renderer() … … 867 871 || $exitcode == 'next') 868 872 { 869 // Validate the f rom.873 // Validate the form. 870 874 if (! $this->form->validate()) 871 875 { … … 882 886 * Use this function to get the values of submitted form without going through 883 887 * a storage backend. 888 * 884 889 * @return array the submitted values. 885 *886 890 */ 887 891 function get_submit_values( ) … … 892 896 /** 893 897 * Call this before any output is made. It will process the form results, if applicable, 894 * and return an according exit code. This indicates which (if any) submit button was pressed. 895 * If 'editing' is returned, this means that either there was not data submitted yet, or that 898 * and return an according exit code. 899 * 900 * This indicates which (if any) submit button was pressed. If 'editing' is 901 * returned, this means that either there was not data submitted yet, or that 896 902 * form validation has failed. 897 903 * trunk/midcom/midcom.helper.datamanager2/type.php
r14806 r15253 34 34 35 35 /** 36 * This field contains the reason for the failed validation. The string can be safely 37 * assumed to be localized, and is only valid if a validation has failed previously. 38 * This field will be cleared prior to a new validation attempt. You may use simple 39 * inline HTML in these errors. 36 * This field contains the reason for the failed validation. 37 * 38 * The string can be safely assumed to be localized, and is only valid if a 39 * validation has failed previously. This field will be cleared prior to a 40 * new validation attempt. You may use simple inline HTML in these errors. 40 41 * 41 42 * @var string … … 46 47 * This variable contains configuration data which is not directly related to the 47 48 * operation of the type, but required for the operation of external tools like the 48 * storage manager. The type should never touch this variable, which is controlled 49 * storage manager. 50 * 51 * The type should never touch this variable, which is controlled 49 52 * by a corresponding getter/setter pair. 50 53 * … … 57 60 58 61 /** 59 * The name field holds the name of the field the datatype is encapsulating. This 60 * maps to the schema's field name. You should never have to change them. 62 * The name field holds the name of the field the datatype is encapsulating. 63 * 64 * This maps to the schema's field name. You should never have to change them. 61 65 * 62 66 * @var string … … 65 69 66 70 /** 67 * A reference to the storage object that this type is using. Use this for attachment 68 * management. The variable may be null until actual processing starts. It may also 69 * change during the lifetime of a type. You should therefore be careful. 71 * A reference to the storage object that this type is using. 72 * 73 * Use this for attachment management. The variable may be null until 74 * actual processing starts. It may also change during the lifetime 75 * of a type. You should therefore be careful. 70 76 * 71 77 * @var midcom_helper_datamanager2_storage … … 90 96 * @param string $name The name of the field to which this type is bound. 91 97 * @param Array $config The configuration data which should be used to customize the type. 92 * @param midcom_helper_datamanager2_storage $storage A reference to the storage object to use.98 * @param midcom_helper_datamanager2_storage &$storage A reference to the storage object to use. 93 99 * @return boolean Indicating success. If this is false, the type will be unusable. 94 100 */ … … 128 134 * object is used by-reference. 129 135 * 130 * @var midcom_helper_datamanager2_storage $storage A reference to the storage object to use.136 * @var midcom_helper_datamanager2_storage &$storage A reference to the storage object to use. 131 137 */ 132 138 function set_storage(&$storage) … … 149 155 /** 150 156 * Converts from storage format to "operational" format, which might include 151 * more information then the pure storage format. Depending on the $serialized_storage member, 152 * the framework will automatically deal with deserializaiton of the information. 157 * more information then the pure storage format. 158 * 159 * Depending on the $serialized_storage member, the framework will 160 * automatically deal with deserialization of the information. 153 161 * 154 162 * This function must be overwritten. … … 162 170 163 171 /** 164 * Converts from "operational" format to from storage format. Depending on the $serialized_storage member, 165 * the framework will automatically deal with deserializaiton of the information. 172 * Converts from "operational" format to from storage format. 173 * 174 * Depending on the $serialized_storage member, the framework will 175 * automatically deal with deserialization of the information. 166 176 * 167 177 * This function must be overwritten. … … 188 198 189 199 /** 190 * Transforms the current object's state into a CSV string representation. Escaping 191 * and other encoding is done by the caller, you just return the string. 200 * Transforms the current object's state into a CSV string representation. 201 * 202 * Escaping and other encoding is done by the caller, you just return the string. 192 203 * 193 204 * This function must be overwritten. … … 201 212 202 213 /** 203 * Transforms the current object's state into HTML representation. This is used for displaying 204 * type contents in an automatic fashion. 214 * Transforms the current object's state into HTML representation. 215 * 216 * This is used for displaying type contents in an automatic fashion. 205 217 * 206 218 * This function must be overwritten. … … 214 226 215 227 /** 216 * Transforms the current objects' state into 'raw' representation. Usually217 * the convert_to_storage -method returns suitable value, but in some datatypes218 * (like privilege, blobs-based ones and tags), convert_to_storage does database219 * IO directly and returns less usefull data.228 * Transforms the current objects' state into 'raw' representation. 229 * Usually the convert_to_storage -method returns suitable value, but in 230 * some datatypes (like privilege, blobs-based ones and tags), 231 * convert_to_storage does database IO directly and returns less useful data. 220 232 * 221 233 * @see convert_to_storage … … 255 267 256 268 /** 257 * Gets an external configuration option referenced by its key. Besides other parts 258 * in the datamanager framework, nobody should ever have to touch this information. 269 * Gets an external configuration option referenced by its key. 270 * 271 * Besides other parts in the datamanager framework, nobody should ever 272 * have to touch this information. 259 273 * 260 274 * @param string $key The key by which this configuration option is referenced. … … 271 285 272 286 /** 273 * Sets an external configuration option. Besides other parts 274 * in the datamanager framework, nobody should ever have to touch this information. 287 * Sets an external configuration option. 288 * 289 * Besides other parts in the datamanager framework, nobody should ever 290 * have to touch this information. 275 291 * 276 292 * @param string $key The key by which this configuration option is referenced. … … 284 300 /** 285 301 * Checks whether the current user has the given privilege on the storage backend. 286 * The storage backend is resposible for the actual execution of this operation, 302 * 303 * The storage backend is responsible for the actual execution of this operation, 287 304 * so this is merely a shortcut. 288 305 * trunk/midcom/midcom.helper.datamanager2/widget/jsdate.php
r14329 r15253 86 86 return false; 87 87 } 88 88 89 89 if ($this->_initialize_dependencies) 90 90 { 91 91 $this->_add_external_html_elements(); 92 92 } 93 93 94 94 return true; 95 95 } … … 282 282 echo $this->_type->value->format($format); 283 283 } 284 284 285 } 285 286 trunk/midcom/midcom.helper.datamanager2/widget/radiocheckselect.php
r14329 r15253 11 11 * Datamanager 2 simple checkbox / radiobox select widget. 12 12 * 13 * It can only be bound to a select type (or subclass thereof), and inherits the conf guration13 * It can only be bound to a select type (or subclass thereof), and inherits the configuration 14 14 * from there as far as possible. 15 15 * trunk/midcom/midcom.helper.datamanager2/widget/select.php
r14338 r15253 11 11 * Datamanager 2 simple select widget. 12 12 * 13 * It can only be bound to a select type (or subclass thereof), and inherits the conf guration13 * It can only be bound to a select type (or subclass thereof), and inherits the configuration 14 14 * from there as far as possible. 15 15 * … … 62 62 * @var array 63 63 */ 64 65 64 var $jsevents = null; 66 65 trunk/midcom/midcom.helper.datamanager2/widget/sortable.php
r14329 r15253 11 11 * Datamanager 2 sorting widget. 12 12 * 13 * It can only be bound to a select type (or subclass thereof), and inherits the conf guration13 * It can only be bound to a select type (or subclass thereof), and inherits the configuration 14 14 * from there as far as possible. 15 15 *
