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

Class: Web_Site

Source Location: /web_site/web_site.class.php

Class Web_Site

Class Overview

Web_Site class represents the abstact concept of Web site.

Web_Site is one of the most important classes in Tangra Framework. It provides basic functionality that makes from a bunch of scripts one integral unit - Site.

Located in /web_site/web_site.class.php [line 55]

Tangra_Class
   |
   --Web_Site
Author(s):
API Tags:
Abstract:  

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
Web_Site_Config   $_config   Web_Site_Config
Web_Site_Context   $_context   Web_Site_Context

[ Top ]
Method Summary
Web_Site   __construct()   Constructor
Web_Context   get__context()   Returns reference to context
void   handle_exception()   Handles occurence of exception
void   init()   This is the place for any runtime initializations
void   init_current_request_params()   Captures various server variables and composes base url (that will be exporded as value fo HTML <head><base>)
void   run()   Run() is intended ro run Web_Page instances.
void   run_other()   Run other is intended to run all kind of Web_Ctrl objects like Ajax_Ctrl for example
void   set_context()   Sets context

[ Top ]
Properties
Web_Site_Config   $_config [line 62]

Web_Site_Config

API Tags:
Internal:  
Access:  protected


[ Top ]
Web_Site_Context   $_context [line 69]

Web_Site_Context

API Tags:
Internal:  
Access:  private


[ Top ]
Methods
Constructor __construct  [line 77]

  Web_Site __construct( Web_Site_Config &$config, Web_Site_Config $config  )

Constructor

Parameters:
Web_Site_Config   $config: 
Web_Site_Config   &$config: 


[ Top ]
get__context  [line 216]

  Web_Context get__context( )

Returns reference to context


API Tags:
Access:  public


[ Top ]
handle_exception  [line 162]

  void handle_exception( $e  )

Handles occurence of exception

If site is in development monde - prints the exception If site is in production mode - redirects to error page specified in Web_Site_Config

Parameters:
Exception   $e: 

API Tags:
See:  Web_Site_Config::set_site_mode()
See:  Web_Site_Config::set_server_error_page()
Internal:  
Access:  protected


[ Top ]
init  [line 235]

  void init( )

This is the place for any runtime initializations


API Tags:
Abstract:  
Access:  protected


[ Top ]
init_current_request_params  [line 184]

  void init_current_request_params( )

Captures various server variables and composes base url (that will be exporded as value fo HTML <head><base>)


API Tags:
Internal:  
Access:  protected


[ Top ]
run  [line 88]

  void run( Web_Page $page, Web_Context $context  )

Run() is intended ro run Web_Page instances.

Parameters:
Web_Page   $page: 
Web_Context   $context: 

API Tags:
Access:  public


[ Top ]
run_other  [line 131]

  void run_other( Web_Ctrl $object, Web_Context $context  )

Run other is intended to run all kind of Web_Ctrl objects like Ajax_Ctrl for example

Parameters:
Web_Ctrl   $object: 
Web_Context   $context: 

API Tags:
Access:  public


[ Top ]
set_context  [line 226]

  void set_context( Web_Context $context  )

Sets context

Parameters:
Web_Context   $context: 

API Tags:
Access:  protected


[ Top ]