Docs For Class Languages

## Languages

Description

Main controller class for stikked.

- author: Ben McRedmond <hello@benmcredmond.com>
- version: 0.5.1
- copyright: Ben McRedmond
- access: public

Located in /models/Languages.php (line 24)

    Model
       |
       --Languages

Method Summary
void __construct ()
Boolean|string code_to_description (string $code)
array get_languages ()
Boolean valid_language (string $lang)
Methods
Constructor __construct (line 33)

Class Constructor

void __construct ()
code_to_description (line 97)

Takes a language code eg. php, cpp, html4 and converts it to its description eg. PHP, C++, Html 4 (Strict).

- access: public

Boolean|string code_to_description (string $code)

- string $code: Paste language

get_languages (line 70)

Gets list of languages from database to generate select field on paste form.

- access: public

array get_languages ()
valid_language (line 47)

Checks if a language is valid, called from the main controller _valid_lang validation callback method

- access: public

Boolean valid_language (string $lang)

- string $lang: Paste language

Documentation generated on Mon, 15 Sep 2008 12:57:44 +0100 by phpDocumentor 1.4.2