Overview   Package   Tree   Index 
Tv2 documentation
PREV  NEXT FRAMES  NO FRAME 
SUMMARY:  FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

pyramid-framework
Class pyramidSite

Direct Known Subclasses:
tv2Site

class pyramidSite

Abstract class for pyramid-framework site classes

Authors:
Emilis Dambauskas (emilis@gildija.lt)
Version:
$Id: pyramidSite.class.php,v 1.1 2003/07/05 09:46:53 lunaticlt Exp $
Copyright:
2002–2003 Emilis Dambauskas under Artistic license

Field Summary
private string$method
Method name used in $this->show()
private object$vs
A reference to global vs object

Constructor Summary
void pyramidSite()
 

Method Summary
mixed passthru(mixed $content)
This method is needed when you output something from a module that you don't want site to modify
void setMethod(string $method)
Sets the value of $this->method which is used in $this->show()
mixed show(mixed $content)
Takes $content and calls a method on itself
string showError(mixed $content)
Shows error message.
string showIndex()
Shows site index page.
string showPage(mixed $content)
You should rewrite this method in your classes to suit your needs.


Field Detail

method

private string $method

Method name used in $this->show()


vs

private object $vs

A reference to global vs object


Constructor Detail

pyramidSite()

void pyramidSite()

Uses the global variables:
vs

Method Detail

passthru()

mixed passthru(mixed $content)

This method is needed when you output something from a module that you don't want site to modify

Parameters:
content - Data to pass through
Returns:
Whatever $content is

setMethod()

void setMethod(string $method)

Sets the value of $this->method which is used in $this->show()

Parameters:
method - method name

show()

mixed show(mixed $content)

Takes $content and calls a method on itself

Parameters:
content - Usually content of a page
Returns:
Whatever the called method returns

showError()

string showError(mixed $content)

Shows error message. One default error code is specified: 404 (page not found)

Parameters:
content - Error code/message
Returns:
Error page

showIndex()

string showIndex()

Shows site index page. You should rewrite this method in your classes to suit your needs. Currently it outputs index.tpl

Returns:
Index page contents

showPage()

string showPage(mixed $content)

You should rewrite this method in your classes to suit your needs. Currently it takes $content, forces it to become array and uses it in template page.tpl

Parameters:
content - The content of the page
Returns:

 Overview   Package   Tree   Index 
Tv2 documentation
PREV  NEXT FRAMES  NO FRAME 
SUMMARY:  FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Submit a bug

This document was generated by phpdocgen 0.17-rc3.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)