Changeset 14380
- Timestamp:
- 01/12/08 03:13:39 (9 months ago)
- Files:
-
- trunk/midcom/fi.hut.loginbroker/callbacks/prototypes.php (modified) (2 diffs)
- trunk/midcom/fi.protie.navigation/main.php (modified) (1 diff)
- trunk/midcom/midcom.admin.styleeditor/handler/file.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/baseclasses/components/request.php (modified) (2 diffs)
- trunk/midcom/midcom.core/midcom/helper/_componentloader.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/helper/imagefilter.php (modified) (3 diffs)
- trunk/midcom/midcom.core/midcom/services/indexer/backend/solr.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/services/indexer/document.php (modified) (7 diffs)
- trunk/midcom/midcom.core/midcom/services/rcs.php (modified) (2 diffs)
- trunk/midcom/midcom.core/midcom/services/rcs/backend.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/controller/ajax.php (modified) (2 diffs)
- trunk/midcom/midcom.helper.datamanager2/controller/nullstorage.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/controller/simple.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/formmanager.php (modified) (4 diffs)
- trunk/midcom/midcom.helper.datamanager2/formmanager/ajax.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/formmanager/paged.php (modified) (2 diffs)
- trunk/midcom/midcom.helper.datamanager2/schema.php (modified) (5 diffs)
- trunk/midcom/midcom.helper.datamanager2/storage.php (modified) (3 diffs)
- trunk/midcom/midcom.helper.datamanager2/storage/midgard.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/storage/null.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/storage/tmp.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/type/blobs.php (modified) (2 diffs)
- trunk/midcom/midcom.helper.datamanager2/type/image.php (modified) (8 diffs)
- trunk/midcom/midcom.helper.datamanager2/type/images.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/type/photo.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/type/video.php (modified) (8 diffs)
- trunk/midcom/midcom.helper.datamanager2/widget.php (modified) (14 diffs)
- trunk/midcom/midcom.helper.datamanager2/widget/fckeditor.php (modified) (2 diffs)
- trunk/midcom/midcom.helper.datamanager2/widget/image.php (modified) (8 diffs)
- trunk/midcom/midcom.helper.datamanager2/widget/images.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/widget/photo.php (modified) (4 diffs)
- trunk/midcom/midcom.helper.datamanager2/widget/tinymce.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/widget/universalchooser.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/widget/video.php (modified) (9 diffs)
- trunk/midcom/midcom.helper.search/viewer.php (modified) (2 diffs)
- trunk/midcom/midgard.admin.asgard/handler/object/attachments.php (modified) (1 diff)
- trunk/midcom/net.nehmer.account/handler/edit.php (modified) (1 diff)
- trunk/midcom/net.nehmer.account/handler/socialweb.php (modified) (1 diff)
- trunk/midcom/net.nehmer.account/viewer.php (modified) (1 diff)
- trunk/midcom/net.nehmer.branchenbuch/admin.php (modified) (1 diff)
- trunk/midcom/net.nehmer.mail/mailbox.php (modified) (1 diff)
- trunk/midcom/net.nemein.calendar/functions.php (modified) (1 diff)
- trunk/midcom/net.nemein.netmon/contact.php (modified) (1 diff)
- trunk/midcom/net.nemein.netmon/contactgroup.php (modified) (1 diff)
- trunk/midcom/net.nemein.personnel/sorted_groups.php (modified) (1 diff)
- trunk/midcom/net.nemein.registrations/event.php (modified) (1 diff)
- trunk/midcom/net.nemein.registrations/viewer.php (modified) (1 diff)
- trunk/midcom/net.nemein.simpledb/handler/search.php (modified) (1 diff)
- trunk/midcom/no.odindata.quickform2/email.php (modified) (1 diff)
- trunk/midcom/no.odindata.quickform2/emailgenerator.php (modified) (6 diffs)
- trunk/midcom/no.odindata.quickform2/factory.php (modified) (1 diff)
- trunk/midcom/org.maemo.devcodes/device.php (modified) (3 diffs)
- trunk/midcom/org.openpsa.calendar/participant_midcomdba.php (modified) (1 diff)
- trunk/midcom/org.openpsa.contacts/duplicates.php (modified) (2 diffs)
- trunk/midcom/org.openpsa.contacts/person_midcomdba.php (modified) (1 diff)
- trunk/midcom/org.openpsa.directmarketing/campaign_message.php (modified) (1 diff)
- trunk/midcom/org.openpsa.projects/projectbroker.php (modified) (2 diffs)
- trunk/midcom/org.routamc.gallery/gallery_helper.php (modified) (2 diffs)
- trunk/midcom/org.routamc.photostream/photo.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/fi.hut.loginbroker/callbacks/prototypes.php
r14217 r14380 164 164 * and password to $request_data['password'] 165 165 * 166 * @param $username username to use167 * @param $request_data request data, see key 'property_map' for more interesting info168 * @param $iteration this is 1 if this is the first callback to be called, callbacks must check this and not create new person if this is > 1166 * @param string $username username to use 167 * @param array &$request_data request data, see key 'property_map' for more interesting info 168 * @param int $iteration this is 1 if this is the first callback to be called, callbacks must check this and not create new person if this is > 1 169 169 * @return boolean indicating success (do note that processing of callbacks etc is aborted if someone returns failure) 170 170 */ … … 195 195 * 196 196 * @see fi_hut_loginbroker_callbacks_prototype_create::create() 197 * @param $username username to use198 * @param $request_data request data, see key 'property_map' for more interesting info199 * @param $iteration this is 1 if this is the first callback to be called, callbacks must check this and not create new person if this is > 1197 * @param string $username username to use 198 * @param array &$request_data request data, see key 'property_map' for more interesting info 199 * @param int $iteration this is 1 if this is the first callback to be called, callbacks must check this and not create new person if this is > 1 200 200 */ 201 201 function update($username, &$request_data, $iteration) trunk/midcom/fi.protie.navigation/main.php
r14331 r14380 767 767 * 768 768 * @access public 769 * @param $id string Root ul id.769 * @param string $id root ul id 770 770 */ 771 771 function set_root_element_id($id) trunk/midcom/midcom.admin.styleeditor/handler/file.php
r12791 r14380 112 112 * Rewrite a filename to URL safe form 113 113 * 114 * @param $filename stringfile name to rewrite114 * @param string $filename file name to rewrite 115 115 * @return string rewritten filename 116 116 */ trunk/midcom/midcom.core/midcom/baseclasses/components/request.php
r14335 r14380 487 487 /** 488 488 * This public helper post-processes the initial information as set by the constructor. 489 * It fills all missing fields with sensible defaults, see the class introd ction for490 * de atils.489 * It fills all missing fields with sensible defaults, see the class introduction for 490 * details. 491 491 */ 492 492 public function _prepare_request_switch() … … 529 529 530 530 /** 531 * CAN_HANDLE Phase interface, checks against all registered handlers if a va ild531 * CAN_HANDLE Phase interface, checks against all registered handlers if a valid 532 532 * one can be found. You should not need to override this, instead, use the 533 533 * HANDLE Phase for further checks. trunk/midcom/midcom.core/midcom/helper/_componentloader.php
r14340 r14380 762 762 * the manifest will be ignored and an error is logged. 763 763 * 764 * @param $manifest object the manifest object to load.764 * @param object $manifest the manifest object to load. 765 765 */ 766 766 function load_manifest($manifest) trunk/midcom/midcom.core/midcom/helper/imagefilter.php
r14329 r14380 352 352 * Where $gamma is a positive floating point number, e.g. 1.2 353 353 * 354 * @param $gamma Gamma adjustment value.354 * @param float $gamma Gamma adjustment value. 355 355 * @return boolean true on success. 356 356 */ … … 378 378 379 379 /** 380 * This function converts the image to the specified image format. It must be a suit eable380 * This function converts the image to the specified image format. It must be a suitable 381 381 * extension to use with the Imagemagick convert utility. The file will not be renamed, 382 382 * you have to do this yourself. … … 575 575 * and less then 360; if omitted, a NULL operation is done. 576 576 * 577 * @param $rotate Degrees of rotation clockwise, negative amounts possible577 * @param float $rotate Degrees of rotation clockwise, negative amounts possible 578 578 * @return boolean true on success. 579 579 */ trunk/midcom/midcom.core/midcom/services/indexer/backend/solr.php
r14338 r14380 232 232 /** 233 233 * Deletes one element 234 * @param $id the element id234 * @param string $id the element id 235 235 */ 236 236 public function delete($id) trunk/midcom/midcom.core/midcom/services/indexer/document.php
r14329 r14380 14 14 * 15 15 * A document consists of a number of fields, each field has different properties 16 * when handled by the indexer (exact behav oir depends, as always, on the indexer16 * when handled by the indexer (exact behavior depends, as always, on the indexer 17 17 * backend in use). On retrieval, this field information is lost, all fields being 18 18 * of the same type (naturally). The core indexer backend supports these field … … 45 45 * @todo The Type field is not yet handled properly. 46 46 */ 47 48 47 class midcom_services_indexer_document 49 48 { … … 88 87 89 88 /** 90 * Two letter language code of the document cont net89 * Two letter language code of the document content 91 90 * 92 91 * This field is optional. … … 230 229 * This is optional. 231 230 * 232 * @var string .231 * @var string 233 232 */ 234 233 var $topic_url = ''; … … 249 248 250 249 /** 251 * Security mecha insm used to determine the availability of a search result.250 * Security mechanism used to determine the availability of a search result. 252 251 * Can be one of: 253 252 * 254 253 * - 'default': Use only built-in processing (topic and metadata visibility checks), this is, as you might have guessed, the default. 255 254 * - 'component': Invoke the _on_check_document_visible component interface method of the component after doing default checks. 256 * This security class absolutely requires the document to contain a va ild topic GUID, otherwise access control will fail anyway.255 * This security class absolutely requires the document to contain a valid topic GUID, otherwise access control will fail anyway. 257 256 * - 'function:$function_name': Invoke the globally available function $function_name, its signature is <i>boolean $function_name ($document, $topic)</i>, 258 257 * if you don't change the document during the check, you don't need to pass by-reference, so this is up to you. The topic passed is the … … 342 341 /** 343 342 * Add a date field. A timestamp is expected, which is automatically 344 * converted to a suit eable ISO timestamp before storage.343 * converted to a suitable ISO timestamp before storage. 345 344 * 346 345 * Direct specification of the ISO timestamp is not yet possible due … … 365 364 * This is useful because the date fields are not in a readable format, 366 365 * it can't even be determined that they were a date in the first place. 367 * so the _TS field is quite useful if you need the or ginal value for the366 * so the _TS field is quite useful if you need the original value for the 368 367 * timestamp. 369 368 * trunk/midcom/midcom.core/midcom/services/rcs.php
r14133 r14380 46 46 /** 47 47 * Constructor 48 * @param $config the midcom_config array49 * @param $midcom midcom_application reference.48 * @param array $config the midcom_config 49 * @param midcom_application $midcom midcom_application reference. 50 50 */ 51 51 function midcom_services_rcs($config) … … 75 75 /** 76 76 * Create or update the RCS file for the object. 77 * @param $object the midgard object to be saved78 * @param $message the update message to save (optional)77 * @param object &$object the midgard object to be saved 78 * @param string $message the update message to save (optional) 79 79 */ 80 80 function update(&$object, $message = null) trunk/midcom/midcom.core/midcom/services/rcs/backend.php
r14086 r14380 31 31 * @return boolean true if save succeeded. 32 32 * @throws MIDCOM_ERRCRIT on serious errors. 33 * @param $comment the message to be saved with the object.33 * @param string $comment the message to be saved with the object. 34 34 */ 35 35 function update(&$object, $comment) trunk/midcom/midcom.helper.datamanager2/controller/ajax.php
r14329 r14380 76 76 77 77 /** 78 * This function wraps AJAX processing completely. If component wishes to do post-processing after an edit, save or preview 78 * This function wraps AJAX processing completely. 79 * 80 * If component wishes to do post-processing after an edit, save or preview 79 81 * state in this call it must set the <i>exit</i> parameter to <i>false</i>. 80 82 * <i>view</i> state simply returns processing to component. … … 248 250 249 251 /** 250 * This function wraps the form manager processing. If processing is successful, (that is,252 * This function wraps the form manager processing. If processing is successful, (that is, 251 253 * only 'save'). If editing was successful, the form is frozen in case you want 252 254 * to display it again (usually you want to redirect to the view target). trunk/midcom/midcom.helper.datamanager2/controller/nullstorage.php
r14329 r14380 65 65 66 66 /** 67 * This function wraps the form manager processing. If processing is successful, (that is,67 * This function wraps the form manager processing. If processing is successful, (that is, 68 68 * not 'cancel' or 'edit'). 69 69 * trunk/midcom/midcom.helper.datamanager2/controller/simple.php
r14329 r14380 48 48 49 49 /** 50 * This function wraps the form manager processing. Ifprocessing is successful, (that is, 51 * only 'save'). If editing was successful, the form is frozen in case you want 52 * to display it again (usually you want to redirect to the view target). 50 * This function wraps the form manager processing. 51 * 52 * If processing is successful, (that is, only 'save'). If editing was successful, the form 53 * is frozen in case you want to display it again (usually you want to redirect to the view 54 * target). 53 55 * 54 56 * There are several possible return values: trunk/midcom/midcom.helper.datamanager2/formmanager.php
r14329 r14380 120 120 * Initializes the Form manager with a list of types for a given schema. 121 121 * 122 * @param midcom_helper_datamanager2_schema $schema The schema to use for processing. This122 * @param midcom_helper_datamanager2_schema &$schema The schema to use for processing. This 123 123 * variable is taken by reference. 124 * @param Array $types A list of types matching the passed schema, used as a basis for the124 * @param Array &$types A list of types matching the passed schema, used as a basis for the 125 125 * form types. This variable is taken by reference. 126 126 */ … … 569 569 * Sets the form's renderer based on an existing renderer instance. 570 570 * 571 * @param mixed $renderer A prepared HTML_QuickForm_Renderer (or subclass thereof) instance.571 * @param mixed &$renderer A prepared HTML_QuickForm_Renderer (or subclass thereof) instance. 572 572 * @return void 573 573 */ … … 666 666 /** 667 667 * This helper function adds all rules and filters which are deducable from the schema 668 * to the form. It recognizes the foll wing schema options:668 * to the form. It recognizes the following schema options: 669 669 * 670 670 * - required: Adds a required rule to the form, bound to the given element. … … 766 766 /** 767 767 * Set the value of a formelement. 768 * @param $key the form field name769 * @param $value the new value to set768 * @param string $key the form field name 769 * @param string $value the new value to set 770 770 */ 771 771 function set_value( $key, $value ) trunk/midcom/midcom.helper.datamanager2/formmanager/ajax.php
r14329 r14380 28 28 * Initializes the Form manager with a list of types for a given schema. 29 29 * 30 * @param midcom_helper_datamanager2_schema $schema The schema to use for processing. This30 * @param midcom_helper_datamanager2_schema &$schema The schema to use for processing. This 31 31 * variable is taken by reference. 32 * @param Array $types A list of types matching the passed schema, used as a basis for the32 * @param Array &$types A list of types matching the passed schema, used as a basis for the 33 33 * form types. This variable is taken by reference. 34 34 */ trunk/midcom/midcom.helper.datamanager2/formmanager/paged.php
r14329 r14380 23 23 * Initializes the Form manager with a list of types for a given schema. 24 24 * 25 * @param midcom_helper_datamanager2_schema $schema The schema to use for processing. This25 * @param midcom_helper_datamanager2_schema &$schema The schema to use for processing. This 26 26 * variable is taken by reference. 27 * @param Array $types A list of types matching the passed schema, used as a basis for the27 * @param Array &$types A list of types matching the passed schema, used as a basis for the 28 28 * form types. This variable is taken by reference. 29 29 */ … … 73 73 /* The idea: 74 74 * 75 * First, we construct the regular fo orm, to allow for a call to process_form.75 * First, we construct the regular form, to allow for a call to process_form. 76 76 * In process_form, we then process the page switch. There we will have to 77 * reconstruct the form nwith the new page elements, along with all hidden77 * reconstruct the form with the new page elements, along with all hidden 78 78 * values. The trick here is to rebuild the form with all unseen fields added 79 79 * as hidden elements in a way so that the reconstructed form can create trunk/midcom/midcom.helper.datamanager2/schema.php
r14140 r14380 135 135 136 136 /** 137 * The operations to add to the form. This is a simple array of commands, valid entries 138 * are 'save', 'cancel', 'next' and 'previous', 'edit' is forbidden, other values are not 139 * interpreted by the DM infrastructure. 137 * The operations to add to the form. 138 * 139 * This is a simple array of commands, valid entries are 'save', 'cancel', 'next' and 140 * 'previous', 'edit' is forbidden, other values are not interpreted by the DM infrastructure. 140 141 * 141 142 * @var Array … … 161 162 162 163 /** 163 * Custom data filter rules. This is a list of arrays. Each array defines a single callback, 164 * a field list according to HTML_QuickForm::applyFilter along with a snippet or file location 164 * Custom data filter rules. 165 * 166 * This is a list of arrays. Each array defines a single callback, 167 * a field list according to HTML_QuickForm::applyFilter() along with a snippet or file location 165 168 * that should be auto-loaded in case the function is missing. 166 169 * … … 170 173 171 174 /** 172 * Construct a schema, takes a schema snippet URI resolv eable through the175 * Construct a schema, takes a schema snippet URI resolvable through the 173 176 * midcom_get_snippet_content() helper function. 174 177 * 175 * @param mixed $schema pathEither the path or the already loaded schema database178 * @param mixed $schemadb Either the path or the already loaded schema database 176 179 * to use. 177 180 * @param string $name The name of the Schema to use. It must be a member in the … … 200 203 * already in memory, or from a URL resolvable by midcom_get_snippet_content. 201 204 * 202 * @param mixed $schema pathEither the path or the already loaded schema database205 * @param mixed $schemadb Either the path or the already loaded schema database 203 206 * to use. 204 207 * @see midcom_get_snippet_content() … … 316 319 /** 317 320 * This function adds a new field to the schema, appending it at the end of the 318 * current field listing. This is callable after the construction of the object, 319 * to allow you to add additional fields like component required fields to the list. 321 * current field listing. 322 * 323 * This is callable after the construction of the object, to allow you to add 324 * additional fields like component required fields to the list. 320 325 * 321 326 * This can also be used to merge schemas together. trunk/midcom/midcom.helper.datamanager2/storage.php
r14329 r14380 52 52 * to take care of linking to the right storage object, where applicable. 53 53 * 54 * @param midcom_helper_datamanager2_schema $schema The data schema to use for processing.54 * @param midcom_helper_datamanager2_schema &$schema The data schema to use for processing. 55 55 */ 56 56 function midcom_helper_datamanager2_storage(&$schema) … … 91 91 * generate_error is called. 92 92 * 93 * @param Array $types A reference to an array of types matching the schema definition.93 * @param Array &$types A reference to an array of types matching the schema definition. 94 94 * @return boolean Indicating success. 95 95 */ … … 163 163 * generate_error is called. 164 164 * 165 * @param Array $types A reference to an array of types matching the schema definition.165 * @param Array &$types A reference to an array of types matching the schema definition. 166 166 */ 167 167 function load(&$types) trunk/midcom/midcom.helper.datamanager2/storage/midgard.php
r12676 r14380 32 32 * destroy the reference. 33 33 * 34 * @param midcom_helper_datamanager2_schema $schema The data schema to use for processing.34 * @param midcom_helper_datamanager2_schema &$schema The data schema to use for processing. 35 35 * @param MidCOMDBAObject $object A reference to the DBA object to user for Data I/O. 36 36 */ trunk/midcom/midcom.helper.datamanager2/storage/null.php
r10966 r14380 41 41 * TODO 42 42 * 43 * @param midcom_helper_datamanager2_schema $schema The data schema to use for processing.44 * @param Array $defaults The defaults to use as "artificial" storage. This can be om mitted43 * @param midcom_helper_datamanager2_schema &$schema The data schema to use for processing. 44 * @param Array $defaults The defaults to use as "artificial" storage. This can be omitted 45 45 * safely. 46 46 */ trunk/midcom/midcom.helper.datamanager2/storage/tmp.php
r10966 r14380 28 28 * Start up the storage manager and bind it to a given temporary object. 29 29 * 30 * @param midcom_helper_datamanager2_schema $schema The data schema to use for processing.31 * @param Array $defaults The defaults to use as "artificial" storage. This can be om mitted30 * @param midcom_helper_datamanager2_schema &$schema The data schema to use for processing. 31 * @param Array $defaults The defaults to use as "artificial" storage. This can be omitted 32 32 * safely. 33 33 * @param midcom_core_temporary_object $object The temporary object to use. trunk/midcom/midcom.helper.datamanager2/type/blobs.php
r14329 r14380 838 838 * Rewrite a filename to URL safe form 839 839 * 840 * @param $filename stringfile name to rewrite841 * @param $force_single_extension boolean force file to single extension (defaults to true)840 * @param string $filename file name to rewrite 841 * @param boolean $force_single_extension force file to single extension (defaults to true) 842 842 * @return string rewritten filename 843 843 */ … … 869 869 * Creates a working copy to filesystem from given attachment object 870 870 * 871 * @param $att the attachment object to copy871 * @param object $att the attachment object to copy 872 872 * @return string tmp file name (or false on failure) 873 873 */ trunk/midcom/midcom.helper.datamanager2/type/image.php
r14329 r14380 55 55 * <b>Available configuration options:</b> 56 56 * 57 * - boolean keep_original controls whether you want to keep the or ginally uploaded57 * - boolean keep_original controls whether you want to keep the originally uploaded 58 58 * file available. This option is disabled by default. 59 59 * - string filter_chain The filter chain used to render the main image. This chain 60 60 * empty (null) by default. 61 61 * - Array derived_images A list of derived images to construct from the main image. 62 * This option consists of a list of ident fier/filter chain declarations. They will62 * This option consists of a list of identifier/filter chain declarations. They will 63 63 * be constructed in order, each using a fresh copy of the (initially type-converted) 64 64 * original image. This options may be null (the default) indicating no derived … … 111 111 112 112 /** 113 * The maximum wi tdh/height (in this order) of the thumbnail to be auto-created.113 * The maximum width/height (in this order) of the thumbnail to be auto-created. 114 114 * 115 115 * The passed values will be given to the rescale function of the imagefilter. … … 117 117 * to set the height parameter to zero (auto_thumbnail => Array(100,0)). 118 118 * 119 * @var array .119 * @var array 120 120 */ 121 121 var $auto_thumbnail = null; … … 184 184 * image. All attachments still listed here after a set_image call will 185 185 * be deleted. This keeps attachment GUIDs stable during updates but also 186 * adds resil ence against against changed type configuration.186 * adds resilience against against changed type configuration. 187 187 * 188 188 * @access private … … 307 307 308 308 /** 309 * Preparation operations for recre te_xxx()309 * Preparation operations for recreate_xxx() 310 310 */ 311 311 function _prepare_recreate($force = false) … … 367 367 * 368 368 * @param string $direction direction to rotate to 369 * @return boolean indicating success/fai ilure369 * @return boolean indicating success/failure 370 370 */ 371 371 function rotate($direction) … … 438 438 * Applies a filter to image identifier 439 439 * 440 * @param string $identifier the image identifier to apply to440 * @param string $identifier the image identifier to apply to 441 441 * @param string $filter the midcom_helper_imagefilter filter chain to apply 442 442 * @return boolean indicating success/failure … … 509 509 * Overwrites image content from file, recalculates size etc 510 510 * 511 * @param $identifier image identifier to update512 * @param $file file to use511 * @param string $identifier image identifier to update 512 * @param string $file file to use 513 513 * @return boolean indicating success/failure 514 514 */ trunk/midcom/midcom.helper.datamanager2/type/images.php
r14329 r14380 633 633 * 634 634 * @param string $direction direction to rotate to 635 * @return boolean indicating success/fai ilure635 * @return boolean indicating success/failure 636 636 */ 637 637 function rotate($images_identifier, $direction) trunk/midcom/midcom.helper.datamanager2/type/photo.php
r14329 r14380 34 34 35 35 /** 36 * Preparation operations for recre te_xxx()36 * Preparation operations for recreate_xxx() 37 37 */ 38 38 function _prepare_recreate($force = true) trunk/midcom/midcom.helper.datamanager2/type/video.php
r14329 r14380 55 55 * <b>Available configuration options:</b> 56 56 * 57 * - boolean keep_original controls whether you want to keep the or ginally uploaded57 * - boolean keep_original controls whether you want to keep the originally uploaded 58 58 * file available. This option is disabled by default. 59 59 * - string filter_chain The filter chain used to render the main image. This chain 60 60 * empty (null) by default. 61 61 * - Array derived_images A list of derived images to construct from the main image. 62 * This option consists of a list of ident fier/filter chain declarations. They will62 * This option consists of a list of identifier/filter chain declarations. They will 63 63 * be constructed in order, each using a fresh copy of the (initially type-converted) 64 64 * original image. This options may be null (the default) indicating no derived … … 111 111 112 112 /** 113 * The maximum wi tdh/height (in this order) of the thumbnail to be auto-created.113 * The maximum width/height (in this order) of the thumbnail to be auto-created. 114 114 * 115 115 * The passed values will be given to the rescale function of the imagefilter. … … 117 117 * to set the height parameter to zero (auto_thumbnail => Array(100,0)). 118 118 * 119 * @var array .119 * @var array 120 120 */ 121 121 var $auto_thumbnail = null; … … 190 190 * image. All attachments still listed here after a set_image call will 191 191 * be deleted. This keeps attachment GUIDs stable during updates but also 192 * adds resil ence against against changed type configuration.192 * adds resilience against against changed type configuration. 193 193 * 194 194 * @access private … … 315 315 316 316 /** 317 * Preparation operations for recre te_xxx()317 * Preparation operations for recreate_xxx() 318 318 */ 319 319 function _prepare_recreate($force = false) … … 372 372 * 373 373 * @param string $direction direction to rotate to 374 * @return boolean indicating success/fai ilure374 * @return boolean indicating success/failure 375 375 */ 376 376 function rotate($direction) … … 443 443 * Applies a filter to image identifier 444 444 * 445 * @param string $identifier the image identifier to apply to445 * @param string $identifier the image identifier to apply to 446 446 * @param string $filter the midcom_helper_imagefilter filter chain to apply 447 447 * @return boolean indicating success/failure … … 514 514 * Overwrites image content from file, recalculates size etc 515 515 * 516 * @param $identifier image identifier to update517 * @param $file file to use516 * @param string $identifier image identifier to update 517 * @param string $file file to use 518 518 * @return boolean indicating success/failure 519 519 */ trunk/midcom/midcom.helper.datamanager2/widget.php
r14329 r14380 48 48 49 49 /** 50 * The name field holds the name of the field the widget is encapsulating. This 51 * maps to the schema's field name. You should never have to change them. 50 * The name field holds the name of the field the widget is encapsulating. 51 * 52 * This maps to the schema's field name. You should never have to change them. 52 53 * 53 54 * @var string … … 57 58 58 59 /** 59 * A reference to the schema field we should draw. Description texts etc. are taken from here. 60 * A reference to the schema field we should draw. 61 * 62 * Description texts etc. are taken from here. 60 63 * 61 64 * @var Array … … 65 68 66 69 /** 67 * The schema (not the schema <i>database!</i>) to use for operation. This variable will always contain a parsed 68 * representation of the schema, so that one can swiftly switch between individual schemas 69 * of the Database. 70 * The schema (not the schema <i>database!</i>) to use for operation. 71 * 72 * This variable will always contain a parsed representation of the schema, so that 73 * one can swiftly switch between individual schemas of the Database. 70 74 * 71 75 * This member is initialized by-reference. … … 85 89 86 90 /** 87 * This is the Namespace to use for all HTML/CSS/JS elements. It is deduced by the formmanager 88 * and tries to be as smart as possible to work safely with more then one form on a page. 89 * 90 * You have to prefix all elements which must be unique using this string (it includes a trailing 91 * underscore). 91 * This is the Namespace to use for all HTML/CSS/JS elements. 92 * 93 * It is deduced by the formmanager and tries to be as smart as possible to work safely with 94 * more then one form on a page. 95 * 96 * You have to prefix all elements which must be unique using this string (it includes a 97 * trailing underscore). 92 98 * 93 99 * @var string … … 121 127 * @param string $name The name of the field to which this widget is bound. 122 128 * @param Array $config The configuration data which should be used to customize the widget. 123 * @param midcom_helper_datamanager2_schema $schema A reference to the full schema object.129 * @param midcom_helper_datamanager2_schema &$schema A reference to the full schema object. 124 130 * @param midcom_helper_datamanager2_type $type A reference to the type to which we are bound. 125 131 * @param string $namespace The namespace to use including the trailing underscore. … … 164 170 165 171 /** 166 * This function ,is called before the configuration keys are merged into the types172 * This function is called before the configuration keys are merged into the types 167 173 * configuration. 168 174 */ … … 182 188 183 189 /** 184 * Gets an external configuration option referenced by its key. Besides other parts 185 * in the datamanager framework, nobody should ever have to touch this information. 190 * Gets an external configuration option referenced by its key. 191 * 192 * Besides other parts in the datamanager framework, nobody should ever have to 193 * touch this information. 186 194 * 187 195 * @param string $key The key by which this configuration option is referenced. … … 198 206 199 207 /** 200 * Sets an external configuration option. Besides other parts 201 * in the datamanager framework, nobody should ever have to touch this information. 208 * Sets an external configuration option. 209 * 210 * Besides other parts in the datamanager framework, nobody should ever have to 211 * touch this information. 202 212 * 203 213 * @param string $key The key by which this configuration option is referenced. … … 223 233 224 234 /** 225 * Returns the default value for this field as required by HTML_Quickform. You 226 * may either return a single value for simple types, or an array of form field name / value 227 * pairs in case of composite types. A value of null
