|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Collaboration diagram for POP3:Public Member Functions | |
| authorise ($host, $port=false, $timeout=false, $username='', $password='', $debug_level=0) | |
| Authenticate with a POP3 server. More... | |
| connect ($host, $port=false, $tval=30) | |
| Connect to a POP3 server. More... | |
| login ($username='', $password='') | |
| Log in to the POP3 server. More... | |
| disconnect () | |
| Disconnect from the POP3 server. More... | |
| getErrors () | |
| Get an array of error messages, if any. More... | |
Static Public Member Functions | |
| static | popBeforeSmtp ( $host, $port=false, $timeout=false, $username='', $password='', $debug_level=0) |
| Simple static wrapper for all-in-one POP before SMTP. More... | |
Data Fields | |
| $Version = '5.2.22' | |
| $POP3_PORT = 110 | |
| $POP3_TIMEOUT = 30 | |
| $CRLF = "\r\n" | |
| $do_debug = 0 | |
| $host | |
| $port | |
| $tval | |
| $username | |
| $password | |
| const | CRLF = "\r\n" |
| Line break constant. More... | |
Protected Member Functions | |
| getResponse ($size=128) | |
| Get a response from the POP3 server. More... | |
| sendString ($string) | |
| Send raw data to the POP3 server. More... | |
| checkResponse ($string) | |
| Checks the POP3 server response. More... | |
| setError ($error) | |
| Add an error to the internal error store. More... | |
| catchWarning ($errno, $errstr, $errfile, $errline) | |
| POP3 connection error handler. More... | |
Protected Attributes | |
| $pop_conn | |
| $connected = false | |
| $errors = array() | |
Definition at line 30 of file class.pop3.php.
| POP3::authorise | ( | $host, | |
$port = false, |
|||
$timeout = false, |
|||
$username = '', |
|||
$password = '', |
|||
$debug_level = 0 |
|||
| ) |
Authenticate with a POP3 server.
A connect, login, disconnect sequence appropriate for POP-before SMTP authorisation. @access public
| string | $host | The hostname to connect to |
| integer | boolean | $port | The port number to connect to |
| integer | boolean | $timeout | The timeout value |
| string | $username | |
| string | $password | |
| integer | $debug_level |
Definition at line 165 of file class.pop3.php.
References $host, $password, $POP3_PORT, $POP3_TIMEOUT, $port, $result, $username, connect(), disconnect(), and login().
Referenced by popBeforeSmtp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
POP3 connection error handler.
| integer | $errno | |
| string | $errstr | |
| string | $errfile | |
| integer | $errline | @access protected |
Definition at line 397 of file class.pop3.php.
References setError().
Here is the call graph for this function:
|
protected |
Checks the POP3 server response.
Looks for for +OK or -ERR.
| string | $string |
Definition at line 348 of file class.pop3.php.
References setError().
Referenced by connect(), and login().
Here is the call graph for this function:
Here is the caller graph for this function:| POP3::connect | ( | $host, | |
$port = false, |
|||
$tval = 30 |
|||
| ) |
Connect to a POP3 server.
@access public
| string | $host | |
| integer | boolean | $port | |
| integer | $tval |
Definition at line 207 of file class.pop3.php.
References $host, $POP3_PORT, $port, $tval, checkResponse(), getResponse(), and setError().
Referenced by authorise().
Here is the call graph for this function:
Here is the caller graph for this function:| POP3::disconnect | ( | ) |
Disconnect from the POP3 server.
@access public
Definition at line 296 of file class.pop3.php.
References sendString().
Referenced by authorise().
Here is the call graph for this function:
Here is the caller graph for this function:| POP3::getErrors | ( | ) |
Get an array of error messages, if any.
Definition at line 384 of file class.pop3.php.
References $errors.
|
protected |
Get a response from the POP3 server.
$size is the maximum number of bytes to retrieve
| integer | $size |
Definition at line 315 of file class.pop3.php.
References $size.
Referenced by connect(), and login().
Here is the caller graph for this function:| POP3::login | ( | $username = '', |
|
$password = '' |
|||
| ) |
Does not support APOP (RFC 2828, 4949). @access public
| string | $username | |
| string | $password |
Definition at line 266 of file class.pop3.php.
References $password, $username, checkResponse(), getResponse(), sendString(), and setError().
Referenced by authorise().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Simple static wrapper for all-in-one POP before SMTP.
| $host | ||
| integer | boolean | $port | The port number to connect to |
| integer | boolean | $timeout | The timeout value |
| string | $username | |
| string | $password | |
| integer | $debug_level |
Definition at line 140 of file class.pop3.php.
References $host, $password, $port, $username, and authorise().
Here is the call graph for this function:
|
protected |
Send raw data to the POP3 server.
| string | $string |
Definition at line 330 of file class.pop3.php.
Referenced by disconnect(), and login().
Here is the caller graph for this function:
|
protected |
Add an error to the internal error store.
Also display debug output if it's enabled.
| $error | @access protected |
Definition at line 368 of file class.pop3.php.
Referenced by catchWarning(), checkResponse(), connect(), and login().
Here is the caller graph for this function:
|
protected |
Definition at line 116 of file class.pop3.php.
| POP3::$CRLF = "\r\n" |
Definition at line 59 of file class.pop3.php.
| POP3::$do_debug = 0 |
Definition at line 67 of file class.pop3.php.
|
protected |
Definition at line 123 of file class.pop3.php.
Referenced by getErrors().
| POP3::$host |
Definition at line 74 of file class.pop3.php.
Referenced by authorise(), connect(), and popBeforeSmtp().
| POP3::$password |
Definition at line 102 of file class.pop3.php.
Referenced by authorise(), login(), and popBeforeSmtp().
| POP3::$POP3_PORT = 110 |
Definition at line 44 of file class.pop3.php.
Referenced by authorise(), and connect().
| POP3::$POP3_TIMEOUT = 30 |
Definition at line 51 of file class.pop3.php.
Referenced by authorise().
|
protected |
Definition at line 109 of file class.pop3.php.
| POP3::$port |
Definition at line 81 of file class.pop3.php.
Referenced by authorise(), connect(), and popBeforeSmtp().
| POP3::$tval |
Definition at line 88 of file class.pop3.php.
Referenced by connect().
| POP3::$username |
Definition at line 95 of file class.pop3.php.
Referenced by authorise(), login(), and popBeforeSmtp().
| POP3::$Version = '5.2.22' |
Definition at line 37 of file class.pop3.php.
| const POP3::CRLF = "\r\n" |
Line break constant.
Definition at line 128 of file class.pop3.php.