本文整理匯總了PHP中SearchEngine::pictures_getAll方法的典型用法代碼示例。如果您正苦於以下問題:PHP SearchEngine::pictures_getAll方法的具體用法?PHP SearchEngine::pictures_getAll怎麽用?PHP SearchEngine::pictures_getAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SearchEngine
的用法示例。
在下文中一共展示了SearchEngine::pictures_getAll方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: SearchEngine
$search = new SearchEngine($sys);
//si l'utilisateur n'est pas connecté
if ($sys->current_user() == null) {
$smarty->display('index.tpl');
} else {
require_once 'app/PicturesHandler.class.php';
$phandler = new PicturesHandler($sys);
//aller chercher les photos de l'utilisateur connecté
$usr = $sys->current_user();
$perms;
//tableau qui stockera si l'utilisateur a certaines permissions
$perms[0] = $sys->permissions_test('admin.user.create');
$perms[1] = $sys->permissions_test('admin.user.read');
$perms[2] = $sys->permissions_test('admin.user.update');
$perms[3] = $sys->permissions_test('admin.user.delete');
$perms[4] = $sys->permissions_test('admin.picture.read');
$perms[5] = $sys->permissions_test('application.picture.upload');
$smarty->assign('perms', $perms);
if (isset($_GET['suppProfil'])) {
$profiles->profiles_delete($_GET['suppProfil']);
}
if (isset($_GET['suppPic'])) {
$phandler->pictures_remove($_GET['suppPic']);
}
$photos = $phandler->pictures_getFolderByUserID($usr['id']);
$listPics = $search->pictures_getAll();
$smarty->assign('tabPics', $listPics);
$smarty->assign('tabPhotos', $photos);
$smarty->assign('name', $usr['login']);
$smarty->display('indexConnecte.tpl');
}