<?php
class FaqWeb extends SGL_Observer
{
function update($observable)
{
$logMsg = '### Start Observers ' . __CLASS__ . ' ###';
SGL::logMessage($logMsg, PEAR_LOG_DEBUG);
$dbh = SGL_DB::singleton();
$c = SGL_Config::singleton();
$conf = $c->getAll();
// ��Ǩ�ͺ��� module smfweb �١�Դ������������ѧ?
require_once SGL_MOD_DIR . '/main/classes/Main.php';
$oMain = new Main;
if ($oMain->verifyModules('faqweb') === false) {
return;
}
// Get the user id from the current session
$uid = SGL_Session::getUid();
$req = SGL_Request::singleton();
$input = $req->getAll();
$sglManager = $req->getManagerName();
// ������鹡�÷ӧҹ�ͧ Observer
require_once(SGL_MOD_DIR . '/faqweb/classes/Api.php');
$oFaqWebApi = new FaqApi();
require_once('ObserversWeb.php');
doSglActon($sglManager, $oFaqWebApi, $observable, $input);
$logMsg = '### Stop Observers ' . __CLASS__ . ' ###';
SGL::logMessage($logMsg, PEAR_LOG_DEBUG);
}
}
?>
Copyright 2K16 - 2K18 Indonesian Hacker Rulez