本文整理汇总了PHP中Mobile::checkGetMobile方法的典型用法代码示例。如果您正苦于以下问题:PHP Mobile::checkGetMobile方法的具体用法?PHP Mobile::checkGetMobile怎么用?PHP Mobile::checkGetMobile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mobile
的用法示例。
在下文中一共展示了Mobile::checkGetMobile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($mainClass, $DbSetting, $WebSetting, $timezone, $js, $css, $nameSpaceForApps)
{
parent::__construct($mainClass);
//start session if needed
//if(!$this->is_session_started())
// init whats needed //kalau ga perlu bisa dihilangkan tergantung kebutuhan
//set globals
global $activeLang;
//set the active lang dynamically
$this->activeLang = $activeLang;
$this->setGlobalVariables($WebSetting);
//Initialize DB
// DbChooser::setDBSelected();
//DB setting di access di overwrite spy bisa ada choosernya...
//$skolahDB = DbChooser::getDBSelected();
//$DbSetting = $this->arrDBSetting[$skolahDB];
global $DbSetting;
$this->setDB($DbSetting);
//overwrite global variable to set photopath for different schools
global $photo_path;
global $photo_url;
define('_PHOTOPATH', $photo_path);
define('_PHOTOURL', $photo_url);
//Init Template
$this->setTemplate($WebSetting);
//Init Web Parameter
$this->setParams();
//Init Timezone
$this->setTimezone($timezone);
//Init Mobile Check in untuk menentukan default
$this->setHardwareType();
if ($this->getHardwareType() == "mobile") {
Mobile::setMobile(1);
}
//cek to mobile get
Mobile::checkGetMobile();
//$nameSpaceForApps
$this->setNameSpacesForApps($nameSpaceForApps);
//add css and js
$this->template->addFilesToHead($js);
$this->template->addFilesToHead($css);
//run it
//$this->run();
}