Class Tx_ExtBibsonomyCsl_Url

Description

Class for URL representation

Located in /Classes/Lib/Url.php (line 33)


	
			
Variable Summary
array $components
array $settings
Method Summary
static string http_build_url (array $components)
static void initInstanceWithComponents ( $components)
Tx_ExtBibsonomyCsl_Url __construct (mixed $settings, [string $url = null])
string getAuthPass ()
string getAuthUser ()
string getUrl ()
string getUrlWithoutAuth ()
string __toString ()
Variables
array $components (line 40)
  • access: protected
array $settings (line 47)

Flexform settings arrays

  • access: protected
Methods
static method http_build_url (line 67)

Builds an url from an associatice array like parse_url() returns.

This method is a reproduction from pecl_http method "http_build_url" (http://pecl.php.net/http)

The associative components array can have the following keys:

  • schmeme (i.e. http)
  • user
  • pass
  • host (example.com)
  • port
  • path (/the/path/)
  • query (var1=value1&var2=value2)
  • fragment (#chapter1)

  • return: URL string
  • access: public
static string http_build_url (array $components)
  • array $components: in form of an associative array like parse_url() returns
static method initInstanceWithComponents (line 117)
  • access: public
static void initInstanceWithComponents ( $components)
  • $components
Constructor __construct (line 99)

Constructor

  • access: public
Tx_ExtBibsonomyCsl_Url __construct (mixed $settings, [string $url = null])
  • string $url
  • mixed $settings: array for FlexForm settings or null when using url string
getAuthPass (line 208)

returns password for authentication

  • access: public
string getAuthPass ()
getAuthUser (line 200)

returns user name for authentication

  • access: public
string getAuthUser ()
getUrl (line 216)

returns whole url

  • access: public
string getUrl ()
getUrlWithoutAuth (line 184)

returns url string without user and passwort part

  • access: public
string getUrlWithoutAuth ()
initForBibsonomyAPI (line 127)

Uses the settings array

  1. $this->settings
with flexform input data sets up an url for accessing Bibsonomy API.

  • throws: Tx_ExtBibsonomyCsl_Domain_Exception_AuthenticationException
  • access: private
void initForBibsonomyAPI ()
__toString (line 225)
  • access: public
string __toString ()

Documentation generated on Thu, 13 Dec 2012 15:46:35 +0100 by phpDocumentor 1.4.4