Core/getLanguage
From PunchCMS
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. }