Class AkLocaleManager

(line 27)

Description

AkObject
   |
   --AkLocaleManager

Located in File: /AkLocaleManager.php

Allows for __construct and __destruct to be used in PHP4.

A hack to support __construct() on PHP 4 Hint: descendant classes have no PHP4 class_name() constructors, so this one gets called first and calls the top-layer __construct() which (if present) should call parent::__construct()



Class Variables

Summary:

$available_locales = array(AK_FRAMEWORK_LANGUAGE=>array(AK_FRAMEWORK_LANGUAGE)) (line 30)

Data type : mixed

$browser_lang = array(AK_FRAMEWORK_LANGUAGE) (line 31)

Data type : mixed

Class Constants

Summary:

Method Detail

Summary:
void getLangFromUrl ( &$Request)
void getLocaleFromAlias ( $alias)
array getPublicLocales ()
void getUsedLanguageEntries ([ $lang_entry = null], [ $controller = null])
void init ()
void _canUseLocaleOnCurrentRequest ( $lang,  &$Request)
void _getLocaleForRequest ( &$Request)
void _parseLocaleConfigString ( $locale_settings)

Method getBrowserLanguages (line 88)

void getBrowserLanguages( )

Info

Method getDefaultLanguageForUser (line 99)

void getDefaultLanguageForUser( )

Info

Method getLangFromUrl (line 320)

void getLangFromUrl( &$Request)

Parameters

  • &$Request:

Info

Method getLocaleFromAlias (line 373)

void getLocaleFromAlias( $alias)

Parameters

  • $alias:

Info

Method getNavigationLanguage (line 363)

void getNavigationLanguage( )

Info

Method getPublicLocales (line 281)

array getPublicLocales( )

Returns an array which locales enabled on the public website.

In order to define available languages you must define AK_PUBLIC_LOCALES which a comma-separated list of locales

Info

Method getUsedLanguageEntries (line 130)

void getUsedLanguageEntries( [ $lang_entry = null], [ $controller = null])

Parameters

  • $lang_entry:
  • $controller:

Info

Method init (line 33)

void init( )

Info

Method initApplicationInternationalization (line 261)

void initApplicationInternationalization( &$Request)

The following functions are for handling i18n when using url based interfaces

Parameters

  • &$Request:

Info

Method rememberNavigationLanguage (line 356)

void rememberNavigationLanguage( $lang)

Parameters

  • $lang:

Info

Method updateLocaleFiles (line 148)

void updateLocaleFiles( )

Info

  • todo - Refactor this method

Method _canUseLocaleOnCurrentRequest (line 314)

void _canUseLocaleOnCurrentRequest( $lang, &$Request)

Parameters

  • $lang:
  • &$Request:

Info

Method _getAvailableLocales (line 42)

void _getAvailableLocales( )

Info

Method _getDefaultLocale (line 122)

void _getDefaultLocale( )

Info

Method _getLocaleForRequest (line 292)

void _getLocaleForRequest( &$Request)

Parameters

  • &$Request:

Info

Method _parseLocaleConfigString (line 61)

void _parseLocaleConfigString( $locale_settings)

Parameters

  • $locale_settings:

Info

Inherited Variables

Inherited Class Variable Summary

Inherited Methods

Inherited Method Summary

Inherited From Class AkObject

AkObject::AkObject() - A hack to support __construct() on PHP 4

AkObject::__construct() - Class constructor, overriden in descendant classes

AkObject::freeMemory() - Unsets circular reference children that are not freed from memory when calling unset() or when the parent object is garbage collected.

AkObject::log() -

AkObject::toString() - Object-to-string conversion

AkObject::__clone() - Clone class (Zend Engine 2 compatibility trick)

AkObject::__destruct() - Class destructor, overriden in descendant classes

AkObject::__toString() -



Documentation generated on Tue, 17 Jun 2008 14:25:57 +0200 by phpDocumentor 1.3.2