Simple Web Presenter
An extremely basic CMS
 All Classes Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
PageContent Class Reference

Public Member Functions

 __construct ($content="")
 
 setHeader ($headername, $value)
 
 __toString ()
 

Public Attributes

 $headers = array()
 The headers for the page.
 
 $content
 The content of the page.
 

Detailed Description

Container for headers and content, used for compounding these

Constructor & Destructor Documentation

PageContent::__construct (   $content = "")

Constructs a PageContent object containing only content

Parameters
$contentThe content of this page

Member Function Documentation

PageContent::__toString ( )

Returns a string representation of this object, containing only the content

Returns
the content of the page
PageContent::setHeader (   $headername,
  $value 
)

Sets a header

Parameters
$headernameName of the header
$valueValue for the header

The documentation for this class was generated from the following file: