Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F15172089
class-Page.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Unknown
Size
686 B
Referenced Files
None
Subscribers
None
class-Page.php
View Options
<?php
/**
* A website page
*
* It's useful to print the header, the footer, and who knows
*/
class
Page
{
/**
* Custom arguments
*
* @var array
*/
protected
$args
;
/**
* Constructor
*
* @param array $args Custom arguments
*/
public
function
__construct
(
$args
=
[
]
)
{
$this
->
args
=
$args
;
$this
->
prepare
(
)
;
}
/**
* Do something at startup
*/
protected
function
prepare
(
)
{
// actually nothing. You can override this!
}
/**
* Print the site header
*/
public
function
printHeader
(
)
{
template
(
'header'
,
$this
->
args
)
;
}
/**
* Print the site footer
*/
public
function
printFooter
(
)
{
template
(
'footer'
,
$this
->
args
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Nov 19, 00:59 (15 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263603
Default Alt Text
class-Page.php (686 B)
Attached To
Mode
R16 suckless-php Skeleton/Boilerplate project
Attached
Detach File
Event Timeline