NAME

Slash - the BEAST


SYNOPSIS

        use Slash;  # figure the rest out ;-)


DESCRIPTION

Slash is the code that runs Slashdot.


FUNCTIONS

printComments(SID [, PID, CID])

Prints all that comment stuff.

Parameters
SID
The story ID to print comments for.

PID
The parent ID of the comments to print.

CID
The comment ID to print.

Return value
None.

Dependencies
The 'printCommentsMain', 'printCommNoArchive', and 'printCommComments' template blocks.

moderatorCommentLog(SID, CID)

Prints a table detailing the history of moderation of a particular comment.

Parameters
SID
Comment's story ID.

CID
Comment's ID.

Return value
The HTML.

Dependencies
The 'modCommentLog' template block.

displayThread(SID, PID, LVL, COMMENTS)

Displays an entire thread. w00p!

Parameters
SID
The story ID.

PID
The parent ID.

LVL
What level of the thread we're at.

COMMENTS
Arrayref of all our comments.

Return value
The thread.

Dependencies
The 'displayThread' template block.

dispComment(COMMENT)

Displays a particular comment.

Parameters
COMMENT
Hashref of comment data. If the 'no_moderation' key of the COMMENT hashref exists, the moderation elements of the comment will not be displayed.

Return value
The comment to display.

Dependencies
The 'dispComment' template block.

dispStory(STORY, AUTHOR, TOPIC, FULL)

Display a story.

Parameters
STORY
Hashref of data about the story.

AUTHOR
Hashref of data about the story's author.

TOPIC
Hashref of data about the story's topic.

FULL
Boolean for show full story, or just the introtext portion.

Return value
Story to display.

Dependencies
The 'dispStory' template block.

displayStory(SID, FULL)

Display a story by SID (frontend to dispStory).

Parameters
SID
Story ID to display.

FULL
Boolean for show full story, or just the introtext portion.

Return value
A list of story to display, hashref of story data, hashref of author data, and hashref of topic data.

getOlderStories(STORIES, SECTION)

Get older stories for older stories box.

Parameters
STORIES
Array ref of the ``essentials'' of the stories to display, gotten from getStoriesEssentials.

SECTION
Hashref of section data.

Return value
The older stories.

Dependencies
The 'getOlderStories' template block.

getData(VALUE [, PARAMETERS, PAGE])

Returns snippets of data associated with a given page.

Parameters
VALUE
The name of the data-snippet to process and retrieve.

PARAMETERS
Data stored in a hashref which is to be passed to the retrieved snippet.

PAGE
The name of the page to which VALUE is associated.

Return value
Returns data snippet with all necessary data interpolated.

Dependencies
Gets little snippets of data, determined by the value parameter, from a data template. A data template is a colletion of data snippets in one template, which are grouped together for efficiency. Each script can have it's own data template (specified by the PAGE parameter). If PAGE is unspecified, snippets will be retrieved from the last page visited by the user as determined by Slash::Apache::User.


BENDER'S TOP TEN MOST FREQUENTLY UTTERED WORDS

  1. ass

  2. daffodil

  3. shiny

  4. my

  5. bite

  6. pimpmobile

  7. up

  8. yours

  9. chumpette

  10. chump