Difference between revisions of "Core/getLanguage"
From PunchCMS
(New page: __NOTOC__ ==== PCMS_Client->getLanguage() ==== === Overview === Get the currently active language. === Arguments === None === Returns === A valid Languages object if an active language can...) |
(No difference)
|
Latest revision as of 22:30, 25 December 2008
PCMS_Client->getLanguage()
Overview
Get the currently active language.
Arguments
None
Returns
A valid Languages object if an active language can be found. Otherwise NULL. That way you can test if you get a valid return using the is_object() method.
Example
$objCms = PCMS_Client::getInstance(); $objLanguage = $objCms->getLanguage(); if (is_object($objLanguage)) { // Active language found. }