Changeset 13945
- Timestamp:
- 12/18/07 12:23:56 (9 months ago)
- Files:
-
- trunk/midcom/midcom.core/documentation/CHANGES (modified) (4 diffs)
- trunk/midcom/midcom.core/midcom/application.php (modified) (28 diffs)
- trunk/midcom/midcom.core/midcom/baseclasses/components/request.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/helper/imagefilter.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/helper/mailtemplate.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/services/auth.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/services/cache.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/services/i18n.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/services/indexer/document.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/services/rcs/config.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager/datatype.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager/datatype_boolean.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager/widget_schemaselect.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/widget/password.php (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/widget/simpledate.php (modified) (1 diff)
- trunk/midcom/midcom.helper.imagepopup/documentation/TODO (modified) (1 diff)
- trunk/midcom/net.nehmer.account/documentation/CHANGES (modified) (1 diff)
- trunk/midcom/net.nehmer.account/handler/view.php (modified) (1 diff)
- trunk/midcom/net.nehmer.branchenbuch/branche.php (modified) (1 diff)
- trunk/midcom/net.nemein.payment/handler/nordea.php (modified) (1 diff)
- trunk/midcom/net.nemein.registrations/config/schemadb_default.inc (modified) (1 diff)
- trunk/midcom/net.nemein.registrations/documentation/CHANGES (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.core/documentation/CHANGES
r13625 r13945 81 81 metadata about the component itself. This will allow the processing of 82 82 Privileges, Classes etc. without loading the full component. 83 + Introduced a temporary system to a ccociate a permalink and a last modified83 + Introduced a temporary system to associate a permalink and a last modified 84 84 timestamp with a context. This will be superseeded with a full request 85 85 rewrite after the release of MidCOM 2.6 … … 228 228 in place, but it will be deprecated in 2.6. Components not using the 229 229 new interface base class will then cease to work. 230 + Added a Metadata interface that is independ ant of the actual object.230 + Added a Metadata interface that is independent of the actual object. 231 231 It uses GUIDs to link to the conent objects, which can be retrieved 232 232 using NAP. This is finally a single way to set and retrieve metadata … … 700 700 strcmp instead of a "==". This is geared for configuration UIs 701 701 which need a strict difference between "" (parameter unset) and 702 "0" (mostly false), which is impossible to distinguish saf ly in an702 "0" (mostly false), which is impossible to distinguish safely in an 703 703 PHP-supported auto-typecasted way. 704 704 + Added mgd_update_article_created() support to the unixdate datatype. … … 791 791 - The datamanager now visually distinguishes required fields 792 792 and missing required fields from regular ones. There are 793 two CSS classes to facili ate this.793 two CSS classes to facilitate this. 794 794 - Fix for #58 (errors during upload of a PDF file) 795 795 trunk/midcom/midcom.core/midcom/application.php
r13884 r13945 24 24 * - Provide a specialized mechanism to dynamically invoke a component's 25 25 * Administration Interface. 26 * - Provide a basic context mechanism that allows each independ ant component26 * - Provide a basic context mechanism that allows each independent component 27 27 * invocation to access its own context information. 28 28 * … … 109 109 /** 110 110 * Holds the component context information. This is an array of arrays, the outer 111 * one indexed by context IDs, th ie inner one indexed by context keys. Only valid111 * one indexed by context IDs, the inner one indexed by context keys. Only valid 112 112 * of the system has left the code-init phase. 113 113 * … … 651 651 * global $view; 652 652 * $_MIDCOM->dynamic_load($view['url1']); 653 * // You will most probably fail, could even loop infinit ly!653 * // You will most probably fail, could even loop infinitely! 654 654 * $_MIDCOM->dynamic_load($view['url2']); 655 655 * ?> … … 657 657 * 658 658 * The reason why this usually fails is, that the $view you have been using during 659 * the first call was overwritten by the oth ter component during it, $view['url2']659 * the first call was overwritten by the other component during it, $view['url2'] 660 660 * is now empty. If you are now on the homepage, the homepage would start loading 661 661 * itself again and again. … … 700 700 // enter that context and prepare its data structure. 701 701 $context = $this->_create_context(null, $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ROOTTOPIC)); 702 702 703 703 if ($pass_get) 704 704 { … … 714 714 $this->_currentcontext = $context; 715 715 716 /* "content-cache" for DLs, check_hit */ 716 /* "content-cache" for DLs, check_hit */ 717 717 if ($this->cache->content->check_dl_hit($context, $config)) 718 718 { … … 745 745 // Leave Context 746 746 $this->_currentcontext = $oldcontext; 747 747 748 748 return; 749 749 } … … 997 997 { 998 998 $object = $this->_parser->get_current_object(); 999 if ( !is_object($object) 999 if ( !is_object($object) 1000 1000 || !$object->guid ) 1001 1001 { … … 1037 1037 //$this->_handle($path); 1038 1038 $this->_handle( $this->get_context_data( MIDCOM_CONTEXT_COMPONENT ) ); 1039 1039 1040 1040 $success = true; 1041 1041 break; … … 1107 1107 * 1108 1108 * from the Component Loader and instruct it to handle a request. If the handler 1109 * hook return es false (i.e. handling failed), it will produce an Errorpage1109 * hook returns false (i.e. handling failed), it will produce an Errorpage 1110 1110 * according to the error code and -string of the component in question. 1111 1111 * … … 1189 1189 * Used by _process(), it checks if the component associated to $object is able 1190 1190 * to handle the request. First it will load the component associated to $object. 1191 * Then it will fetch the COMPONENT class a ccoicated to the MidCOM. After the1191 * Then it will fetch the COMPONENT class associated to the MidCOM. After the 1192 1192 * local configuration is retrieved from the object in question the component will 1193 1193 * be asked, if it can handle the request. TRUE or FALSE will be returned … … 1248 1248 * 1249 1249 * This is a small wrapper function that retrieves all local configuration data 1250 * attach ted to $object. The assigned component is used to determine which1250 * attached to $object. The assigned component is used to determine which 1251 1251 * parameter domain has to be used. 1252 1252 * … … 1263 1263 } 1264 1264 1265 $path = $this->get_context_data(MIDCOM_CONTEXT_COMPONENT); 1265 $path = $this->get_context_data(MIDCOM_CONTEXT_COMPONENT); 1266 1266 if (!isset($configs[$context_id][$object->guid])) 1267 1267 { 1268 1268 $configs[$context_id][$object->guid] = new midcom_helper_configuration($object, $path); 1269 1269 } 1270 1270 1271 1271 return $configs[$context_id][$object->guid]; 1272 1272 } … … 1506 1506 * 1507 1507 * Returns Component Context Information associated to the component with the 1508 * context ID $contextid ide tentified by $key. Omitting $contextid will yield1508 * context ID $contextid identified by $key. Omitting $contextid will yield 1509 1509 * the variable from the current context. 1510 1510 * … … 1591 1591 * 1592 1592 * This method allows you to get custom data to a given context. 1593 * The system will automatically a ccociate this data with the component from the1593 * The system will automatically associate this data with the component from the 1594 1594 * currently active context. You cannot access the custom data of any other 1595 1595 * component this way, it is private to the context. You may attach information 1596 1596 * to other contexts, which will be associated with the current component, so 1597 * you have a clean namespace independ antly from which component or context you1597 * you have a clean namespace independently from which component or context you 1598 1598 * are operating of. All calls honor references of passed data, so you can use 1599 1599 * this for central controlling objects. 1600 1600 * 1601 1601 * Note, that if you are working from a library like the datamanager is, you 1602 * cannot override the component a ccociation done by the system. Instead you1602 * cannot override the component association done by the system. Instead you 1603 1603 * should add your libraries name (like midcom.helper.datamanager) as a prefix, 1604 1604 * separated by a dot. I know, that this is not really an elegant solution and … … 1627 1627 * </code> 1628 1628 * 1629 * A very important cave t of PHP references can be seen here: You must never give1630 * a reference to $this outside of a clas within a constructor. class_one uses an1629 * A very important caveat of PHP references can be seen here: You must never give 1630 * a reference to $this outside of a class within a constructor. class_one uses an 1631 1631 * init function therefore. See the PHP documentation for a few more details on 1632 * all this. Component authors can usually saf ly set this up at the beginning of the1632 * all this. Component authors can usually safely set this up at the beginning of the 1633 1633 * can_handle() and/or handle() calls. 1634 1634 * … … 1655 1655 * 1656 1656 * Note, that if you are working from a library like the datamanager is, you 1657 * cannot override the component a ccociation done by the system. Instead you1657 * cannot override the component association done by the system. Instead you 1658 1658 * should add your libraries name (like midcom.helper.datamanager) as a prefix, 1659 1659 * separated by a dot. I know, that this is not really an elegant solution and … … 1724 1724 * Appends a substyle after the currently selected component style. 1725 1725 * 1726 * Appends a substyle after the currently selected component style, effectiv ly1726 * Appends a substyle after the currently selected component style, effectively 1727 1727 * enabling a depth of more then one style during substyle selection. This is only 1728 * effec itve if done during the handle phase of the component and allows the1728 * effective if done during the handle phase of the component and allows the 1729 1729 * component. The currently selected substyle therefore is now searched one level 1730 1730 * deeper below "subStyle". … … 1758 1758 * Prepends a substyle before the currently selected component style. 1759 1759 * 1760 * Prepends a substyle before the currently selected component style, effectiv ly1760 * Prepends a substyle before the currently selected component style, effectively 1761 1761 * enabling a depth of more then one style during substyle selection. This is only 1762 * effec itve if done during the handle phase of the component and allows the1762 * effective if done during the handle phase of the component and allows the 1763 1763 * component. The currently selected substyle therefore is now searched one level 1764 1764 * deeper below "subStyle". … … 1891 1891 /** 1892 1892 * Returns the Client Status Array which gives you all available information about 1893 * the client accessing us.Currently incorp rated is a recognition of client OS1893 * the client accessing us.Currently incorporated is a recognition of client OS 1894 1894 * and client browser. 1895 1895 * … … 2062 2062 * serve_attachment - Serves attachment including all necessary headers 2063 2063 * get_midgard - Returns mgd_get_midgard with updated "self" member 2064 * _l10n_edit_wrapper - Invo ces the l10n string editor2064 * _l10n_edit_wrapper - Invokes the l10n string editor 2065 2065 * add_jsfile - Add a JavaScript URL to the load queue 2066 2066 * add_jscript - Add JavaScript code to the load queue … … 2070 2070 * add_meta_head - Add metatags to the page's head. 2071 2071 * print_jscripts - Print the queued-up JavaScript code (for inclusion in the HEAD section) 2072 * p irnt jsonload - Prints the onload command if required (for inclusion as a BODY attribute)2072 * print jsonload - Prints the onload command if required (for inclusion as a BODY attribute) 2073 2073 * check_memberships - Checks whether the user is in a given group 2074 2074 * relocate - executes a HTTP relocation to the given URL … … 2355 2355 } 2356 2356 } 2357 2357 2358 2358 debug_push("midcom_application::serve_attachment"); 2359 2359 … … 2448 2448 * 2449 2449 * The script file is executed in the cache's live mode to allow for long running 2450 * scripts (just produce any output regular ily, or Apache will kill you after ~ 2 mins.).2450 * scripts (just produce any output regularly, or Apache will kill you after ~ 2 mins.). 2451 2451 * 2452 2452 * The remaining arguments will be placed into the globals $argc/argv. … … 2804 2804 2805 2805 /** 2806 * Echo the regist red javascript code.2806 * Echo the registered javascript code. 2807 2807 * 2808 2808 * This allows MidCOM components to register JavaScript code … … 2965 2965 * Relocate to another URL. 2966 2966 * 2967 * Helper function to facili ate HTTP relocation (Location: ...) headers. The helper2967 * Helper function to facilitate HTTP relocation (Location: ...) headers. The helper 2968 2968 * actually can distinguish between site-local, absolute redirects and external 2969 2969 * redirects. If you add an absolute URL starting with a "/", it will … … 3094 3094 3095 3095 /** 3096 * This is a temporary tran isition function used to set the currently known and required3096 * This is a temporary transition function used to set the currently known and required 3097 3097 * Request Metadata: The last modified timestamp and the permalink GUID. 3098 3098 * 3099 3099 * <i>Author's note:</i> This function is a temporary solution which is used until the 3100 * Request handling code of MidCOM has been rewritten. Hence the _26_ sec ition in its name.3100 * Request handling code of MidCOM has been rewritten. Hence the _26_ section in its name. 3101 3101 * I have decided to put them into their own function instead of letting you access the 3102 3102 * corresponding context keys directly. Thus, there is also corresponding getter-function, … … 3117 3117 3118 3118 /** 3119 * This is a temporary tran isition function used to get the currently known and required3119 * This is a temporary transition function used to get the currently known and required 3120 3120 * Request Metadata: The last modified timestamp and the permalink GUID. 3121 3121 * 3122 3122 * <i>Author's note:</i> This function is a temporary solution which is used until the 3123 * Request handling code of MidCOM has been rewritten. Hence the _26_ sec ition in its name.3123 * Request handling code of MidCOM has been rewritten. Hence the _26_ section in its name. 3124 3124 * I have decided to put them into their own function instead of letting you access the 3125 3125 * corresponding context keys directly. Thus, there is also corresponding setter-function, trunk/midcom/midcom.core/midcom/baseclasses/components/request.php
r13625 r13945 226 226 * an array of standard request handler declarations. Both handler identifiers and 227 227 * argument lists are <em>relative</em> to the base URL of the plugin (see below), 228 * not to the component running the problem. You are thus completely location independ ant.228 * not to the component running the problem. You are thus completely location independent. 229 229 * The handler callback must be statically callable. 230 230 * trunk/midcom/midcom.core/midcom/helper/imagefilter.php
r13625 r13945 14 14 * of the individual methods. 15 15 * 16 * This clas always works on existing files at this time. It supports scripting16 * This class always works on existing files at this time. It supports scripting 17 17 * support by using the process_chain / process_command helper functions, which 18 18 * allow the application to let the user specifiy a list of filters that should trunk/midcom/midcom.core/midcom/helper/mailtemplate.php
r13625 r13945 67 67 * "__KEY_SUBKEY__". This mode will use the CSV (string-only) representation of 68 68 * the various datatypes as a replacement value. This way even BLOB-Types and 69 * the like can be saf ly put into an E-Mail.69 * the like can be safely put into an E-Mail. 70 70 * 71 71 * The dump syntax will omit all values tagged as "hidden" or "aisonly", they trunk/midcom/midcom.core/midcom/services/auth.php
r13824 r13945 297 297 * Midgard Administrator, false otherwise. 298 298 * 299 * This effectiv ly maps to $_MIDGARD['admin']; but it is suggested to use the auth class299 * This effectively maps to $_MIDGARD['admin']; but it is suggested to use the auth class 300 300 * for consistency reasons nevertheless. 301 301 * trunk/midcom/midcom.core/midcom/services/cache.php
r13129 r13945 30 30 * services available (as a component/core author). 31 31 * 32 * The cache service is independ ant from the MidCOM Core, as it has to be started up at the32 * The cache service is independent from the MidCOM Core, as it has to be started up at the 33 33 * beginning of the request. Cache modules are loaded on-demand. 34 34 * trunk/midcom/midcom.core/midcom/services/i18n.php
r13882 r13945 21 21 * /lib/midcom/services/_i18n_language-db.dat for details. 22 22 * 23 * This class is able to run independ antly from midcom_application23 * This class is able to run independently from midcom_application 24 24 * due to the fact that it is used in the cache_hit code. 25 25 * trunk/midcom/midcom.core/midcom/services/indexer/document.php
r13625 r13945 221 221 /** 222 222 * The full path to the topic that houses the document. For external resources, 223 * this should be either a MidCOM topic, to which this resource is a ccociated or223 * this should be either a MidCOM topic, to which this resource is associated or 224 224 * some "directory" after which you could filter. You may also leave 225 225 * it empty prohibiting it to appear on any topic-specific search. 226 226 * 227 227 * The value should be fully qualified, as returned by MIDCOM_NAV_FULLURL, including 228 * a trailing sla hs, f.x. https://host/path/to/topic/228 * a trailing slash, f.x. https://host/path/to/topic/ 229 229 * 230 230 * This is optional. trunk/midcom/midcom.core/midcom/services/rcs/config.php
r5529 r13945 12 12 13 13 /** 14 * The clas containing the configurationoptions for RCS.14 * The class containing the configurationoptions for RCS. 15 15 * @see midcom_services_rcs for an overview of the options 16 16 */ trunk/midcom/midcom.helper.datamanager/datatype.php
r13625 r13945 270 270 * 271 271 * The default behavior is to simply store 272 * the variable's string representation into the database. It return es272 * the variable's string representation into the database. It returns 273 273 * one of the MIDCOM Datamanager's process_form() returncodes accordingly. 274 274 * trunk/midcom/midcom.helper.datamanager/datatype_boolean.php
r1080 r13945 29 29 function save_to_storage() 30 30 { 31 /* Transform value to string, so that it works saf ly even with parameters */31 /* Transform value to string, so that it works safely even with parameters */ 32 32 $oldvalue = $this->_value; 33 33 if ($this->_value) trunk/midcom/midcom.helper.datamanager/widget_schemaselect.php
r11907 r13945 32 32 * <b>widget_schemaselect_linkto:</b> Contains the name of the field from the current 33 33 * schema which will contain the path of the schema database. As usual, you 34 * can either directly write the path to a snippet or use th ie file: prefix to refer34 * can either directly write the path to a snippet or use the file: prefix to refer 35 35 * to a MidCOM library file. This field is mandatory. 36 36 * trunk/midcom/midcom.helper.datamanager2/widget/password.php
r10966 r13945 17 17 * (and should not) display an existing password. The rule is, that as long as the value 18 18 * is empty, no password change will be given to the caller during the synchronization 19 * (effectiv ly skipping the operation).19 * (effectively skipping the operation). 20 20 * 21 21 * <b>Available configuration options:</b> trunk/midcom/midcom.helper.datamanager2/widget/simpledate.php
r12831 r13945 11 11 * Datamanager 2 simple date widget 12 12 * 13 * This widget is built around the PEAR QuickForm Date widget, which effectiv ly13 * This widget is built around the PEAR QuickForm Date widget, which effectively 14 14 * consists of a set of input fields for each part of the date/time. It is limited 15 15 * to seconds precision therefore. Currently unsupported are the Day options (selects trunk/midcom/midcom.helper.imagepopup/documentation/TODO
r3249 r13945 38 38 17:26 < torben> creat a simple dm2 schema with a single images type in it 39 39 17:27 < torben> create a datamanager instance and use the setimage calls of the type to add images to it (you don't need the formmanager / widget here obviously) 40 17:27 < torben> cave ts:40 17:27 < torben> caveats: 41 41 17:27 < torben> attachment deletion needs very careful treatment 42 42 17:27 < torben> many attachments are grouped together, as you already discovered yourself trunk/midcom/net.nehmer.account/documentation/CHANGES
r13788 r13945 47 47 + The config option register_allow_types can now be used to 48 48 limit the account types that are open for registration. This 49 is independ ant of the account definitons.49 is independent of the account definitons. 50 50 51 51 2006-04-06 (1.0.1) torben trunk/midcom/net.nehmer.account/handler/view.php
r13720 r13945 710 710 if ($this->_view_quick) 711 711 { 712 // This will effectiv ly hide all user-defined fields.712 // This will effectively hide all user-defined fields. 713 713 $this->_visible_fields_user_selection = Array(); 714 714 } trunk/midcom/net.nehmer.branchenbuch/branche.php
r11359 r13945 298 298 * Basically, the system runs two queries, one for the main categories, another for the 299 299 * subcategories. The lists are merged on the PHP level afterwards. This should be faster 300 * as having independ ant queries for the subcategories for each category.300 * as having independent queries for the subcategories for each category. 301 301 * 302 302 * The logic should take over the sorting from the SQL resultset, so no explicit sort() trunk/midcom/net.nemein.payment/handler/nordea.php
r13424 r13945 218 218 219 219 /** 220 * Renders the payment link, preparation in thi eorder:220 * Renders the payment link, preparation in this order: 221 221 * 222 222 * 1. Format the amount string trunk/midcom/net.nemein.registrations/config/schemadb_default.inc
r5497 r13945 118 118 'person' => Array 119 119 ( 120 'description' => 'Regist red Person Record',120 'description' => 'Registered Person Record', 121 121 'fields' => Array 122 122 ( trunk/midcom/net.nemein.registrations/documentation/CHANGES
r13624 r13945 81 81 82 82 2004-06-14 torben 83 - Moved the event management to facili ate the datamanager.83 - Moved the event management to facilitate the datamanager. 84 84 Event creation/deletion is currently missing, as is a code 85 85 cleanup. A example schema with its requirements in the docs
