|
Tv2 documentation | |||||
PREV NEXT | FRAMES NO FRAME | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
tv2Site
Abstract class for pyramid-framework site classes
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 |
private string $method
Method name used in $this->show()
private object $vs
A reference to global vs object
Constructor Detail |
void pyramidSite()
Method Detail |
mixed passthru(mixed $content)
This method is needed when you output something from a module that you don't want site to modify
content
- Data to pass throughvoid setMethod(string $method)
Sets the value of $this->method which is used in $this->show()
method
- method namemixed show(mixed $content)
Takes $content and calls a method on itself
content
- Usually content of a pagestring showError(mixed $content)
Shows error message. One default error code is specified: 404 (page not found)
content
- Error code/messagestring showIndex()
Shows site index page. You should rewrite this method in your classes to suit your needs. Currently it outputs index.tpl
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
content
- The content of the page
|
Tv2 documentation | |||||
PREV NEXT | FRAMES NO FRAME | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This document was generated by phpdocgen 0.17-rc3.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)