Jeff PHP framework  0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
language Class Reference

language model class More...

+ Inheritance diagram for language:
+ Collaboration diagram for language:

Public Member Functions

 __construct ($id)
 Constructs a language model instance.

Static Public Member Functions

static get ($registry, $opts=null)
 Get language objects.
static getFromLabel ($label)
 Get language object from label.
static setLanguage ()
 Set the active language.

Detailed Description

language model class

Model fields:

  • id int(8): primary key
  • label varchar(10): short label, i.e. 'I', 'GB'
  • language varchar(50): language full name
  • code varchar(5): language code, i.e. 'en_EN'
  • main int(1): is the main language?
  • active int(1): is active?
Author:
abidibo abidi.nosp@m.bo@g.nosp@m.mail..nosp@m.com
Version:
0.99
Date:
2011-2012

Definition at line 29 of file language.php.


Constructor & Destructor Documentation

Constructs a language model instance.

Parameters:
mixed$idthe object id (primary key value of the record)
Returns:
language instance

Definition at line 37 of file language.php.


Member Function Documentation

static language::get ( registry,
opts = null 
) [static]

Get language objects.

Parameters:
array$optsassociative array of options:
  • where: where clause for the select statement
Returns:
array language objects

Definition at line 52 of file language.php.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static language::getFromLabel ( label) [static]

Get language object from label.

Parameters:
string$labellanguage label
Returns:
mixed language object or null if not found

Definition at line 69 of file language.php.

+ Here is the call graph for this function:

static language::setLanguage ( ) [static]

Set the active language.

Looks for $_GET 'lng' parameter, existing session value or sets the default language

Returns:
string language name

Definition at line 87 of file language.php.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: