models/Langs.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Langs

Package: Models
Langs model
Parent(s)
\Zend_Db_Table
Access
public  
Author
Alexander  
Copyright
2012  
Version
$Id$  

Properties

>VPropertyprotectedstring $_name = 'langs'
table name
Default value'langs'Details
Type
string

Methods

methodpublicaddLang( $data) : void

Add new language

Parameters
NameTypeDescription
$data
methodpublicgetByCode( $code) : object

Get language by code

Parameters
NameTypeDescription
$code
Returns
TypeDescription
objectstdClass
methodpublicgetLangs(mixed $user_id) : \all

Langs::getLangs() Get all user languages

Parameters
NameTypeDescription
$user_idmixed
Returns
TypeDescription
\alluser languages
methodpublicgetLangsList() : array

Get all languager

Returns
TypeDescription
array
methodpublicgetLangsListByCodes(array $codes = array()) : array

Get languages fby codes

Parameters
NameTypeDescription
$codesarray
Returns
TypeDescription
array
methodpublicgetOrigLangsList() : array

Get origin languages

Returns
TypeDescription
array
methodpublicgetOrigLangsListByCodes(array $codes = array()) : array

Get origin languages by codes

Parameters
NameTypeDescription
$codesarray
Returns
TypeDescription
array
methodpublicgetSuggestLanguagesList() : array

List langues

Returns
TypeDescription
array
methodpublicgetUserLangs(integer $user_id) : array

Get all user laguages

Parameters
NameTypeDescription
$user_idinteger
Returns
TypeDescription
array
methodpublicsetLangs(mixed $user_id, mixed $langs_id) : void

Langs::setLangs() Save all user languages

Parameters
NameTypeDescription
$user_idmixed
$langs_idmixed
Documentation was generated by phpDocumentor 2.8.5.