本文整理汇总了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(), '');
}
}
}
}