Changeset 655 in subversion


Ignore:
Timestamp:
Jul 30, 2007 7:04:40 AM (6 years ago)
Author:
till
Message:

# func.inc:

  • needed to reference rcmail_search_form to class rc_main

+ rcmail_template:

  • implemented calls so handlers can be static methods from classes
  • so we can OO roundcube completely
  • mail.html
    • removed a linebreak
Location:
branches/devel-vnext
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-vnext/program/include/rcmail_template.inc

    r651 r655  
    524524                    return call_user_func($this->object_handlers[$object], $attrib); 
    525525                } 
     526                else { 
     527                    // we are calling a class/method 
     528                    if ($this->object_handlers[$object] && is_array($this->object_handlers[$object])) { 
     529                        if (class_exists($this->object_handlers[$object][0])) { 
     530                            return call_user_func($this->object_handlers[$object], $attrib); 
     531                        } 
     532                        rc_main::tfk_debug('Unknown handler: ' . var_export($this->object_handlers[$object], true)); 
     533                    } 
     534                } 
    526535                if ($object=='productname') { 
    527536                    $name = !empty($this->config['product_name']) ? $this->config['product_name'] : 'RoundCube Webmail'; 
  • branches/devel-vnext/program/steps/mail/func.inc

    r631 r655  
    18531853  'messagepartframe' => 'rcmail_message_part_frame', 
    18541854  'messagepartcontrols' => 'rcmail_message_part_controls', 
    1855   'searchform' => 'rcmail_search_form' 
     1855  'searchform' => array('rc_main', 'rcmail_search_form') 
    18561856)); 
    18571857 
  • branches/devel-vnext/skins/default/templates/mail.html

    r589 r655  
    2222 
    2323<div id="quicksearchbar"> 
    24 <roundcube:object name="searchform" type="search" results="5" id="quicksearchbox" /><roundcube:button command="reset-search" id="searchreset" image="/images/icons/reset.gif" title="resetsearch" /> 
     24<roundcube:object name="searchform" type="search" results="5" id="quicksearchbox" /> 
     25<roundcube:button command="reset-search" id="searchreset" image="/images/icons/reset.gif" title="resetsearch" /> 
    2526</div> 
    2627 
Note: See TracChangeset for help on using the changeset viewer.