documents.php File Reference

Go to the source code of this file.

Functions

return< formaction=\"".globalIDtoURL($globalID)."\"method=\"POST\">
$renderedContent</form> 
modulesetup_documents ()
 dox_saveOptions ()
 dox_nextID ()
 dox_renderListOptions ()
 globalID_documents ($splitID)
 globalIDThumbnail_documents ($splitID)

Variables

 $modules_names [] = "Documents"
 $modules_versions [] = "0.1"
 $modules_descriptions [] = "A crosslinked story-tree style documents manager"
 $modules_setup [] = "modulesetup_documents"
 $profilemodules [] = "profilemodule_documents"
 $modules [] = "parse_documents"
 $page_help ["&#92;document(txt1)"] = "Show a single document, with the id txt1"
 $page_help ["&#92;documentlink(txt1)"] = "Show a link to a document with the id txt1. The link text will be the document's title."
 $page_help ["&#92;documentrating(txt1)"] = "Show a list of documents with the rating with the id txt1"
 $page_help ["&#92;documents()"] = "Show a list of documents. This is not normally used by users, in stead it is used internally by the documents module."
 $dox_infofolder = "$module_folder/documents/content/info"
 $dox_datafolder = "$module_folder/documents/content/data"
 $dox_categoryfolder = "$module_folder/documents/categories"
 $dox_options
 break
case togglepublish
case edit
case new
 $panel = new optionsPanel("")
$panel saveTitle = i18n("Create document")
$panel revertTitle = i18n("Reset to defaults")
$panel showHeader = false
 $values ["title"] = $_POST["title"] == "" ? i18n("New title") : stripslashes($_POST["title"])
 $values ["blurb"] = $_POST["blurb"] == "" ? i18n("A description of the document!") : stripslashes($_POST["blurb"])
 $values ["rating"] = $_POST["rating"] == "" ? $dox_options["rating"] : $_POST["rating"]
 $values ["viewLevel"] = $_POST["viewLevel"] == "" ? getUserInfo($viewUser, "dox_viewLevel", $dox_options["viewLevel"]) : $_POST["viewLevel"]
 $values ["commentLevel"] = $_POST["commentLevel"] == "" ? getUserInfo($viewUser, "dox_commentLevel", $dox_options["commentLevel"]) : $_POST["commentLevel"]
 $values ["editLevel"] = $_POST["editLevel"] == "" ? getUserInfo($viewUser, "dox_editLevel", $dox_options["editLevel"]) : $_POST["editLevel"]
 $values ["content"] = $_POST["content"] == "" ? i18n("Write the contents of your document in this field. Formatting help can be found below.") : stripslashes($_POST["content"])
 $document ["blurb"] = $values["blurb"]
 $document ["published"] = false
 $document ["backwardrel"] = array()
 $document ["forwardrel"] = array()
 $document ["owner"] = $viewUser
 $document ["viewLevel"] = $values["viewLevel"]
 $document ["commentLevel"] = $values["commentLevel"]
 $document ["comments"] = array()
 $document ["commentCount"] = 0
 $document ["editLevel"] = $values["editLevel"]
 $document ["authors"] = array($viewUser)
 $document ["categories"] = array()
 $document ["rating"] = $values["rating"]
 $theDocument = new dox_document( 0, $document )
else $renderedContent = $panel->render()
default __pad0__
 $listed = false
 $editCell
 $modules_globalID [] = "globalID_documents"


Function Documentation

dox_nextID (  ) 

Get the next available document ID

Returns:
The document ID

Definition at line 1899 of file documents.php.

References dox_saveOptions().

Here is the call graph for this function:

dox_renderListOptions (  ) 

Definition at line 1907 of file documents.php.

References currentUser(), drawCommand(), globalIDtoURL(), i18n(), and thisPageURL().

Here is the call graph for this function:

dox_saveOptions (  ) 

Definition at line 1885 of file documents.php.

References array_export().

Referenced by dox_nextID(), and modulesetup_documents().

Here is the call graph for this function:

globalID_documents ( splitID  ) 

Definition at line 1964 of file documents.php.

globalIDThumbnail_documents ( splitID  ) 

Return an array of data about the thumbnail for a global ID As the documents don't have thumbnails per se, we simply pass a fitting image directly back

Parameters:
splitID The global ID to check
Returns:
Array containing array

Definition at line 1992 of file documents.php.

References siteURL().

Here is the call graph for this function:

return<formaction=\"".globalIDtoURL($globalID)."\"method=\"POST\"> $renderedContent</form> modulesetup_documents (  ) 


Variable Documentation

$document["rating"] = $values["rating"]

Definition at line 1533 of file documents.php.

$document["categories"] = array()

Definition at line 1532 of file documents.php.

$document["authors"] = array($viewUser)

Definition at line 1531 of file documents.php.

$document["editLevel"] = $values["editLevel"]

Definition at line 1530 of file documents.php.

$document["commentCount"] = 0

Definition at line 1529 of file documents.php.

$document["comments"] = array()

Definition at line 1528 of file documents.php.

$document["commentLevel"] = $values["commentLevel"]

Definition at line 1527 of file documents.php.

$document["viewLevel"] = $values["viewLevel"]

Definition at line 1526 of file documents.php.

$document["owner"] = $viewUser

Definition at line 1525 of file documents.php.

$document["forwardrel"] = array()

Definition at line 1524 of file documents.php.

$document["backwardrel"] = array()

Definition at line 1523 of file documents.php.

$document["published"] = false

Definition at line 1522 of file documents.php.

$document["blurb"] = $values["blurb"]

Definition at line 1521 of file documents.php.

$dox_categoryfolder = "$module_folder/documents/categories"

Definition at line 41 of file documents.php.

$dox_datafolder = "$module_folder/documents/content/data"

Definition at line 38 of file documents.php.

$dox_infofolder = "$module_folder/documents/content/info"

Definition at line 35 of file documents.php.

$dox_options

Definition at line 46 of file documents.php.

Referenced by modulesetup_convention().

$editCell

Initial value:

 "
                                                " . drawCommand( i18n("Delete"), i18n("Delete the document"), globalIDtoURL( "user/$viewUser/documents/delete/" . $theDocument->id ) ) . "
                                                " . drawCommand( i18n("Edit"), i18n("Edit the document"), globalIDtoURL( "user/$viewUser/documents/edit/" . $theDocument->id ) ) . "
                                                " . drawCommand( $publishTitle, i18n("Toggle the published status of the document"), globalIDtoURL( "user/$viewUser/documents/togglepublish/" . $theDocument->id ) ) . ""

Definition at line 1561 of file documents.php.

Referenced by modulesetup_documents().

$listed = false

Definition at line 1548 of file documents.php.

Referenced by modulesetup_documents().

$modules[] = "parse_documents"

Definition at line 28 of file documents.php.

$modules_descriptions[] = "A crosslinked story-tree style documents manager"

Definition at line 23 of file documents.php.

$modules_globalID[] = "globalID_documents"

Definition at line 1963 of file documents.php.

$modules_names[] = "Documents"

Document Handling module for Travelsized CMS

Dan Jensen <admin@leinir.dk> 0.1 30th Dec, 2006

Data structure for documents folder:

documents/ content/ data/* info/* categories/* documents.php <-- Contains all the documents' generic data, title, date, mdate, rating and blurb, for use with listings options.php orphans.php

Definition at line 21 of file documents.php.

$modules_setup[] = "modulesetup_documents"

Definition at line 25 of file documents.php.

$modules_versions[] = "0.1"

Definition at line 22 of file documents.php.

$page_help["&#92;documents()"] = "Show a list of documents. This is not normally used by users, in stead it is used internally by the documents module."

Definition at line 33 of file documents.php.

$page_help["&#92;documentrating(txt1)"] = "Show a list of documents with the rating with the id txt1"

Definition at line 32 of file documents.php.

$page_help["&#92;documentlink(txt1)"] = "Show a link to a document with the id txt1. The link text will be the document's title."

Definition at line 31 of file documents.php.

$page_help["&#92;document(txt1)"] = "Show a single document, with the id txt1"

Definition at line 30 of file documents.php.

$panel = new optionsPanel("")

Definition at line 1454 of file documents.php.

$profilemodules[] = "profilemodule_documents"

Definition at line 26 of file documents.php.

$renderedContent = $panel->render()

$theDocument = new dox_document( 0, $document )

Definition at line 1535 of file documents.php.

Referenced by modulesetup_documents().

$values["content"] = $_POST["content"] == "" ? i18n("Write the contents of your document in this field. Formatting help can be found below.") : stripslashes($_POST["content"])

Definition at line 1465 of file documents.php.

$values["editLevel"] = $_POST["editLevel"] == "" ? getUserInfo($viewUser, "dox_editLevel", $dox_options["editLevel"]) : $_POST["editLevel"]

Definition at line 1464 of file documents.php.

$values["commentLevel"] = $_POST["commentLevel"] == "" ? getUserInfo($viewUser, "dox_commentLevel", $dox_options["commentLevel"]) : $_POST["commentLevel"]

Definition at line 1463 of file documents.php.

$values["viewLevel"] = $_POST["viewLevel"] == "" ? getUserInfo($viewUser, "dox_viewLevel", $dox_options["viewLevel"]) : $_POST["viewLevel"]

Definition at line 1462 of file documents.php.

$values["rating"] = $_POST["rating"] == "" ? $dox_options["rating"] : $_POST["rating"]

Definition at line 1461 of file documents.php.

$values["blurb"] = $_POST["blurb"] == "" ? i18n("A description of the document!") : stripslashes($_POST["blurb"])

Definition at line 1460 of file documents.php.

$values["title"] = $_POST["title"] == "" ? i18n("New title") : stripslashes($_POST["title"])

Definition at line 1459 of file documents.php.

Referenced by modulesetup_documents(), modulesetup_gallery2(), and renderEditor().

default __pad0__

Definition at line 1547 of file documents.php.

Definition at line 1418 of file documents.php.

case edit

Definition at line 1435 of file documents.php.

case new

Definition at line 1451 of file documents.php.

$panel revertTitle = i18n("Reset to defaults")

Definition at line 1456 of file documents.php.

Referenced by optionsPanel::optionsPanel(), and optionsPanel::render().

$panel saveTitle = i18n("Create document")

Definition at line 1455 of file documents.php.

$panel showHeader = false

Definition at line 1457 of file documents.php.

Definition at line 1421 of file documents.php.


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