|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Phoggle
This class represents the entity of a Phoggle, a weblog system. The system is based on the creation of templates, thus separating content from programming logic to a high degree.
To use Phoggle, one first has to create templates and store them in the proper directory, entitled "template". After that, where Phoggle functionality is needed, a prerequiste header of "<? require_once("Phoggle.package"); ?> is to be used. Then, where appropriate, one can call any of the three functions:
<? $phoggle->generateContent(); ?>
<? $phoggle->generateRecent(); ?>
<? $phoggle->generateArchive(); ?>
For more information about details, please reference the API.
| Constructor Summary | |
Phoggle(var $name,
var $password,
var $dbName)
Constructs a Phoggle. |
|
| Method Summary | |
void |
add(var $author,
var $email,
var $content,
var $date,
var $title)
Adds an entry into the database. |
java.lang.String |
generateArchive(var $limit)
Generates archived summaries based on a parsed template. |
java.lang.String |
generateContent(var $limit,
var $start,
var $end)
Generates entries based on a parsed template. |
java.lang.String |
generateRecent(var $limit)
Generates recent entry titles based on a parsed template. |
void |
tableReset()
Resets the information in the database table. |
| Constructor Detail |
public Phoggle(var $name,
var $password,
var $dbName)
$name - String specifying name$password - String specifying password$dbName - String specifying database name| Method Detail |
public java.lang.String generateContent(var $limit,
var $start,
var $end)
$limit - int specifying the limit$start - int specifying UNIX timestamp start date$end - int specifying UNIX timestamp end date$limit - Default Value: 0$start - Default Value: 0$end - Default Value: 0public java.lang.String generateRecent(var $limit)
$limit - int specifying the limit$limit - Default Value: 10public java.lang.String generateArchive(var $limit)
$limit - int specifying the limit$limit - Default Value: 10
public void add(var $author,
var $email,
var $content,
var $date,
var $title)
$author - String specifying the author$email - String specifying the e-mail$content - String specifying the content$date - int specifying the current entry timestamp$title - String specifying the title$email - Default Value: ""$title - Default Value: ""public void tableReset()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||