WordPress at Your Fingertips
function is not described

Requests_Auth_Basic::__construct() public WP 1.0

Constructor

{} It's a method of the class: Requests_Auth_Basic{}

No Hooks.

Return

null. Nothing.

Usage

$Requests_Auth_Basic = new Requests_Auth_Basic();
$Requests_Auth_Basic->__construct( $args );
$args(array|null)
Array of user and password. Must have exactly two elements

Code of Requests_Auth_Basic::__construct() WP 5.8

<?php
public function __construct($args = null) {
	if (is_array($args)) {
		if (count($args) !== 2) {
			throw new Requests_Exception('Invalid number of arguments', 'authbasicbadargs');
		}

		list($this->user, $this->pass) = $args;
	}
}