PHP Class Oara\Curl\Access

Author: Carlos Morillo Merino
Show file Open project: fubralimited/php-oara

Public Methods

Method Description
__construct ( $credentials ) \Oara\Curl\Access constructor.
createCookieDir ( $credentials ) Creating the cookie directory
get ( array $urls, integer $deep, $allowEmptyResult = false ) : array Get
getCookiePath ( ) : array
getCookies ( ) : string
getOptions ( ) : array
getPostFields ( array $data ) : string
post ( array $urls, integer $deep, $allowEmptyResult = false ) : array Post
setCookiePath ( $cookiePath )
setCookies ( $data ) : string
setOptions ( $options )

Private Methods

Method Description
keyName ( array $a, $pos ) : mixed
keyPosition ( array $data, $key ) : integer | null

Method Details

__construct() public method

\Oara\Curl\Access constructor.
public __construct ( $credentials )
$credentials

createCookieDir() public method

Creating the cookie directory
public createCookieDir ( $credentials )
$credentials

get() public method

Get
public get ( array $urls, integer $deep, $allowEmptyResult = false ) : array
$urls array
$deep integer
return array

getCookiePath() public method

public getCookiePath ( ) : array
return array

getCookies() public method

public getCookies ( ) : string
return string

getOptions() public method

public getOptions ( ) : array
return array

getPostFields() public method

public getPostFields ( array $data ) : string
$data array
return string

post() public method

Post
public post ( array $urls, integer $deep, $allowEmptyResult = false ) : array
$urls array
$deep integer
return array

setCookiePath() public method

public setCookiePath ( $cookiePath )
$cookiePath

setCookies() public method

public setCookies ( $data ) : string
return string

setOptions() public method

public setOptions ( $options )
$options