WebPages.class.php

Summary
WebPages.class.php
Functions
handle_saveTakes care of saving an entry and handling the uploads, if applicable.
handle_uploadsHandles uploads that are sent when an entry is edited.
handle_pingback_pingsHandles pingbacks for an entry.
show_blog_pageShows the main blog page.
show_comment_pageShow the page of comments on the entry.
show_pingback_pageShow the page of Pingbacks for the entry.
show_trackback_pageShows the page of TrackBacks for the entry.
show_trackback_ping_pageShow the page from which users can send a TrackBack ping.
show_entry_pageHandles displaying the main permalink for a BlogEntry or Article.

Functions

handle_save

protected function handle_save(&$ent,  
&$blg,  
&$errors,  
$is_draft,  
$is_art =  false)

Takes care of saving an entry and handling the uploads, if applicable.

Parameters

entThe current entry object.
blgThe current blog object, i.e. the parent of ent.
errorsReference string parameter to return error messages generated by uploads.

Returns:A boolean or numeric false on failure, non-false on success.

handle_uploads

protected function handle_uploads(&$ent)

Handles uploads that are sent when an entry is edited.  It checks the file uploads and moves them to the entry directory.

Parameters

entThe entry we’re editing.

Returns

If all uploads are successful, returns true.  Otherwise, returns an array of error messages, one element for each upload error.

handle_pingback_pings

function handle_pingback_pings(&$ent)

Handles pingbacks for an entry.  Sends pingbacks to the appropriate links in the entry body, and returns an error string, if applicable.

Parameters

entThe entry in question.

Returns

An error string.  If there were no errors sending any pingbacks, then the null string is returned.

show_blog_page

protected function show_blog_page(&$blog)

Shows the main blog page.  This is typically the front page of the blog.

show_comment_page

protected function show_comment_page(&$blg,
&$ent,
&$usr)

Show the page of comments on the entry.

show_pingback_page

protected function show_pingback_page(&$blg,
&$ent,
&$usr)

Show the page of Pingbacks for the entry.

show_trackback_page

protected function show_trackback_page(&$blg,
&$ent,
&$usr)

Shows the page of TrackBacks for the entry.

show_trackback_ping_page

protected function show_trackback_ping_page(&$blog,
&$ent,
&$usr)

Show the page from which users can send a TrackBack ping.

show_entry_page

protected function show_entry_page(&$blg,
&$ent,
&$usr)

Handles displaying the main permalink for a BlogEntry or Article.

protected function handle_save(&$ent,  
&$blg,  
&$errors,  
$is_draft,  
$is_art =  false)
Takes care of saving an entry and handling the uploads, if applicable.
protected function handle_uploads(&$ent)
Handles uploads that are sent when an entry is edited.
function handle_pingback_pings(&$ent)
Handles pingbacks for an entry.
protected function show_blog_page(&$blog)
Shows the main blog page.
protected function show_comment_page(&$blg,
&$ent,
&$usr)
Show the page of comments on the entry.
protected function show_pingback_page(&$blg,
&$ent,
&$usr)
Show the page of Pingbacks for the entry.
protected function show_trackback_page(&$blg,
&$ent,
&$usr)
Shows the page of TrackBacks for the entry.
protected function show_trackback_ping_page(&$blog,
&$ent,
&$usr)
Show the page from which users can send a TrackBack ping.
protected function show_entry_page(&$blg,
&$ent,
&$usr)
Handles displaying the main permalink for a BlogEntry or Article.
Close