Changeset 15534

Show
Ignore:
Timestamp:
03/12/08 19:19:21 (7 months ago)
Author:
flack
Message:

forward port some spelling fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/core/service/implementation/urlparsertopic.php

    r14767 r15534  
    125125 
    126126            return false; 
    127         }        
     127        } 
    128128 
    129129        $qb = midcom_db_topic::new_query_builder(); 
     
    169169     * 
    170170     * Try to decode an <namespace>-<key>-<value> pair at the current URL 
    171      * position. Namespace must be a valid MidCOM Path, Key must mach the RegEx 
     171     * position. Namespace must be a valid MidCOM Path, Key must match the RegEx 
    172172     * [a-zA-Z0-9]* and value must not contain a "/". 
    173173     * 
    174      * On success it returns an acciocative array containing two rows, 
     174     * On success it returns an associative array containing two rows, 
    175175     * indexed with MIDGARD_HELPER_URLPARSER_KEY and _VALUE which hold 
    176176     * the elements that have been parsed. $this->argv[0] will be dropped 
  • trunk/midcom/midcom.core/midcom/services/indexer/document/datamanager.php

    r14773 r15534  
    5959 * 
    6060 * Due to the performance drawbacks it should be avoided to rely on this 
    61  * bahvoir. Instead, if you don't have a field called 'title' set to auto-indexing, 
     61 * behavior. Instead, if you don't have a field called 'title' set to auto-indexing, 
    6262 * set another field to the index-method title (see below). Note, that you should 
    6363 * configure that field in a way so that it is not allowed to leave the field empty, 
  • trunk/midcom/midcom.core/midcom/services/indexer/document/datamanager2.php

    r14391 r15534  
    9090 * Be aware that this class is designed to work on *datamanager2* instances, not 
    9191 * formmanagers, controllers or storage backends. It is also only targeted for the 
    92  * actual database storage backend, so the nullstorage backand will not work. 
     92 * actual database storage backend, so the nullstorage backend will not work. 
    9393 * 
    9494 * @package midcom.services 
  • trunk/midcom/midcom.core/midcom/services/indexer/document/midcom.php

    r14916 r15534  
    1313 * be used whenever MidCOM documents are indexed, either directly or as a base class. 
    1414 *  
    15  * It will take an arbitary Midgard Object, for which Metadata must be available. 
     15 * It will take an arbitrary Midgard Object, for which Metadata must be available. 
    1616 * The document class will then load the metadata information out of the database 
    1717 * and populate all metadata fields of the document from there.  
  • trunk/midcom/midcom.helper.datamanager/datamanager.php

    r15234 r15534  
    10191019                 * if the DM returns MIDCOM_DATAMGR_EDITING, you must honor this 
    10201020                 * by no longer entering the creation mode, you'll have to fall 
    1021                  * back to the original bahvoir for future runs in that case. 
     1021                 * back to the original behavior for future runs in that case. 
    10221022                 * See the data array for a guid/id off the content object. 
    10231023                 */ 
    10241024            } 
    10251025 
    1026             /* Frist, synchronize all data and check for required fields. 
     1026            /* First, synchronize all data and check for required fields. 
    10271027             * Note, that this place could be used for validation as well. 
    1028              * For readonly/hidden fields, do the opposit, resync the widget 
     1028             * For readonly/hidden fields, do the opposite, resync the widget 
    10291029             * with the datatype, just to be on the safe side. 
    10301030             */ 
  • trunk/midcom/net.nemein.payment/config/config.inc

    r1228 r15534  
    11// Payment handlers, override this in your sitegroup configuration 
    2 // Handlers are indexed by arbitary values which are not used for further 
     2// Handlers are indexed by arbitrary values which are not used for further 
    33// processing. 
    44// 
  • trunk/midcom/no.odindata.quickform/formvar.php

    r14773 r15534  
    1010/** 
    1111 * midcom_helper_datamanager_getvar 
    12  *  
     12 * 
    1313 * this class extends DM and only implements one function that, when it is perfect 
    1414 * should be ported back to dm. 
     
    2121     */ 
    2222    var $attachments = array(); 
    23   
     23 
    2424    function process_form_to_array () 
    2525    { 
     
    2727        $success = true; 
    2828        $this->errstr = ""; 
    29          
     29 
    3030        debug_push ('midcom_helper_datamanager::process_form_to_array'); 
    3131 
    32           
     32 
    3333        /*** EDIT FORM: CANCEL ***/ 
    3434        if (array_key_exists ($this->form_prefix . 'cancel', $_REQUEST)) 
     
    3636            debug_add('CANCEL: Editing aborted.'); 
    3737            $this->_processing_result = MIDCOM_DATAMGR_CANCELLED; 
    38                       
     38 
    3939            return $this->_processing_result; 
    4040        } 
    41          
     41 
    4242        /*** EDIT FORM: SUBMIT ***/ 
    4343        if (array_key_exists ($this->form_prefix . 'submit', $_REQUEST)) 
    4444        { 
    4545            $this->_processing_result = MIDCOM_DATAMGR_SAVED; 
    46             foreach ($this->_fields as $name => $field)  
     46            foreach ($this->_fields as $name => $field) 
    4747            { 
    4848                switch (get_class($this->_datatypes[$name])) 
    49                 {                 
     49                { 
    5050                    case 'midcom_helper_datamanager_datatype_blob': 
    5151                        if (is_uploaded_file($_FILES["midcom_helper_datamanager_field_{$name}"]['tmp_name'])) 
     
    5959                        } 
    6060                        break; 
    61                      
     61 
    6262                    default: 
    6363                        if (array_key_exists("midcom_helper_datamanager_field_{$name}", $_POST)) 
     
    7878             * First, synchronize all data and check for required fields. 
    7979             * Note, that this place could be used for validation as well. 
    80              * For readonly/hidden fields, do the opposit, resync the widget 
     80             * For readonly/hidden fields, do the opposite, resync the widget 
    8181             * with the datatype, just to be on the safe side. 
    8282             */ 
    8383            $this->_missing_required_fields = Array(); 
    84              
     84 
    8585            foreach ($this->_fields as $name => $field) 
    8686            { 
     
    9797                    $object->sync_data_with_widget(); 
    9898                } 
    99                  
     99 
    100100                if (   $field['required'] === true 
    101101                    && $object->is_empty() == true) 
    102102                { 
    103                     $this->_missing_required_fields[] = $name;  
     103                    $this->_missing_required_fields[] = $name; 
    104104                    $msg = sprintf($this->_l10n->get('required field missing'), $field['description']); 
    105105                    $this->append_error("<p class=\"error\">{$msg}</p>\n"); 
    106106                    $success = false; 
    107107                } 
    108                  
     108 
    109109                /* input validation  */ 
    110                 if (   $success  
    111                     && array_key_exists('validation', $field))  
     110                if (   $success 
     111                    && array_key_exists('validation', $field)) 
    112112                { 
    113113                    if (!is_object($this->_rule_registry)) 
     
    123123                            return true; 
    124124                        } 
    125                     }  
     125                    } 
    126126                    $success = $object->validate($field['description'], $field['validation'],$name); 
    127127                } 
    128128            } 
    129              
     129 
    130130            if (!$success) 
    131131            { 
    132132                $this->_processing_result = MIDCOM_DATAMGR_EDITING; 
    133133            } 
    134           
     134 
    135135            debug_add ('Form submitted.', MIDCOM_LOG_WARN); 
    136136            return $this->_processing_result; 
    137137        } 
    138          
     138 
    139139        // nothing to do, how nice :) 
    140140        debug_add ('Form opened:.', MIDCOM_LOG_WARN); 
    141141        $this->_processing_result = MIDCOM_DATAMGR_EDITING; 
    142          
     142 
    143143        return $this->_processing_result; 
    144     }     
     144    } 
    145145} 
    146146?>