SiteClass (version 5.0.4pdo), Database and dbPdo Methods


SiteClass methods:

While there are a number of methods for each of the major classes there are really only a small handful you will use on a regular bases. The ones most used have some documentation with them.

I usually have this code at the top of my page:

$_site = require_once(getenv("SITELOADNAME"));
$S = new SiteClass($_site);
// Set the properties of $S
$S->title = "test page";
$S->banner = "<h1>$S->title</h1>";
$S->css = "h1 { color: red; }";
$S->b_inlineScript = "console.log('this is a test')";
[$top, $footer] = $S->getPageTopBottom();
echo <<<EOF
$top
<p>Some test stuff</p>
$footer
EOF;

getPageTopBottom() calls getPageHead(), getPageBanner(), getPageFooter().

Database and dbPdo methods:

while([$name, $email] = $S->fetchrow('num')) { ... }

dbTables
Additional Files
Index

Contact Me

Barton Phillips : bartonphillips@gmail.com Copyright © 2025 Barton Phillips
Project maintained by bartonlp
Last modified January 1, 2025