ZenMagick 0.9.8


org.zenmagick.store.services.locale.ZMLanguages
\store\services\locale\ZMLanguages.php at line 34

Class ZMLanguages

ZMObject
└─ZMLanguages

public class ZMLanguages
extends ZMObject

Languages service.

Author:
DerManoMann
Version:
$Id: ZMLanguages.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMLanguages()

Create new instance.

Method Summary
ZMLanguage

getLanguageForCode(string code)

Get language for the given code.

ZMLanguage

getLanguageForId(int id)

Get language for the given id.

array

getLanguages()

Get all languages.

static void

instance()

Get instance.

Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\services\locale\ZMLanguages.php at line 41

ZMLanguages

public ZMLanguages()

Create new instance.


Method Detail

\store\services\locale\ZMLanguages.php at line 93

getLanguageForCode

public ZMLanguage getLanguageForCode(string code)

Get language for the given code.

Parameters:
code - The language code.
Returns:
A language or null.

\store\services\locale\ZMLanguages.php at line 107

getLanguageForId

public ZMLanguage getLanguageForId(int id)

Get language for the given id.

Parameters:
id - The language id.
Returns:
A language or null.

\store\services\locale\ZMLanguages.php at line 79

getLanguages

public array getLanguages()

Get all languages.

Returns:
List of ZMLanguage instances.

\store\services\locale\ZMLanguages.php at line 56

instance

public static void instance()

Get instance.


ZenMagick 0.9.8