Changeset 14006

Show
Ignore:
Timestamp:
12/19/07 17:27:01 (10 months ago)
Author:
flack
Message:

fix some spelling typos

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.admin.babel/handler/process.php

    r12823 r14006  
    6363 
    6464    /** 
    65      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     65     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    6666     * location. 
    6767     * 
  • trunk/midcom/midcom.admin.folder/folder_management.php

    r12029 r14006  
    22/** 
    33 * @package midcom.admin.folder 
    4  * @author The Midgard Project, http://www.midgard-project.org  
     4 * @author The Midgard Project, http://www.midgard-project.org 
    55 * @version $Id: viewer.php 3975 2006-09-06 17:36:03Z bergie $ 
    66 * @copyright The Midgard Project, http://www.midgard-project.org 
     
    99 
    1010/** 
    11  * Folder managemement class. 
    12  *  
     11 * Folder management class. 
     12 * 
    1313 * @package midcom.admin.folder 
    1414 */ 
     
    1717    /** 
    1818     * Anchor prefix stores the link back to the edited content topic 
    19      *  
     19     * 
    2020     * @access private 
    2121     * @var string 
    2222     */ 
    2323    var $_anchor_prefix = null; 
    24      
     24 
    2525    /** 
    2626     * Simple constructor, which only initializes the parent constructor. 
     
    3030        parent::midcom_baseclasses_components_handler(); 
    3131    } 
    32      
     32 
    3333    /** 
    3434     * Get the object title of the content topic. 
    35      *  
     35     * 
    3636     * @return string containing the content topic title 
    3737     */ 
     
    5353        else 
    5454        { 
    55             $title = get_class($object) . " GUID {$object->guid}";  
     55            $title = get_class($object) . " GUID {$object->guid}"; 
    5656        } 
    5757        return $title; 
    5858    } 
    59      
     59 
    6060    /** 
    6161     * Initializes the context data and toolbar objects 
    62      *  
     62     * 
    6363     * @access private 
    6464     */ 
     
    7474        } 
    7575        $this->_anchor_prefix = $this->_request_data['plugin_anchorprefix']; 
    76          
     76 
    7777        // Ensure we get the correct styles 
    7878        $_MIDCOM->style->prepend_component_styledir('midcom.admin.folder'); 
    79          
     79 
    8080        $this->_request_data['folder'] = $this->_topic; 
    81          
     81 
    8282        if (!array_key_exists($this->_topic->component, $_MIDCOM->componentloader->manifests)) 
    8383        { 
     
    8585        } 
    8686    } 
    87      
     87 
    8888    /** 
    8989     * Get the plugin handlers, which act alike with Request Switches of MidCOM 
    9090     * Baseclasses Components (midcom.baseclasses.components.request) 
    91      *  
     91     * 
    9292     * @access public 
    9393     * @return mixed Array of the plugin handlers 
     
    104104            /** 
    105105             * Create a new topic 
    106              *  
     106             * 
    107107             * Match /create/ 
    108108             */ 
     
    112112                'fixed_args' => array ('create'), 
    113113            ), 
    114              
     114 
    115115            /** 
    116116             * Edit a topic 
    117              *  
     117             * 
    118118             * Match /edit/ 
    119119             */ 
     
    123123                'fixed_args' => array ('edit'), 
    124124            ), 
    125              
     125 
    126126            /** 
    127127             * Delete a topic 
    128              *  
     128             * 
    129129             * Match /delete/ 
    130130             */ 
     
    134134                'fixed_args' => array ('delete'), 
    135135            ), 
    136              
     136 
    137137            /** 
    138138             * Approval pseudo locations, which redirect back to the original page 
     
    141141            /** 
    142142             * Approve a topic object 
    143              *  
     143             * 
    144144             * Match /metadata/approve/ 
    145145             */ 
     
    149149                'fixed_args' => array ('approve'), 
    150150            ), 
    151              
     151 
    152152            /** 
    153153             * Unapprove a topic object 
    154              *  
     154             * 
    155155             * Match /metadata/unapprove/ 
    156156             */ 
     
    160160                'fixed_args' => array ('unapprove'), 
    161161            ), 
    162              
     162 
    163163            /** 
    164164             * Miscellaneous other functionalities 
     
    166166            /** 
    167167             * Metadata editing 
    168              *  
     168             * 
    169169             * Match /metadata/<object guid>/ 
    170170             */ 
     
    178178            /** 
    179179             * Object moving 
    180              *  
     180             * 
    181181             * Match /move/<object guid>/ 
    182182             */ 
     
    187187                'variable_args' => 1, 
    188188            ), 
    189              
     189 
    190190            // Match /order/ 
    191191            'order' => array 
     
    196196        ); 
    197197    } 
    198      
     198 
    199199    /** 
    200200     * Static method to list names of the non-purecore components 
    201      *  
     201     * 
    202202     * @access public 
    203203     * @param string $parent_component  Name of the parent component, which will pop the item first on the list 
     
    207207    { 
    208208        $components = array (); 
    209          
     209 
    210210        // Loop through the list of components of component loader 
    211211        foreach ($_MIDCOM->componentloader->manifests as $manifest) 
     
    216216                continue; 
    217217            } 
    218              
     218 
    219219            // Skip components beginning with midcom or midgard 
    220220            if (   ereg('^(midcom|midgard)\.', $manifest->name) 
     
    223223                continue; 
    224224            } 
    225              
     225 
    226226            // Skip components not ported to 2.6 
    227227            if (   !is_array($manifest->_raw_data) 
     
    230230                continue; 
    231231            } 
    232              
     232 
    233233            if (array_key_exists('description', $manifest->_raw_data['package.xml'])) 
    234234            { 
     
    248248            ); 
    249249        } 
    250          
     250 
    251251        // Sort the components in alphabetical order (by key i.e. component class name) 
    252252        asort($components); 
    253          
     253 
    254254        // Set the parent component to be the first if applicable 
    255255        if (   $parent_component !== '' 
     
    259259            $temp[$parent_component] = $components[$parent_component]; 
    260260            unset($components[$parent_component]); 
    261              
     261 
    262262            $components = array_merge($temp, $components); 
    263263        } 
    264          
     264 
    265265        return $components; 
    266266    } 
    267      
     267 
    268268    /** 
    269269     * Static method for populating user interface for editing and creating topics 
    270      *  
     270     * 
    271271     * @access static public 
    272272     * @return Array Containing a list of components 
     
    275275    { 
    276276        $list = array(); 
    277          
     277 
    278278        foreach (midcom_admin_folder_folder_management::get_component_list() as $component => $details) 
    279279        { 
     
    287287                continue; 
    288288            } 
    289              
     289 
    290290            if (   isset($GLOBALS['midcom_config']['component_listing_excluded']) 
    291291                && is_array($GLOBALS['midcom_config']['component_listing_excluded']) 
     
    296296                continue; 
    297297            } 
    298              
     298 
    299299            $list[$component] = "{$details['name']} ({$component} {$details['version']})"; 
    300300        } 
    301          
     301 
    302302        return $list; 
    303303    } 
    304      
     304 
    305305    /** 
    306306     * Static method for listing available style templates 
    307      *  
     307     * 
    308308     * @access public 
    309309     */ 
     
    311311    { 
    312312        static $style_array = array(); 
    313          
     313 
    314314        $style_array[''] = $_MIDCOM->i18n->get_string('default', 'midcom.admin.folder'); 
    315          
     315 
    316316        // Give an option for creating a new layout template 
    317317        $style_array['__create'] = $_MIDCOM->i18n->get_string('new layout template', 'midcom.admin.folder'); 
    318          
     318 
    319319        $qb = midcom_db_style::new_query_builder(); 
    320320        $qb->add_constraint('up', '=', $up); 
    321321        $styles = $qb->execute(); 
    322          
     322 
    323323        foreach ($styles as $style) 
    324324        { 
    325325            $style_string = "{$prefix}{$style->name}"; 
    326              
     326 
    327327            // Hide common unwanted material with heuristics 
    328328            if (preg_match('/(asgard|aegir|empty|spider|admin site)/i', $style_string)) 
     
    330330                continue; 
    331331            } 
    332              
     332 
    333333            $style_array[$style_string] = "{$spacer}{$style->name}"; 
    334334            midcom_admin_folder_folder_management::list_styles($style->id, $style_string . '/', $spacer . '&nbsp;&nbsp;'); 
    335335        } 
    336          
     336 
    337337        if ($prefix === '/') 
    338338        { 
  • trunk/midcom/midcom.admin.folder/handler/index.php

    r4025 r14006  
    6666     
    6767    /** 
    68      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     68     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    6969     * location. 
    7070     * 
  • trunk/midcom/midcom.core/midcom/core/nullcomponent/handler/index.php

    r13424 r14006  
    7070     
    7171    /** 
    72      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     72     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    7373     * location. 
    7474     * 
  • trunk/midcom/midcom.core/midcom/request.php

    r13590 r14006  
    1616     * @param $default the default value if the variable doesn't exist. 
    1717     */ 
    18     public function get($var, $default = false)  
     18    public function get($var, $default = false) 
    1919    { 
    2020        if (isset($this->vars[$var])) { 
    2121            return $this->vars[$var]; 
    22         }  
     22        } 
    2323        return $default; 
    2424    } 
     
    2929     * @param $value value to set 
    3030     */ 
    31     public function set($name, $value)  
     31    public function set($name, $value) 
    3232    { 
    3333        $this->vars[$name] = $value; 
     
    3939     *  @param $deafult what to return if the variable does not exist. 
    4040     */ 
    41     public function getTrim($name, $default = "")  
     41    public function getTrim($name, $default = "") 
    4242    { 
    4343        return trim($this->get($name, $default)); 
     
    5252 
    5353/* 
    54  * this class is responsible for building the urlparser filters that will handle the  
    55  * different parts of the parsing process.  
     54 * this class is responsible for building the urlparser filters that will handle the 
     55 * different parts of the parsing process. 
    5656 * 
    5757 * 
    5858 * */ 
    5959class midcom_urlparserfactory { 
    60     
     60 
    6161    /* 
    6262     * Builds the list of filters that should be applied. Note that the filters are 
     
    7373     * 
    7474     * While most frameworks these days link parts of the urls directly to the 
    75      * command name, we let the midcom be linked to the database instead. This makes  
     75     * command name, we let the midcom be linked to the database instead. This makes 
    7676     * it easier for others to build the site without worrying about how to configure the command 
    7777     * interprenter. 
     
    9292 * Implements a simple representation of the url as a stack 
    9393 */ 
    94 class midcom_url_urlstack  
     94class midcom_url_urlstack 
    9595{ 
    9696    protected $argv; 
    97     public function __construct($argv)  
     97    public function __construct($argv) 
    9898    { 
    9999        $this->argv = $argv; 
    100100    } 
    101101 
    102     public function done()  
     102    public function done() 
    103103    { 
    104104        return empty($this->argv); 
    105105    } 
    106106 
    107     public function get()  
     107    public function get() 
    108108    { 
    109109        return $this->argv[0]; 
    110110    } 
    111111 
    112     public function pop()  
     112    public function pop() 
    113113    { 
    114114        array_shift($this->argv); 
    115115    } 
    116 }  
    117 /** 
    118  * This class is used to collect information to be used when executing the  
     116} 
     117/** 
     118 * This class is used to collect information to be used when executing the 
    119119 * request 
    120120 */ 
     
    136136     */ 
    137137    public $config = array(); 
    138      
     138 
    139139    /** 
    140140     * An array of midcom_url_containers 
     
    146146     * @todo: remove. 
    147147     */ 
    148     public function get_midcom()  
     148    public function get_midcom() 
    149149    { 
    150150        return $this->midcom; 
     
    153153     * Sets the current style of the execution environement. 
    154154     */ 
    155     public function set_style($style)  
     155    public function set_style($style) 
    156156    { 
    157157        if ($this->style_can_override) 
     
    183183     * @param $value value of option 
    184184     */ 
    185     public function add_config($name, $value)  
     185    public function add_config($name, $value) 
    186186    { 
    187187        $this->config[$name] = $value; 
    188188    } 
    189      
     189 
    190190    /** 
    191191     * Getter for config options 
    192192     * @param $name name of option 
    193      * @deafult default value of option,  
     193     * @deafult default value of option, 
    194194     **/ 
    195195    public function get_config($name, $default = false) 
     
    209209     */ 
    210210    public $param_collector = null; 
    211     public function __construct($urlstack, $parser)  
     211    public function __construct($urlstack, $parser) 
    212212    { 
    213213        $this->param_collector = $parser->param_collector; 
     
    219219 
    220220    public function get_param_collector() { 
    221         if ($this->param_collector == null)  
     221        if ($this->param_collector == null) 
    222222        { 
    223223            $this->param_collector= new midcom_url_paramcollector(); 
     
    229229 * This class does not parse anything and used as a placeholder for the last_parser 
    230230 * variable above. 
    231  *  
     231 * 
    232232 */ 
    233233class midcom_url_nullparser  extends midcom_url_parser 
     
    245245 * This class parses any part of the url that is deemed to be related to topics 
    246246 */ 
    247 class midcom_url_topic extends midcom_url_parser  
     247class midcom_url_topic extends midcom_url_parser 
    248248{ 
    249249    public $topics = array(); 
     
    253253        $topic = true; 
    254254        // continue while we got words and they mean something. 
    255         while (($next_word = $urlstack->get()) !== FALSE && $topic )  
     255        while (($next_word = $urlstack->get()) !== FALSE && $topic ) 
    256256        { 
    257257            $topic = $this->check_next_word($next_word); 
     
    260260        $this->get_param_collector()->set_content_topic($this->topics[-1]); 
    261261        $this->get_param_collector()->set_command($this->topics[-1]); 
    262          
    263     } 
    264  
    265      
     262 
     263    } 
     264 
     265 
    266266 
    267267    public function check_next_word($word) { 
     
    275275    } 
    276276 
    277      
     277 
    278278 
    279279 
     
    282282/** 
    283283 * This class parses prefixes like 
    284  * /serveattachment  
     284 * /serveattachment 
    285285 * /midcom-substyle 
    286286 * etc 
    287287 */ 
    288288class midcom_url_midcom extends midcom_url_parser { 
    289      
     289 
    290290    public function __construct($urlstack, $parser) { 
    291291        if (substr($urlstack->get(), 0,7) == 'midcom-') { 
  • trunk/midcom/midcom.helper.replicator/queuemanager.php

    r6033 r14006  
    519519        if (!is_dir($dir)) 
    520520        { 
    521             // Directoty does not exist 
     521            // Directory does not exist 
    522522            return true; 
    523523        } 
  • trunk/midcom/midgard.admin.asgard/reflector_tree.php

    r13956 r14006  
    4444 
    4545    /** 
    46      * Creates a QB instace for get_root_objects and count_root_objects 
     46     * Creates a QB instance for get_root_objects and count_root_objects 
    4747     * 
    4848     * @access private 
     
    459459 
    460460    /** 
    461      * Creates a QB instace for _get_child_objects_type and _count_child_objects_type 
     461     * Creates a QB instance for _get_child_objects_type and _count_child_objects_type 
    462462     * 
    463463     * @access private 
  • trunk/midcom/midgard.admin.wizards/handler/index.php

    r13424 r14006  
    8989     
    9090    /** 
    91      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     91     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    9292     * location. 
    9393     */ 
  • trunk/midcom/net.fernmark.pedigree/handler/dog/admin.php

    r13424 r14006  
    144144 
    145145    /** 
    146      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     146     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    147147     * location. 
    148148     * 
  • trunk/midcom/net.fernmark.pedigree/handler/dog/create.php

    r5984 r14006  
    215215 
    216216    /** 
    217      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     217     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    218218     * location. 
    219219     * 
  • trunk/midcom/net.fernmark.pedigree/handler/index.php

    r13424 r14006  
    7070     
    7171    /** 
    72      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     72     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    7373     * location. 
    7474     * 
  • trunk/midcom/net.fernmark.pedigree/handler/result/admin.php

    r13424 r14006  
    151151 
    152152    /** 
    153      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     153     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    154154     * location. 
    155155     * 
  • trunk/midcom/net.fernmark.pedigree/handler/result/create.php

    r5985 r14006  
    207207 
    208208    /** 
    209      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     209     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    210210     * location. 
    211211     * 
  • trunk/midcom/net.nehmer.account/handler/configuration.php

    r11538 r14006  
    6666 
    6767    /** 
    68      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     68     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    6969     * location. 
    7070     * 
  • trunk/midcom/net.nehmer.blog/handler/admin.php

    r12689 r14006  
    163163 
    164164    /** 
    165      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     165     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    166166     * location. 
    167167     * 
  • trunk/midcom/net.nehmer.blog/handler/create.php

    r12717 r14006  
    224224 
    225225    /** 
    226      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     226     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    227227     * location. 
    228228     * 
  • trunk/midcom/net.nehmer.branchenbuch/handler/entries.php

    r13424 r14006  
    384384 
    385385    /** 
    386      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     386     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    387387     * location. 
    388388     * 
  • trunk/midcom/net.nehmer.jobmarket/handler/entry.php

    r13424 r14006  
    108108 
    109109    /** 
    110      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     110     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    111111     * location. 
    112112     * 
  • trunk/midcom/net.nehmer.marketplace/handler/category.php

    r2810 r14006  
    183183 
    184184    /** 
    185      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     185     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    186186     * location. 
    187187     */ 
  • trunk/midcom/net.nehmer.marketplace/handler/entry.php

    r2907 r14006  
    110110 
    111111    /** 
    112      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     112     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    113113     * location. 
    114114     * 
  • trunk/midcom/net.nehmer.publications/handler/admin.php

    r13424 r14006  
    150150 
    151151    /** 
    152      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     152     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    153153     * location. 
    154154     * 
  • trunk/midcom/net.nehmer.publications/handler/create.php

    r13424 r14006  
    206206 
    207207    /** 
    208      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     208     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    209209     * location. 
    210210     * 
  • trunk/midcom/net.nehmer.static/handler/admin.php

    r13028 r14006  
    163163 
    164164    /** 
    165      * Helper, updates the context so that we get a complete breadcrum line towards the current 
     165     * Helper, updates the context so that we get a complete breadcrumb line towards the current 
    166166     * location. 
    167167     * 
  • trunk/midcom/net.nehmer.static/handler/create.php