Gumbo_Curl



Curl Class

Author(s): Michael Luster <mluster79@yahoo.com>
License:New BSD License
Copyright:Copyright (c) 2007, iBayou, Michael Luster
Link:http://sourceforge.net/projects/phpgumbo
Version:0.0.1

Implements interfaces:

Class Variables

string $_contents [line 40]
resource $_curl [line 38]
array $_info = array () [line 42]

Class Methods

public Gumbo_Curl __construct ( [string $url] ) [line 50]

Constructor: curl_init()

Parameter(s):

  • (string) $url :: URL to call

[ Top ]
public void __destruct ( ) [line 57]

Destructor: curl_close()


[ Top ]
public bool|string execute ( ) [line 68]

Executes the CURL call, returning the response

Implementation of:
Gumbo_Interface_Curl::execute()

[ Top ]
public string getContents ( ) [line 128]

Returns the contents returned from the CURL call

Implementation of:
Gumbo_Interface_Curl::getContents()

[ Top ]
public resource getCurl ( ) [line 120]

Returns the CURL resource

Implementation of:
Gumbo_Interface_Curl::getCurl()

[ Top ]
public array|string getInfo ( [string $opt] ) [line 146]

Returns information about CURL

Parameter(s):

  • (string) $opt :: CURLINFO_* option
Implementation of:
Gumbo_Interface_Curl::getInfo()

[ Top ]
public array getVersion ( [int $age] ) [line 137]

Returns the CURL version information

Parameter(s):

  • (int) $age
Implementation of:
Gumbo_Interface_Curl::getVersion()

[ Top ]
protected void setContents ( [string $contents] ) [line 80]

Sets the contents returned from a CURL call

Parameter(s):

  • (string) $contents

[ Top ]
public void setOption ( int|array $option, [mixed $value] ) [line 91]

Sets a CURL option

Parameter(s):

  • (int|array) $option :: CURLOPT_* constant
  • (mixed) $value :: primitive type value
  • todo:  verify constants against defined CURL constant types
  • throws:  Gumbo_Exception
Implementation of:
Gumbo_Interface_Curl::setOption()

[ Top ]