getCommonVar

Navigation:  Development > Function Reference > Helpers > Utility >

getCommonVar

Previous pageReturn to chapter overviewNext page

Fetch some common values like Country, Day, Hour etc list

 

App::Utility()->getCommonVar(Key)

 

Parameter

Description

Key

Key value can be 'country', 'hours', 'months', 'months_short', 'days'

 

 

See bellow example:

 

//Get country list
$data = App::Utility()->getCommonVar('country');
 
//Get Hour list
$data = App::Utility()->getCommonVar('hours');
 
//Get Month list
$data = App::Utility()->getCommonVar('months');
 
//Get Month list in short form
$data = App::Utility()->getCommonVar('months_short');
 
//Get day list
$data = App::Utility()->getCommonVar('days');