Checks if a paste exists
boolean
checkPaste
([int $seg = 2])
-
int
$seg: URL Segment which the paste id is in
Counts pastes in the database to be used when generating pagination
int
countPastes
()
Creates a paste in the database. This doesn't take any arguments as it's easier to use the input class.
String
createPaste
()
Finds paste that need to be deleted and deletes them.
void
cron
()
Gets a list of x most recent pastes according to the amount set in the stikked config file.
array
getLists
([string $root = 'lists/'], [int $seg = 2])
-
string
$root: Url root needed for pagination
-
int
$seg: Segment which determines the page we're on for pagination.
Gets a specific paste from the database and all its related meta-data
array
getPaste
([int $seg = 2], [bool|string $replies = false])
-
int
$seg: URL Segment which the paste id is in
-
bool|string
$replies: False if you don't want to retrieve replies from the database. Paste ID if you do want to retrieve replies from database. Mostly here for legacy support, eg. iPhone views.