Class templated_webpage

Description

The templated webpage page class

This is a special case of webpage, but is largely deprecated since the better way of using templates is via the kind of mechanism seen in the "site-webpage.php" example file which comes with the Phplib. This method is rather a DIY approach.

Located in /webpage-defs.php (line 1573)

user
   |
   --session
      |
      --webstream
         |
         --templated_webpage
Method Summary
 templated_webpage templated_webpage ([string $path = ""])
 string render ()
 void send ()
 void set_template (string $path)
Variables
Methods
Constructor templated_webpage (line 1579)

Constructor Create a new templated webpage object.

templated_webpage templated_webpage ([string $path = ""])
  • string $path: Path to the template for the webpage
render (line 1616)

Return content to caller

  • return: Webpage content
string render ()
send (line 1607)

Send content to user browser

void send ()
set_template (line 1594)

Set the template file Base webpage content on a template. We echo this to the buffer.

The expected usage is that further programming will then repeatedly call the 'replace' function, to make the customised webpage. After that calling 'send' will deliver it to the end browser.

void set_template (string $path)
  • string $path: Path to the template for the webpage

Inherited Methods

Inherited From webstream

 webstream::webstream()
 webstream::add_content()
 webstream::cache()
 webstream::close_webstream()
 webstream::discard()
 webstream::length()
 webstream::open_webstream()
 webstream::replace()
 webstream::replace_content()
 webstream::reset_webstream()
 webstream::send_errorcode_and_die()
 webstream::send_error_and_die()
 webstream::send_to_browser()
 webstream::send_to_file()
 webstream::webpage_content()

Inherited From session

 session::session()
 session::delete_cookie()
 session::identify_user()
 session::on_logins_exceeded()
 session::recover()
 session::session_clear()
 session::session_create()
 session::session_delete()
 session::session_valid()
 session::set_cookie()
 session::set_cookiename()
 session::set_guest_browser_lifetime()
 session::set_lifetime()
 session::set_sessiontype()

Inherited From user

 user::user()
 user::authenticate()
 user::authenticate_authid()
 user::authenticate_ipaddress()
 user::authenticate_userid()
 user::friendlyName()
 user::get_auth_code()
 user::get_groups()
 user::get_user_by_auth_code()
 user::get_user_by_id()
 user::get_user_by_ip()
 user::group_ids_list()
 user::group_names_list()
 user::ismemberof_group()
 user::ismemberof_group_in()
 user::ismemberof_group_with_id()
 user::isvalid()
 user::set_encrypted_passwords()
 user::set_password()

Documentation generated by phpDocumentor 1.3.0RC3