Changeset 11359

Show
Ignore:
Timestamp:
07/26/07 14:58:18 (1 year ago)
Author:
flack
Message:

fix some common misspellings in comments (funicton, accociated, thereoff, arbitary, relativly)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.admin.styleeditor/admin.php

    r2335 r11359  
    2020 
    2121    /** 
    22      * The schema database accociated with articles. 
     22     * The schema database associated with articles. 
    2323     *  
    2424     * @var Array 
  • trunk/midcom/midcom.core/globals.php

    r3762 r11359  
    3030 * be used for stuff like default configurations etc. thus avoiding the 
    3131 * pollution of the global namespace. Each component has its own array  
    32  * in the global one, allowing storage of arbitary data indexed by arbitary 
     32 * in the global one, allowing storage of arbitrary data indexed by arbitrary 
    3333 * keys in there. The component-specific arrays are indexed by their 
    3434 * name. 
  • trunk/midcom/midcom.core/midcom/application.php

    r11350 r11359  
    11861186     * Check, wether a given component is able to handle the current request. 
    11871187     * 
    1188      * Used by _process(), it checks if the component accociated to $object is able 
    1189      * to handle the request. First it will load the component accociated to $object. 
     1188     * Used by _process(), it checks if the component associated to $object is able 
     1189     * to handle the request. First it will load the component associated to $object. 
    11901190     * Then it will fetch the COMPONENT class accoicated to the MidCOM. After the 
    11911191     * local configuration is retrieved from the object in question the component will 
     
    15311531     * Access the MidCOM component context 
    15321532     * 
    1533      * Returns Component Context Information accociated to the component with the 
     1533     * Returns Component Context Information associated to the component with the 
    15341534     * context ID $contextid idetentified by $key. Omitting $contextid will yield 
    15351535     * the variable from the current context. 
     
    16161616 
    16171617    /** 
    1618      * Store arbitary, component-specific information in the component context 
     1618     * Store arbitrary, component-specific information in the component context 
    16191619     * 
    16201620     * This method allows you to get custom data to a given context. 
     
    16221622     * currently active context. You cannot access the custom data of any other 
    16231623     * component this way, it is private to the context. You may attach information 
    1624      * to other contexts, which will be accociated with the current component, so 
     1624     * to other contexts, which will be associated with the current component, so 
    16251625     * you have a clean namespace independantly from which component or context you 
    16261626     * are operating of. All calls honor references of passed data, so you can use 
     
    16641664     * get quite confusing. 
    16651665     * 
    1666      * @param mixed $key        The key accociated to the value. 
     1666     * @param mixed $key        The key associated to the value. 
    16671667     * @param mixed $value    The value to store. (This is stored by-reference!) 
    1668      * @param int $contextid    The context to accociated this data with (defaults to the current context) 
     1668     * @param int $contextid    The context to associated this data with (defaults to the current context) 
    16691669     * @see midcom_application::get_custom_context_data() 
    16701670     */ 
     
    16771677 
    16781678    /** 
    1679      * Retrieve arbitary, component-specific information in the component context 
     1679     * Retrieve arbitrary, component-specific information in the component context 
    16801680     * 
    16811681     * The set call defaults to the current context, the get call's semantics are as 
     
    22702270     * 
    22712271     * This function is a copy of serve_attachment, but instead of serving attachments 
    2272      * it can serve the code field of an arbitary snippet. There is no checking on 
     2272     * it can serve the code field of an arbitrary snippet. There is no checking on 
    22732273     * permissions done here, the callee has to ensure this. See the URL methods 
    22742274     * servesnippet(guid) for details. 
  • trunk/midcom/midcom.core/midcom/baseclasses/components/cron_handler.php

    r3766 r11359  
    5353 
    5454    /** 
    55      * The name of the component to which this handler is accociated. 
     55     * The name of the component to which this handler is associated. 
    5656     * 
    5757     * @var Array 
  • trunk/midcom/midcom.core/midcom/baseclasses/components/interface.php

    r4503 r11359  
    322322 
    323323    /** 
    324      * The component manifest instance accociated with this component. Read-Only and automatically 
     324     * The component manifest instance associated with this component. Read-Only and automatically 
    325325     * populated during initialization. 
    326326     * 
     
    537537     * @param mixed $configuration A configuration data list, suitable for merging with a 
    538538     *     midcom_helper_configuration object. 
    539      * @param int $contextid The ID of the context we are accociated with. 
     539     * @param int $contextid The ID of the context we are associated with. 
    540540     * @param bool $adminmode Flag, indicating wether we are on-site (false) or in AIS (true). 
    541541     * @return bool Indication success. 
     
    983983     * 
    984984     * @param MidgardTopic $topic The topic to reindex. 
    985      * @param midgard_helper_config $config The configuration accociated with this topic. 
     985     * @param midgard_helper_config $config The configuration associated with this topic. 
    986986     * @param midcom_service_indexer The indexer object to use for indexing. (Passed by reference!) 
    987987     * @return bool Indicating success. 
     
    10071007     * @param midcom_services_indexer_document $document The document to check. This object is passed by 
    10081008     *     reference and may therefore be modified to match the current security policy. 
    1009      * @param midcom_helper_configuration $config The configuration accociated with the topic. 
     1009     * @param midcom_helper_configuration $config The configuration associated with the topic. 
    10101010     * @param MidgardTopic $topic The topic this document is assigned to. 
    10111011     * @return bool True if the object may be shown, false otherwise. 
     
    10541054     * Be aware that this is the only event handler at this time which has a real default 
    10551055     * implementation: If you do not override the base class implementation, it will iterate 
    1056      * through all NAP leaves applicable to the node accociated with the topic. If a match 
     1056     * through all NAP leaves applicable to the node associated with the topic. If a match 
    10571057     * is found, its local URL will be returned. This will not be terribly efficient, so 
    10581058     * you are strongly encouraged to have some more efficient solution instead. Obviously, 
  • trunk/midcom/midcom.core/midcom/baseclasses/components/request.php

    r11335 r11359  
    272272 * 
    273273 * The first argument of this call identifies the plugin namespace, the second 
    274  * the list of classes accociated with this plugin. Each class gets its own 
     274 * the list of classes associated with this plugin. Each class gets its own 
    275275 * identifier. The namespace and class identifier is used to construct the 
    276276 * final plugin URL: {$anchor_prefix}/{$namespace}/{$class_identifier}/... 
     
    286286 * - src: The source URL of the plugin class. This can be either a file:/... 
    287287 *   URL which is relative to MIDCOM_ROOT, snippet:/... which identifies an 
    288  *   arbitary snippet loaded with mgd_include_snippet or, finally, component:... 
     288 *   arbitrary snippet loaded with mgd_include_snippet or, finally, component:... 
    289289 *   which will load the component specified. This is only used if the class 
    290290 *   is not yet available. 
     
    952952    /** 
    953953     * Generic output initialization code. The return value lets you control wether the 
    954      * output method accociated with the handler declaration is called, return false to 
     954     * output method associated with the handler declaration is called, return false to 
    955955     * override this automatism, true, the default, will call the output handler normally. 
    956956     * 
  • trunk/midcom/midcom.core/midcom/baseclasses/core/dbobject.php

    r6188 r11359  
    16271627 
    16281628    /** 
    1629      * Retrieves an attac   hment on an arbitary object by its name. 
     1629     * Retrieves an attac   hment on an arbitrary object by its name. 
    16301630     * If multiple attachments match the name (should not happen in reality), the 
    16311631     * first match will be returned. 
     
    16631663 
    16641664    /** 
    1665      * Delete an attachment on an arbitary object by its name. 
     1665     * Delete an attachment on an arbitrary object by its name. 
    16661666     * If multiple attachments match the name (should not happen in reality), the 
    16671667     * first match will be deleted. 
     
    19951995 
    19961996    /** 
    1997      * This helper will return a reference to the metadata class accociated with the 
     1997     * This helper will return a reference to the metadata class associated with the 
    19981998     * given object instance. 
    19991999     * 
    20002000     * @param MidgardObject $object A class inherited from one of the MgdSchema driven Midgard classes supporting the above callbacks. 
    2001      * @return midcom_helper_metadata A reference to the metadata object accociated with this class or false on failure. 
     2001     * @return midcom_helper_metadata A reference to the metadata object associated with this class or false on failure. 
    20022002     */ 
    20032003    function & get_metadata($object) 
  • trunk/midcom/midcom.core/midcom/baseclasses/database/attachment.php

    r5787 r11359  
    4242     * in the attachment record. The table in question is used to identify the object to 
    4343     * use. If multiple objects are registered for a given table, the first matching class 
    44      * returned by the dbfactory is used (which is usually rather arbitary). 
     44     * returned by the dbfactory is used (which is usually rather arbitrary). 
    4545     * 
    4646     * @todo Not yet implemented. 
  • trunk/midcom/midcom.core/midcom/baseclasses/database/event.php

    r3766 r11359  
    5656 
    5757    /** 
    58      * Deletes event membership records accociated with this event. 
     58     * Deletes event membership records associated with this event. 
    5959     */ 
    6060    function _on_deleted() 
  • trunk/midcom/midcom.core/midcom/baseclasses/database/member.php

    r3766 r11359  
    3030 
    3131    /** 
    32      * Returns the group the membership record is accociated with. This allows group 
     32     * Returns the group the membership record is associated with. This allows group 
    3333     * owners to manage their members. 
    3434     * 
  • trunk/midcom/midcom.core/midcom/baseclasses/database/person.php

    r3766 r11359  
    8585    /** 
    8686     * Deletes all group and event memberships of the original person record. SUDO privileges 
    87      * are used at this point, since only memberships are accociated to the groups, not persons 
     87     * are used at this point, since only memberships are associated to the groups, not persons 
    8888     * and event memberships belong to the event, again not to the person. 
    8989     */ 
  • trunk/midcom/midcom.core/midcom/core/collector.php

    r4908 r11359  
    185185    /** 
    186186     * This function will execute the Querybuilder and call the appropriate callbacks from the 
    187      * class it is accociated to. This way, class authors have full control over what is actually 
     187     * class it is associated to. This way, class authors have full control over what is actually 
    188188     * returned to the application. 
    189189     * 
    190      * The calling sequence of all event handlers of the accociated class is like this: 
     190     * The calling sequence of all event handlers of the associated class is like this: 
    191191     * 
    192192     * 1. bool _on_prepare_exec_collector(&$this) is called before the actual query execution. Return false to 
     
    418418     * 
    419419     * While the call lets you decide wether all constraints within the group are AND'ed or OR'ed, 
    420      * only OR constraints make logcially sense in this context, which is why this proxy funciton 
     420     * only OR constraints make logcially sense in this context, which is why this proxy function 
    421421     * sets 'OR' as the default operator. 
    422422     * 
  • trunk/midcom/midcom.core/midcom/core/group.php

    r4206 r11359  
    185185     * that depending on ACL information, the retrival of the user may fail. 
    186186     * 
    187      * Also, as outlined in the member $_storage, not all groups may have a DBA object accociated 
     187     * Also, as outlined in the member $_storage, not all groups may have a DBA object associated 
    188188     * with them, therefore this call may return null. 
    189189     * 
     
    191191     * on the member $this->_storage->id if that object is defined, or null otherwise. 
    192192     * 
    193      * @return MidgardObject Any MidCOM DBA level object that holds the information accociated with 
     193     * @return MidgardObject Any MidCOM DBA level object that holds the information associated with 
    194194     *     this group, or null if there is no storage object. 
    195195     */ 
  • trunk/midcom/midcom.core/midcom/core/manifest.php

    r6140 r11359  
    2020 * background. 
    2121 * 
    22  * The component manifest on-disk actually consists of a relativly simple accociative 
     22 * The component manifest on-disk actually consists of a relatively simple accociative 
    2323 * array which describes the component. The following example shows an average manifest 
    2424 * using all available options and should serve us as an example: 
     
    150150 * 
    151151 * <i>Array customdata</i> is the run-of-the-mill extension place of the system. It lets 
    152  * you place arbitary arrays indexed by components (like 'midcom.serivces.cron' or 
     152 * you place arbitrary arrays indexed by components (like 'midcom.serivces.cron' or 
    153153 * 'midcom.admin.aegir') into it along with meta-information relevant to that component 
    154154 * only. This is used to extend the information available through the context. No key 
  • trunk/midcom/midcom.core/midcom/core/querybuilder.php

    r6116 r11359  
    180180    /** 
    181181     * This function will execute the Querybuilder and call the appropriate callbacks from the 
    182      * class it is accociated to. This way, class authors have full control over what is actually 
     182     * class it is associated to. This way, class authors have full control over what is actually 
    183183     * returned to the application. 
    184184     * 
    185      * The calling sequence of all event handlers of the accociated class is like this: 
     185     * The calling sequence of all event handlers of the associated class is like this: 
    186186     * 
    187187     * 1. bool _on_prepare_exec_query_builder(&$this) is called before the actual query execution. Return false to 
     
    543543     * 
    544544     * While the call lets you decide wether all constraints within the group are AND'ed or OR'ed, 
    545      * only OR constraints make logcially sense in this context, which is why this proxy funciton 
     545     * only OR constraints make logcially sense in this context, which is why this proxy function 
    546546     * sets 'OR' as the default operator. 
    547547     * 
  • trunk/midcom/midcom.core/midcom/core/temporary_object.php

    r10965 r11359  
    8181     * Also, there will be <i>no</i> integrity checking in terms of already existing 
    8282     * parameters etc. This feature is mainly geared towards preparing a freshly 
    83      * created final object with the data accociated with this temporary object. 
     83     * created final object with the data associated with this temporary object. 
    8484     * 
    8585     * Any invalid object / missing privlege will trigger a generate_error. 
  • trunk/midcom/midcom.core/midcom/core/user.php

    r6116 r11359  
    122122     * 
    123123     * This is a multi level array. It holds regular privilege name/state arrays indexed by the 
    124      * name of the class (or subtype thereoff) for which they should apply. 
     124     * name of the class (or subtype thereof) for which they should apply. 
    125125     * 
    126126     * It is loaded on demand. 
     
    551551     * that depending on ACL information, the retrival of the user may fail. 
    552552     * 
    553      * @return midcom_db_person The user which is accociated with this record or false if the object cannot be accessed. 
     553     * @return midcom_db_person The user which is associated with this record or false if the object cannot be accessed. 
    554554     */ 
    555555    function get_storage() 
     
    713713 
    714714    /** 
    715      * Deletes the current user account. This will cleanup all information accociated with 
     715     * Deletes the current user account. This will cleanup all information associated with 
    716716     * the user that is managed by the core (like login sessions and privilege records). 
    717717     * 
  • trunk/midcom/midcom.core/midcom/exec/index-legacy-attachments.php

    r3766 r11359  
    1111 *   varibales, recognized by their data_ name prefix. 
    1212 * - Any blob/image type attachments, recognized by some of their parameters. 
    13  * - Any leaves accociated with net.siriux.photos topics are skipped completly. 
     13 * - Any leaves associated with net.siriux.photos topics are skipped completly. 
    1414 *  
    1515 * NAP will used to traverse the registered topic tree, indexing all attachments 
     
    119119                if (is_null($leaf[MIDCOM_NAV_OBJECT])) 
    120120                { 
    121                     debug_add("The leaf {$leafid} does not have an accociated MidgardObject, skipping it.", MIDCOM_LOG_INFO); 
     121                    debug_add("The leaf {$leafid} does not have an associated MidgardObject, skipping it.", MIDCOM_LOG_INFO); 
    122122                    debug_print_r('Leaf strucuture dump:', $leaf);  
    123123                    continue; 
  • trunk/midcom/midcom.core/midcom/helper/_basicnav.php

    r5033 r11359  
    921921 
    922922    /** 
    923      * Load the Navigational information accociated with the topic $param, which 
     923     * Load the Navigational information associated with the topic $param, which 
    924924     * can be passed as an ID or as a MidgardTopic object. This is differentiated 
    925925     * by the flag $idmode (true for id, false for MidgardTopic). 
     
    14481448 
    14491449    /** 
    1450      * Returns the ID of the node to which $leaf_id is accociated to, false 
     1450     * Returns the ID of the node to which $leaf_id is associated to, false 
    14511451     * on failure. 
    14521452     * 
     
    14721472 
    14731473    /** 
    1474      * Returns the ID of the node to which $node_id is accociated to, false 
     1474     * Returns the ID of the node to which $node_id is associated to, false 
    14751475     * on failure. The root node's uplink is -1. 
    14761476     * 
  • trunk/midcom/midcom.core/midcom/helper/_componentloader.php

    r5594 r11359  
    11331133 
    11341134    /** 
    1135      * This small helper builds a complete set of custom data accociated with a given component 
     1135     * This small helper builds a complete set of custom data associated with a given component 
    11361136     * identifier. In case a given component does not have the key set and the boolean parameter 
    11371137     * is set to true, an empty array is added implicitly. 
  • trunk/midcom/midcom.core/midcom/helper/mailtemplate.php

    r5713 r11359  
    2121 *  
    2222 * Four types of variables can be inserted into the E-Mail's subject or body.  
    23  * Every value has an accociated key, which is searched as array key in the  
     23 * Every value has an associated key, which is searched as array key in the  
    2424 * parameter array. Key-Names are matched case-sensitive. Note, that of course 
    2525 * the double-quotes in the identifier examples are only to distinguish them  
  • trunk/midcom/midcom.core/midcom/helper/misc.php

    r11169 r11359  
    203203 
    204204/** 
    205  * Save a number of variables into parameters on an arbitary Midgard object. 
     205 * Save a number of variables into parameters on an arbitrary Midgard object. 
    206206 * 
    207207 * This function will save 
     
    10971097{ 
    10981098    /** 
    1099      * This funciton validates wether the argument passed is a syntactically valid GUID. 
     1099     * This function validates wether the argument passed is a syntactically valid GUID. 
    11001100     * The check is currently very basic (in favor of speed), and does only validate the 
    11011101     * lentgth and type of the argument. 
  • trunk/midcom/midcom.core/midcom/helper/nav.php

    r5820 r11359  
    3636 
    3737    /** 
    38      * The context ID we're accociated with. 
     38     * The context ID we're associated with. 
    3939     * 
    4040     * @var int 
     
    159159 
    160160    /** 
    161      * Returns the ID of the node to which $leaf_id is accociated to, false 
     161     * Returns the ID of the node to which $leaf_id is associated to, false 
    162162     * on failure. 
    163163     * 
     
    171171 
    172172    /** 
    173      * Returns the ID of the node to which $node_id is accociated to, false 
     173     * Returns the ID of the node to which $node_id is associated to, false 
    174174     * on failure. The root node's uplink is -1. 
    175175     * 
  • trunk/midcom/midcom.core/midcom/helper/toolbar.php

    r6178 r11359  
    169169 
    170170    /** 
    171      * Allow our users to add arbitary data to the toolbar. This is for 
     171     * Allow our users to add arbitrary data to the toolbar. This is for 
    172172     * example used to track which items have been added to a toolbar 
    173173     * when it is possible that the adders are called repeatedly. 
  • trunk/midcom/midcom.core/midcom/services/_sessioning.php

    r3766 r11359  
    156156 
    157157    /** 
    158      * Removes the value accociated with the specified key. Returns null if the key 
     158     * Removes the value associated with the specified key. Returns null if the key 
    159159     * is non-existant or the value of the key just removed otherwise. Note, that 
    160160     * this is not neccessarily a valid non-existance check, as the sessioning 
  • trunk/midcom/midcom.core/midcom/services/auth.php

    r6116 r11359  
    4141 * 
    4242 * - A Midgard User encaspulated by a midcom_core_user object. 
    43  * - A Midgard Group encaspulated by a midcom_core_group object or subtype thereoff
     43 * - A Midgard Group encaspulated by a midcom_core_group object or subtype thereof
    4444 * - The magic assignee 'EVERYONE', which applies the privilege to every user unconditionally, 
    4545 *   even to unauthenticated users. 
     
    121121 * <i>Content object privileges</i> 
    122122 * 
    123  * This is the kind of privilege that will be used most often. They are accociated with any content 
     123 * This is the kind of privilege that will be used most often. They are associated with any content 
    124124 * object in the system, and are read on every access to a content object. As you can see in the 
    125125 * introduction, you have the most flexibility here. 
     
    18781878     * has been registered in the system. 
    18791879     * 
    1880      * @todo This call should load the component accociated to the privilege on demand. 
     1880     * @todo This call should load the component associated to the privilege on demand. 
    18811881     * 
    18821882     * @param string $name The name of the privilege to check. 
     
    20892089     * - Otherwise, no message is shown. 
    20902090     * 
    2091      * This funciton will exit() unconditionally. 
     2091     * This function will exit() unconditionally. 
    20922092     * 
    20932093     * If the style element <i>midcom_services_auth_access_denied</i> is defined, it will be shown 
  • trunk/midcom/midcom.core/midcom/services/auth/sessionmgr.php

    r6116 r11359  
    6868     *     defaults to the client IP reported by Apache. 
    6969     * @return Array An array holding the session identifier in the 'session_id' key and 
    70      *     the accociated user in the 'user' key (take this by reference!). Failure returns false. 
     70     *     the associated user in the 'user' key (take this by reference!). Failure returns false. 
    7171     */ 
    7272    function create_login_session($username, $password, $clientip = null) 
     
    9797        { 
    9898            debug_push_class(__CLASS__, __FUNCTION__); 
    99             debug_add("Refusing login as the user has no password accociated with him.", MIDCOM_LOG_ERROR); 
     99            debug_add("Refusing login as the user has no password associated with him.", MIDCOM_LOG_ERROR); 
    100100            debug_pop(); 
    101101            // Undo Midgard auth. 
  • trunk/midcom/midcom.core/midcom/services/cache.php

    r5145 r11359  
    154154 
    155155    /** 
    156      * Invalidates all cache records accociated with a given content object. 
     156     * Invalidates all cache records associated with a given content object. 
    157157     * 
    158158     * @param mixed $guid This is either a GUID or a MidgardObject, in which case the Guid is auto-dtermined. 
  • trunk/midcom/midcom.core/midcom/services/cache/backend.php

    r4486 r11359  
    254254     
    255255    /** 
    256      * Get the data accociated with the given key.  
     256     * Get the data associated with the given key.  
    257257     *  
    258258     * The data store is opened either read-only or read-write when this 
     
    260260     *  
    261261     * @param string $key Key to look up. 
    262      * @return string $data The data accociated with the key. 
     262     * @return string $data The data associated with the key. 
    263263     */ 
    264264    function _get($key) { die ("The method " . __CLASS__ . "::" . __FUNCTION__ . " must be implemented."); } 
     
    399399    
    400400    /** 
    401      * Get the data accociated with the given key. If the data store has not yet 
     401     * Get the data associated with the given key. If the data store has not yet 
    402402     * been opened for reading, it will be opened automatically prior to the call, 
    403403     * and closed automatically again afterwards. 
    404404     *  
    405405     * @param string $key Key to look up. 
    406      * @return string $data The data accociated with the key. 
     406     * @return string $data The data associated with the key. 
    407407     */ 
    408408    function get($key) 
  • trunk/midcom/midcom.core/midcom/services/cache/module/content.php

    r6011 r11359  
    603603 
    604604    /** 
    605      * Use this funciton to put the cache into a "live mode". This will disable the 
     605     * Use this func