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

Class: Redirect_Composer_Local

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

Class Redirect_Composer_Local

Class Overview

Redirect_Composer_Local is intended to be used for internal redirect within site

Located in /web_site/web_page/redirect_composer_local.class.php [line 25]

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

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_Local   __construct()   Constructor
void   add_param_pair()   Add new parameter pair
void   add_threads_manager_var()   Adds threads manager var to parameters
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 39]

Parameters that will be added to target address

API Tags:
Internal:  
Access:  private


[ Top ]
string   $target [line 32]

Target address

API Tags:
Internal:  
Access:  private


[ Top ]
Methods
Constructor __construct  [line 49]

  Redirect_Composer_Local __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 109]

  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 ]
add_threads_manager_var  [line 146]

  void add_threads_manager_var( Web_Context $context  )

Adds threads manager var to parameters

Parameters:
Web_Context   $context: 

API Tags:
Internal:  
Access:  private


[ Top ]
get_location  [line 64]

  string get_location( Web_Context $context  )

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

Parameters:
Web_Context   $context: 

API Tags:
Access:  public


[ Top ]
get_params  [line 123]

  array get_params( )

Returns all paramteres


API Tags:
Access:  protected


[ Top ]
get_target_address  [line 77]

  string get_target_address( Web_Context $context  )

Returns composed target address with parameters

Parameters:
Web_Context   $context: 

API Tags:
Access:  public


[ Top ]