Ferreteria/v2/class/fcPage
< Ferreteria | v2 | class
Jump to navigation
Jump to search
- file: Template:L/ferreteria/file
- extends: Template:L/version
- uses:
- extenders:
Calls
- Template:L/version/method() calls...
- Template:L/version/method(KI_NODE_EVENT_DO_BUILDING), which is defined in...
Code
// NOTE: This is already a sort of vaguely-HTMLish page because it (optionally) does DOCTYPE.
abstract class fcPage extends fcPageElement {
use ftRenderableTree, ftExecutableTree;
// ++ EXECUTION ++ //
public function DoBuilding() {
$this->DoEvent(KI_NODE_EVENT_DO_BUILDING);
}
public function DoFiguring() {
$this->DoEvent(KI_NODE_EVENT_DO_FIGURING);
}
public function DoOutput() {
echo $this->Render();
}
// -- EXECUTION -- //
// ++ CLASSES ++ //
protected function DocTypeClass() {
return 'fcpeDocType';
}
// -- CLASSES -- //
// ++ NODES ++ //
protected function DocTypeNode() {
return $this->Spawn($this->DocTypeClass());
}
// -- NODES -- //
// ++ I/O ++ //
abstract public function AddContentString($s);
abstract public function DoStashedRedirect($url);
/*----
CEMENT
NOTE: All of a Page's contents are subnodes; it has none aside from that.
*/
public function Render() {
return $this->RenderNodes();
}
// -- I/O -- //
}