phpDocumentor GalleryCore
Helpers
[ class tree: GalleryCore ] [ index: GalleryCore ] [ all elements ]

Class: WebHelper_simple

Source Location: /modules/core/classes/helpers/WebHelper_simple.class

Class WebHelper_simple

Class Overview
Method Summary
void   fetchWebFile()  
void   fetchWebPage()  
void   postToWebPage()  
void   requestWebPage()  
string   _encodePostData()   Encode the post data. For each key/value pair, urlencode both the key and the value and then
void   _parseLocation()   Prepare to follow redirect URL.
array   _parseUrlForFsockopen()   Prepare for fsockopen call.

[ Top ]
Methods
fetchWebFile  [line 44]

  void fetchWebFile( $url, $outputFile, [ $extraHeaders = array()], [ $postDataArray = array()], [ $depth = 0]  )

Parameters:
   $url: 
   $outputFile: 
   $extraHeaders: 
   $postDataArray: 
   $depth: 

API Tags:
See:  GalleryCoreApi::fetchWebFile

Information Tags:
Todo:  We should probably be checking the data we get back against the HTTP Content-Length header to verify that we got all the data we expected.

[ Top ]
fetchWebPage  [line 162]

  void fetchWebPage( $url, [ $extraHeaders = array()], [ $depth = 0]  )

Parameters:
   $url: 
   $extraHeaders: 
   $depth: 

API Tags:
See:  GalleryCoreApi::fetchWebPage


[ Top ]
postToWebPage  [line 199]

  void postToWebPage( $url, $postDataArray, [ $extraHeaders = array()]  )

Parameters:
   $url: 
   $postDataArray: 
   $extraHeaders: 

API Tags:
See:  GalleryCoreApi::postToWebPage


[ Top ]
requestWebPage  [line 235]

  void requestWebPage( $url, [ $requestMethod = 'GET'], [ $requestHeaders = array()], [ $requestBody = '']  )

Parameters:
   $url: 
   $requestMethod: 
   $requestHeaders: 
   $requestBody: 

API Tags:
See:  GalleryCoreApi::requestWebPage


[ Top ]
_encodePostData  [line 217]

  string _encodePostData( array $postDataArray, &$extraHeaders, array $extraHeaders  )

Encode the post data. For each key/value pair, urlencode both the key and the value and then

concatenate together. As per the specification, each key/value pair is separated with an ampersand (&)

Parameters:
array   $postDataArray:  the key/value post data
array   $extraHeaders:  extra headers to pass to the server
   &$extraHeaders: 

API Tags:
Return:  the encoded post data


[ Top ]
_parseLocation  [line 344]

  void _parseLocation( string $location, array $fromComponents, string 2  )

Prepare to follow redirect URL.

Parameters:
string   $location: 
array   $fromComponents:  context we're redirecting from
string   2:  redirect URL


[ Top ]
_parseUrlForFsockopen  [line 316]

  array _parseUrlForFsockopen( string $url  )

Prepare for fsockopen call.

Parameters:
string   $url: 

API Tags:
Return:  url components
Access:  private


[ Top ]

Documentation generated on Fri, 08 Oct 2010 06:12:18 -0700 by phpDocumentor 1.3.0RC6