shared-pretties.php File Reference

Go to the source code of this file.

Classes

class  breadcrumb
 A simplistic breadcrumb class - used by the breadcrumbs class. More...
class  breadcrumbs
 A simplistic class for handling breadcrumb trails. More...
class  confirmDeleteDialog
 The confirmDeleteDialog class, which creates and manages a dialog used to confirm the deletion of an item. More...

Functions

 globalIDtoBreadcrumb ($globalID, $baseLevel=0)
 renderNavigator ($entryCount, $currentPage, $lowerBound, $upperBound, $entriesPerPage)
 formatTime ($timestamp)
 renderCustomBox ($title, $text, $class, $page_data=true)
 renderInformationBox ($title, $text, $page_data=true)
 renderWarningBox ($title, $text, $page_data=true)
 renderErrorBox ($title, $text, $page_data=true)
 renderQuestionBox ($title, $text, $page_data=true)


Function Documentation

formatTime ( timestamp  ) 

Takes a timestamp, and returns a formatted string containing a time

Parameters:
timestamp A timestamp in integer format (normal UNIX time)
Returns:
string The timestamp formatted pretty

Definition at line 172 of file shared-pretties.php.

References $systemOptions, currentUser(), and i18n().

Referenced by subscriptionsManager::handle(), profilemodule_discuss(), eventsMonth::render(), render(), discussThread::renderBlock(), discussForum::renderBlock(), blogger_entry::renderBlock(), commentHandler::renderCommentsActual(), commentHandler::renderCommentsAdder(), renderEditor(), blogger_entry::renderFull(), blogger_entry::renderTiny(), and renderUpdates().

Here is the call graph for this function:

globalIDtoBreadcrumb ( globalID,
baseLevel = 0 
)

Translates a global ID into an instance of the breadcrumbs class

Parameters:
globalID The global ID to translate into a breadcrumbs trail
baseLevel How deep in you wish to start showing the breadcrumbs.
Returns:
An instance of the breadcrumbs class

Definition at line 104 of file shared-pretties.php.

References globalIDtoURL().

Here is the call graph for this function:

renderCustomBox ( title,
text,
class,
page_data = true 
)

Draws a customised information box (supports setting a class)

Parameters:
title String containing the translated title for the information box
text String containing the translated contents for the information box
class String containing the class you wish to set in place of information
page_data Boolean defining wether the text should be parsed as page_data. Default is true
Returns:
string The rendered information box

Definition at line 202 of file shared-pretties.php.

References parse_page_data().

Referenced by renderErrorBox(), renderInformationBox(), renderQuestionBox(), and renderWarningBox().

Here is the call graph for this function:

renderErrorBox ( title,
text,
page_data = true 
)

Draws an error box

Parameters:
title String containing the translated title for the information box
text String containing the translated contents for the information box
page_data Boolean defining wether the text should be parsed as page_data. Default is true
Returns:
string The rendered information box

Definition at line 255 of file shared-pretties.php.

References renderCustomBox().

Referenced by blogger_entryEditor::render().

Here is the call graph for this function:

renderInformationBox ( title,
text,
page_data = true 
)

Draws an information box

Parameters:
title String containing the translated title for the information box
text String containing the translated contents for the information box
page_data Boolean defining wether the text should be parsed as page_data. Default is true
Returns:
string The rendered information box

Definition at line 227 of file shared-pretties.php.

References renderCustomBox().

Referenced by discussThread::discussThread(), drawProfileHint(), modulesetup_convention(), modulesetup_discuss(), modulesetup_documents(), modulesetup_gallery2(), parse_gallery2(), parse_userlists(), profilemodule_discuss(), SimpleListEditor::render(), render(), discussThread::render(), discussForum::render(), Member::render(), Convention::render(), blogger_userOptions::render(), blogger_entries::render(), SimpleListEditor::renderAdd(), commentHandler::renderCommentsAdder(), SimpleListEditor::renderEdit(), renderEditor(), Member::renderEditor(), Hotel::renderEditor(), Event::renderEditor(), Convention::renderEditor(), blogger_user::renderEditor(), discussForum::renderNewThread(), renderUpdates(), and discussThread::save().

Here is the call graph for this function:

renderNavigator ( entryCount,
currentPage,
lowerBound,
upperBound,
entriesPerPage 
)

renderNavigator will create a navigation bar for pagination...

Parameters:
$entryCount int the total amount of entries
$currentPage int the current page
$lowerBound int the number of the first entry on the page
$upperBound int the number of the last entry on the page
$entriesPerPage int the amount of entries per page
Returns:
string The div containing the navigator

Definition at line 140 of file shared-pretties.php.

References i18n(), and thisPageURL().

Referenced by blogger_entries::render(), and renderUpdates().

Here is the call graph for this function:

renderQuestionBox ( title,
text,
page_data = true 
)

Draws a question box

Parameters:
title String containing the translated title for the information box
text String containing the translated contents for the information box
page_data Boolean defining wether the text should be parsed as page_data. Default is true
Returns:
string The rendered information box

Definition at line 269 of file shared-pretties.php.

References renderCustomBox().

Referenced by confirmDeleteDialog::render(), and commentHandler::renderCommentsDelete().

Here is the call graph for this function:

renderWarningBox ( title,
text,
page_data = true 
)

Draws an warning box

Parameters:
title String containing the translated title for the information box
text String containing the translated contents for the information box
page_data Boolean defining wether the text should be parsed as page_data. Default is true
Returns:
string The rendered information box

Definition at line 241 of file shared-pretties.php.

References renderCustomBox().

Referenced by blogger_entryEditor::render(), and blogger_entry::renderEditor().

Here is the call graph for this function:


Generated on Sun Oct 26 20:33:14 2008 for The Travelsized Content Management System by  doxygen 1.5.5