SiteClass (version 4.0.0mysqli) and Database (5.0.1database-mysqli)


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.

$_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 methods:

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

Examples
dbTables
SiteClass Methods
Additional Files
Analysis and Tracking
Index

Contact Me

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