Proxy
class Proxy (View source)
Класс прокси
Properties
| protected string | $proxy | Хост | |
| protected string|null | $port | Порт | |
| protected string|null | $username | Пользователь | |
| protected string|null | $password | Пароль |
Methods
static Proxy
create(string $proxy, string $port = NULL, string $username = NULL, string $password = NULL)
Создание объекта прокси
string
get()
Получить прокси в виде строки
void
setAccount(string $userPass, string $user = NULL, string $password = NULL)
Разбивает строку с логином и паролем в массив
void
setAddress(string $hostPort, string $port = NULL)
Разбивает строку с хостом и портом на строку
Details
at line 51
static Proxy
create(string $proxy, string $port = NULL, string $username = NULL, string $password = NULL)
Создание объекта прокси
at line 61
string
get()
Получить прокси в виде строки
at line 85
protected void
setAccount(string $userPass, string $user = NULL, string $password = NULL)
Разбивает строку с логином и паролем в массив
at line 110
protected void
setAddress(string $hostPort, string $port = NULL)
Разбивает строку с хостом и портом на строку