Change private vars/methods to protected

pull/193/head^2
Aleksander Machniak 10 years ago
parent b408e0bc53
commit 232bcde1c2

@ -50,17 +50,17 @@ class rcube_imap_generic
public static $mupdate; public static $mupdate;
private $fp; protected $fp;
private $host; protected $host;
private $logged = false; protected $logged = false;
private $capability = array(); protected $capability = array();
private $capability_readed = false; protected $capability_readed = false;
private $prefs; protected $prefs;
private $cmd_tag; protected $cmd_tag;
private $cmd_num = 0; protected $cmd_num = 0;
private $resourceid; protected $resourceid;
private $_debug = false; protected $_debug = false;
private $_debug_handler = false; protected $_debug_handler = false;
const ERROR_OK = 0; const ERROR_OK = 0;
const ERROR_NO = -1; const ERROR_NO = -1;
@ -352,7 +352,7 @@ class rcube_imap_generic
* *
* @return bool True if connection is closed * @return bool True if connection is closed
*/ */
private function eof() protected function eof()
{ {
if (!is_resource($this->fp)) { if (!is_resource($this->fp)) {
return true; return true;
@ -375,7 +375,7 @@ class rcube_imap_generic
/** /**
* Closes connection stream. * Closes connection stream.
*/ */
private function closeSocket() protected function closeSocket()
{ {
@fclose($this->fp); @fclose($this->fp);
$this->fp = null; $this->fp = null;
@ -421,7 +421,7 @@ class rcube_imap_generic
return false; return false;
} }
private function hasCapability($name) protected function hasCapability($name)
{ {
if (empty($this->capability) || $name == '') { if (empty($this->capability) || $name == '') {
return false; return false;
@ -1310,7 +1310,7 @@ class rcube_imap_generic
* @return array List of mailboxes or hash of options if $status_ops argument * @return array List of mailboxes or hash of options if $status_ops argument
* is non-empty. * is non-empty.
*/ */
private function _listMailboxes($ref, $mailbox, $subscribed=false, protected function _listMailboxes($ref, $mailbox, $subscribed=false,
$status_opts=array(), $select_opts=array()) $status_opts=array(), $select_opts=array())
{ {
if (!strlen($mailbox)) { if (!strlen($mailbox)) {
@ -1985,7 +1985,7 @@ class rcube_imap_generic
* *
* @return bool True on success, False on failure * @return bool True on success, False on failure
*/ */
private function modFlag($mailbox, $messages, $flag, $mod = '+') protected function modFlag($mailbox, $messages, $flag, $mod = '+')
{ {
if ($mod != '+' && $mod != '-') { if ($mod != '+' && $mod != '-') {
$mod = '+'; $mod = '+';
@ -3681,7 +3681,7 @@ class rcube_imap_generic
return $result; return $result;
} }
private function _xor($string, $string2) protected function _xor($string, $string2)
{ {
$result = ''; $result = '';
$size = strlen($string); $size = strlen($string);
@ -3700,7 +3700,7 @@ class rcube_imap_generic
* *
* @return string Space-separated list of flags * @return string Space-separated list of flags
*/ */
private function flagsToStr($flags) protected function flagsToStr($flags)
{ {
foreach ((array)$flags as $idx => $flag) { foreach ((array)$flags as $idx => $flag) {
if ($flag = $this->flags[strtoupper($flag)]) { if ($flag = $this->flags[strtoupper($flag)]) {
@ -3752,7 +3752,7 @@ class rcube_imap_generic
/** /**
* CAPABILITY response parser * CAPABILITY response parser
*/ */
private function parseCapability($str, $trusted=false) protected function parseCapability($str, $trusted=false)
{ {
$str = preg_replace('/^\* CAPABILITY /i', '', $str); $str = preg_replace('/^\* CAPABILITY /i', '', $str);
@ -3829,7 +3829,7 @@ class rcube_imap_generic
* *
* @since 0.5-stable * @since 0.5-stable
*/ */
private function debug($message) protected function debug($message)
{ {
if (($len = strlen($message)) > self::DEBUG_LINE_LENGTH) { if (($len = strlen($message)) > self::DEBUG_LINE_LENGTH) {
$diff = $len - self::DEBUG_LINE_LENGTH; $diff = $len - self::DEBUG_LINE_LENGTH;

Loading…
Cancel
Save