Reference

Slash::DB(3pm)

Slash::DB - Database Class for Slash

        use Slash::DB;
        my $object = Slash::DB->new("virtual_user");

This package is the front end interface to slashcode. By looking at the database parameter during creation it determines what type of database to inherit from.
createComment(FORM, USER, POINTS, DEFAULT_USER) This is an awful method. You use it to create a new comments. This will go away. It locks tables, so fear calling it. "Its like a party in my mouth and everyone threw up." FORM, as in a form structure. Pretty much no good reason why we have to pass this. USER, as in a USER structure. Pretty much no good reason why we have to pass this. Points for the comment. Default user to use if the person is being a coward about posting. Return -1 on failure, and maxcid otherwise.
setModeratorLog(CID, SID, UID, VAL, REASON) This set has some logic to it and is not a generic set method. All values must be accounted for or this will not work. Basically this creates an entry in the moderator log. Comment ID. Story ID. UID of the user doing the moderation. Value for moderation Reason for moderation No defined value.
getMetamodComments(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getModeratorCommentLog(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getModeratorLogID(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
unsetModeratorlog(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getContentFilters() This returns all content filters in an array of arrays. It does not return filters that have been created but not defined. This return an array of arrays. The order is currently defined by the schema.
createPollVoter(QID, AID) Increment the poll count for a given answer. QID is a question ID for polls. Answer ID for the poll No defined value.
createSubmission(FORM) This creates a submission. Passing in the form is optional. Standard form structure. No defined value.
getDiscussions(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSessionInstance(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setContentFilter(FORM) Save data into a filter. Optional form. Fixed KEY.
setSectionExtra(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
createAccessLog(OP, DATA) This creates an entry into the access log. Keep in mind that this uses different environmental variables for its entry. Opcode for this entry Optional data for the accesslog Fixed KEY.
getDescriptions(CODETYPE, OPTIONAL, CACHE_FLAG) The mother of all methods for HTML selects. It returns a hash with key pairs pulled from the database. The following are valid types: sortcodes statuscodes tzcodes tzdescription dateformats datecodes commentmodes threshcodes postmodes isolatemodes issuemodes vars topics maillist This is one of the valid types Sometypes have an option flag By placing a value in this parameter you force the database to reload the caches hash for this type. Hash reference filled with the codes.
getUserInstance(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
deleteUser(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getUserAuthenticate(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getNewPasswd(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getUserUID(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getCommentsByUID(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
createContentFilter(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
createUser(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setVar(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setSession(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setBlock(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setDiscussion(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setTemplate(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getCommentChildren(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
deleteComment(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getCommentPid(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setSection(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setStoriesCount(SID, COUNT) You should call this whenever you delete comments belonging to a story with the count of the number of comments you deleted. Valid Story ID Count which will be subtracted from a stories comment count None Returned.
getSectionTitle(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
deleteSubmission(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
deleteSession(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
deleteAuthor(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
deleteTopic(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
revertBlock(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
deleteTemplate(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
deleteSection(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
deleteContentFilter(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
saveTopic(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
saveBlock(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
saveColorBlock(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSectionBlock(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSectionBlocks(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getAuthorDescription(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getPollVoter(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
savePollQuestion(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getPollQuestionList(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getPollAnswers(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getPollQuestions(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
deleteStory(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
deleteStoryAll(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setStory(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSubmissionLast(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
updateFormkeyId(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
createFormkey(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
checkFormkey(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
checkTimesPosted(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
formSuccess(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
formFailure(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
createAbuse(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
checkForm(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
currentAdmin(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getTopNewsstoryTopics(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getPoll(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSubmissionsSections(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSubmissionsPending(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSubmissionCount(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getPortals(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getPortalsCommon(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
countComments(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
countStory(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
checkForMetaModerator(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getAuthorNames(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getStoryByTime(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
countStories(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setModeratorVotes(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setMetaMod(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getModeratorLast(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getModeratorLogRandom(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
countUsers(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
countStoriesStuff(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
countStoriesAuthors(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
countPollquestions(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
createVar(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
deleteVar(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setCommentCleanup(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
countUsersIndexExboxesByBid(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getCommentReply(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getCommentsForUser(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getComments(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getStoriesEssentials(KEY) Get basic information about stories, suitable for displaying headline type information and designed to be fed to getOlderStories. Key, as in the KEY Fixed KEY.
getCommentsTop(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getQuickies(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setQuickies(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSubmissionForUser(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getIsTroll(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
createDiscussion(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
createStory(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
updateStory(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSlashConf(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
autoUrl(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getUrlFromTitle(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getTime(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getDay(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getStoryList(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getPollVotesMax(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getStory(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getAuthor(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getAuthors(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getPollQuestion(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getDiscussion(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getBlock(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getTemplate(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getTemplateByName(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getTopic(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getTopics(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getTemplates(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getContentFilter(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSubmission(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSection(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSections(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getModeratorLog(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getNewStory(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getVar(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
setUser(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getUser(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getStories(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getSessions(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
createBlock(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
createTemplate(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
createMenuItem(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getMenuItems(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getMenus(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
sqlReplace(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
getKeys(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
sqlTableExists(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
sqlSelectColumns(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY.
generatesession(KEY) I am the default documentation, short and stout. Key, as in the KEY Fixed KEY. Slash(3), Slash::DB::Utility(3).

History