本文整理匯總了PHP中GSession::presentationChargee方法的典型用法代碼示例。如果您正苦於以下問題:PHP GSession::presentationChargee方法的具體用法?PHP GSession::presentationChargee怎麽用?PHP GSession::presentationChargee使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GSession
的用法示例。
在下文中一共展示了GSession::presentationChargee方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: RechargerPresentation
public static function RechargerPresentation()
{
require_once INC_GCSS;
require_once INC_GJS;
require_once PATH_METIER . 'mListePresentationsModules.php';
require_once PATH_METIER . 'mListeTypesPresentationsModules.php';
$valeur = self::GetValeurPage('presentation', 'active');
self::$presentationChargee = true;
// Chargement de la présentation par défaut.
if ($valeur == NULL) {
$mListeTypesPresentationsModules = new mListeTypesPresentationsModules();
$mListeTypesPresentationsModules->AjouterColSelection(COL_ID);
$mListeTypesPresentationsModules->AjouterColSelection(COL_NOMFICHIER);
$mListeTypesPresentationsModules->AjouterFiltreEgal(COL_ACTIF, true);
$mListeTypesPresentationsModules->Charger();
foreach ($mListeTypesPresentationsModules->GetListe() as $mTypePresentationModule) {
GReponse::AjouterElementCSS($mTypePresentationModule->Id(), PATH_SERVER_HTTP . GCss::GetCheminFichierBase() . $mTypePresentationModule->NomFichier() . '.css');
GReponse::AjouterElementJS($mTypePresentationModule->Id(), PATH_SERVER_HTTP . GJs::GetCheminFichierBase() . $mTypePresentationModule->NomFichier() . '.js');
}
} else {
$mListePresentationsModules = new mListePresentationsModules();
$mListePresentationsModules->AjouterColSelection(COL_RESSOURCECSS);
$mListePresentationsModules->AjouterColSelection(COL_RESSOURCEJS);
$mListePresentationsModules->AjouterFiltreEgal(COL_PRESENTATION, $valeur);
$numJointure = $mListePresentationsModules->AjouterJointure(COL_TYPEPRESENTATIONMODULE, COL_ID, 0, SQL_RIGHT_JOIN);
$mListePresentationsModules->AjouterColSelectionPourJointure($numJointure, COL_ID);
$mListePresentationsModules->AjouterFiltreEgalPourJointure($numJointure, COL_ACTIF, true);
$mListePresentationsModules->Charger();
foreach ($mListePresentationsModules->GetListe() as $mPresentationModule) {
if ($mPresentationModule->RessourceCSS() != NULL) {
GReponse::AjouterElementCSS($mPresentationModule->TypePresentationModule()->Id(), PATH_SERVER_HTTP . $mPresentationModule->RessourceCSS());
} else {
GReponse::AjouterElementCSS($mPresentationModule->TypePresentationModule()->Id(), '');
}
if ($mPresentationModule->RessourceJS() != NULL) {
GReponse::AjouterElementJS($mPresentationModule->TypePresentationModule()->Id(), PATH_SERVER_HTTP . $mPresentationModule->RessourceJS());
} else {
GReponse::AjouterElementJS($mPresentationModule->TypePresentationModule()->Id(), '');
}
}
}
}