Changeset 14891

Show
Ignore:
Timestamp:
02/12/08 11:17:45 (10 months ago)
Author:
adrenalin
Message:

Added configuration option for choosing the separating character for
multiple storage

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.helper.datamanager2/documentation/CHANGES

    r13997 r14891  
    88  which might even break existing functionality. 
    99- All items marked with "+" represent completely new features. 
     10 
     112008-02-12 adrenalin 
     12  - Added configuration option for choosing the separating character for multiple storage 
    1013 
    11142007-12-19 adrenalin 
  • trunk/midcom/midcom.helper.datamanager2/type/select.php

    r14335 r14891  
    196196     */ 
    197197    var $multiple_storagemode = 'serialized'; 
     198     
     199    /** 
     200     * Glue that will be used for separating the keys 
     201     *  
     202     * @var string 
     203     * @access public 
     204     */ 
     205    var $multiple_separator = '|'; 
    198206 
    199207    /** 
     
    476484    function _convert_multiple_from_storage($source) 
    477485    { 
    478         $glue = '|'
     486        $glue = $this->multiple_separator
    479487 
    480488        switch ($this->multiple_storagemode) 
     
    537545 
    538546            case 'imploded_wrapped': 
    539                 $glue = '|'
     547                $glue = $this->multiple_separator
    540548                $options = $this->_get_imploded_options(); 
    541549                return "{$glue}{$options}{$glue}"; 
     
    556564    function _get_imploded_options() 
    557565    { 
    558         $glue = '|'
     566        $glue = $this->multiple_separator
    559567 
    560568        if ($this->others) 
     
    580588            { 
    581589                debug_push_class(__CLASS__, __FUNCTION__); 
    582                 debug_add("The option key '{$key}' contained a pipe (|) char, which is not allowed for imploded storage targets. ignoring silently.", 
     590                debug_add("The option key '{$key}' contained the multiple separator ({$this->multiple_separator}) char, which is not allowed for imploded storage targets. ignoring silently.", 
    583591                    MIDCOM_LOG_WARN); 
    584592                debug_pop();