tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Class: Redirect_Composer

Source Location: /web_site/web_page/redirect_composer.class.php

Class Redirect_Composer

Class Overview

Redirect_Composer's purpose is to compose address for redirection

Located in /web_site/web_page/redirect_composer.class.php [line 28]

Tangra_Class
   |
   --Redirect_Composer
Author(s):
API Tags:
See:  Redirect_Composer_Local

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Tangra_Class

Tangra_Class::get_class_name()
Alias of get_class(). Exist because of historical reasons.
Tangra_Class::__set()
Overides PHP built-in method and just throws exception if called. Purpose - to "forbid" autosetting of nonexisting class properties.

[ Top ]
Property Summary
array   $param_pairs   Parameters that will be added to target address
string   $target   Target address

[ Top ]
Method Summary
Redirect_Composer   __construct()   Constructor
void   add_param_pair()   Add new parameter pair
string   get_location()   Returns composed location that can be used directly by header()
array   get_params()   Returns all paramteres
string   get_target_address()   Returns composed target address with parameters

[ Top ]
Properties
array   $param_pairs [line 43]

Parameters that will be added to target address

API Tags:
Internal:  
Access:  private


[ Top ]
string   $target [line 35]

Target address

API Tags:
Internal:  
Access:  private


[ Top ]
Methods
Constructor __construct  [line 53]

  Redirect_Composer __construct( string $target, [array $param_pairs = array()]  )

Constructor

Parameters:
string   $target:  Target address
array   $param_pairs:  Parameters that will be added to target address ($key => $value pairs)

Information Tags:
Throws:  Tangra_Exception

[ Top ]
add_param_pair  [line 94]

  void add_param_pair( string $key, string $value  )

Add new parameter pair

Parameters:
string   $key:  Parameter name
string   $value:  Parameter value

API Tags:
Access:  public

Information Tags:
Throws:  TE_Key_Already_Exists

[ Top ]
get_location  [line 68]

  string get_location( )

Returns composed location that can be used directly by header()


API Tags:
Access:  public


[ Top ]
get_params  [line 108]

  array get_params( )

Returns all paramteres


API Tags:
Access:  protected


[ Top ]
get_target_address  [line 81]

  string get_target_address( )

Returns composed target address with parameters


API Tags:
Access:  public


[ Top ]