Implement common setters for debug mode

pull/1/head
thomascube 13 years ago
parent 3fe6c7082c
commit 06744da241

@ -316,6 +316,19 @@ class rcube_imap
}
/**
* Activate/deactivate debug mode
*
* @param boolean $dbg True if IMAP conversation should be logged
* @access public
*/
function set_debug($dbg = true)
{
$this->options['debug'] = $dbg;
$this->conn->setDebug($dbg, array($this, 'debug_handler'));
}
/**
* Set default message charset
*

@ -1357,6 +1357,18 @@ class rcube_ldap extends rcube_addressbook
}
/**
* Activate/deactivate debug mode
*
* @param boolean $dbg True if LDAP commands should be logged
* @access public
*/
function set_debug($dbg = true)
{
$this->debug = $dbg;
}
/**
* Quotes attribute value string
*

Loading…
Cancel
Save