Class Util

Description

Located in /lib/Util.php (line 15)


	
			
Method Summary
 void createAlias (string $alias, string $realId)
 string getPageIdFromAlias (string $alias)
 void getStrings (string $language)
 bool isSupportedLanguage (string $language)
 string selectLanguage ()
Methods
createAlias (line 143)

Adds an alias to the database

  • static:
  • access: public
void createAlias (string $alias, string $realId)
  • string $alias
  • string $realId
getDataConnection (line 41)

Provides centralized access to a static data connection. Opens the connection if it is closed.

  • static:
  • access: public
  • see: Data
Data getDataConnection ()
getPageIdFromAlias (line 123)

Checks database for alias status. Returns true id on match, returns the suspected alias otherwise.

  • static:
  • access: public
string getPageIdFromAlias (string $alias)
  • string $alias
getStrings (line 55)

Loads basic navigation string in the requested language.

  • static:
  • access: public
void getStrings (string $language)
  • string $language
getSupportedLanguages (line 81)

Returns an array of languages that are currently in use in the database.

  • static:
  • access: public
array getSupportedLanguages ()
isSupportedLanguage (line 103)

Returns true if the supplied language is used in the database, false otherwise.

  • static:
  • access: public
bool isSupportedLanguage (string $language)
  • string $language
selectLanguage (line 162)

Selects the language to use for the current session. Uses requested language if possible.

Although the language string is returned, it is best to use Config::getProperty('current language') rather than rely on keeping track of this function's return value.

  • return: Selected language
  • static:
  • access: public
string selectLanguage ()

Documentation generated on Mon, 25 Oct 2004 15:21:44 -0700 by phpDocumentor 1.3.0RC3