POP3::__construct()publicWP 1.0

PHP5 constructor.

Метод класса: POP3{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$POP3 = new POP3();
$POP3->__construct ( $server, $timeout );
$server **
-
По умолчанию: ''
$timeout **
-
По умолчанию: ''

Код POP3::__construct() WP 6.5.2

function __construct ( $server = '', $timeout = '' ) {
    settype($this->BUFFER,"integer");
    if( !empty($server) ) {
        // Do not allow programs to alter MAILSERVER
        // if it is already specified. They can get around
        // this if they -really- want to, so don't count on it.
        if(empty($this->MAILSERVER))
            $this->MAILSERVER = $server;
    }
    if(!empty($timeout)) {
        settype($timeout,"integer");
        $this->TIMEOUT = $timeout;
        if(function_exists("set_time_limit")){
            set_time_limit($timeout);
        }
    }
    return true;
}