Changeset 5397 in subversion


Ignore:
Timestamp:
Nov 8, 2011 5:46:03 AM (20 months ago)
Author:
thomasb
Message:

Implement common setters for debug mode

Location:
trunk/roundcubemail/program/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_imap.php

    r5396 r5397  
    318318 
    319319    /** 
     320     * Activate/deactivate debug mode 
     321     * 
     322     * @param boolean $dbg True if IMAP conversation should be logged 
     323     * @access public 
     324     */ 
     325    function set_debug($dbg = true) 
     326    { 
     327        $this->options['debug'] = $dbg; 
     328        $this->conn->setDebug($dbg, array($this, 'debug_handler')); 
     329    } 
     330 
     331 
     332    /** 
    320333     * Set default message charset 
    321334     * 
  • trunk/roundcubemail/program/include/rcube_ldap.php

    r5392 r5397  
    13591359 
    13601360    /** 
     1361     * Activate/deactivate debug mode 
     1362     * 
     1363     * @param boolean $dbg True if LDAP commands should be logged 
     1364     * @access public 
     1365     */ 
     1366    function set_debug($dbg = true) 
     1367    { 
     1368        $this->debug = $dbg; 
     1369    } 
     1370 
     1371 
     1372    /** 
    13611373     * Quotes attribute value string 
    13621374     * 
Note: See TracChangeset for help on using the changeset viewer.