## [Stikked] element index

### Package indexes

- CodeIgniter

All elements
_
top

__construct
  Main::__construct() in main.php
  Class Constructor, loads languages model which is inherited in the pastes model.
__construct
  Iphone::__construct() in iphone.php
  Class Constructor
__construct
  Pastes::__construct() in Pastes.php
__construct
  Languages::__construct() in Languages.php
  Class Constructor

a
top

about
  Main::about() in main.php
  Controller method to load about view.

c
top

cron
  Main::cron() in main.php
  Controller method to run the cron. Requires a valid cron key supplied as an argument in the url.
checkPaste
  Pastes::checkPaste() in Pastes.php
  Checks if a paste exists
code_to_description
  Languages::code_to_description() in Languages.php
  Takes a language code eg. php, cpp, html4 and converts it to its description eg. PHP, C++, Html 4 (Strict).
countPastes
  Pastes::countPastes() in Pastes.php
  Counts pastes in the database to be used when generating pagination
createPaste
  Pastes::createPaste() in Pastes.php
  Creates a paste in the database. This doesn't take any arguments as it's easier to use the input class.
cron
  Pastes::cron() in Pastes.php
  Finds paste that need to be deleted and deletes them.

d
top

download
  Main::download() in main.php
  Controller method to download pastes.

g
top

getLists
  Pastes::getLists() in Pastes.php
  Gets a list of x most recent pastes according to the amount set in the stikked config file.
getPaste
  Pastes::getPaste() in Pastes.php
  Gets a specific paste from the database and all its related meta-data
get_languages
  Languages::get_languages() in Languages.php
  Gets list of languages from database to generate select field on paste form.

i
top

iphone.php
  iphone.php in iphone.php
index
  Main::index() in main.php
  Controller method to load front page.
index
  Iphone::index() in iphone.php
  Displays recent pastes in an iPhone optimized version.
Iphone
  Iphone in iphone.php
  iPhone controller class for stikked.

l
top

Languages.php
  Languages.php in Languages.php
lists
  Main::lists() in main.php
  Controller method to show recent pastes.
Languages
  Languages in Languages.php
  Main controller class for stikked.

m
top

main.php
  main.php in main.php
Main
  Main in main.php
  Main controller class for stikked.

p
top

Process.php
  Process.php in Process.php
Pastes.php
  Pastes.php in Pastes.php
Process
  Process in Process.php
  Source code processing class / Geshi Wrapper
Pastes
  Pastes in Pastes.php
  Main model class for pastes table/stikked.

r
top

raw
  Main::raw() in main.php
  Controller method to load raw pastes.

s
top

syntax
  Process::syntax() in Process.php
  Runs source code through Geshi syntax highlighting engine.

v
top

view
  Iphone::view() in iphone.php
  Displays an individual paste in an iPhone optimized version.
view
  Main::view() in main.php
  Controller method to show a paste.
view_options
  Main::view_options() in main.php
  Displays the page where a user can change their paste viewing settings which are saved to session data.
valid_language
  Languages::valid_language() in Languages.php
  Checks if a language is valid, called from the main controller _valid_lang validation callback method