本文整理汇总了PHP中CAppPlugins::getInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP CAppPlugins::getInstance方法的具体用法?PHP CAppPlugins::getInstance怎么用?PHP CAppPlugins::getInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAppPlugins
的用法示例。
在下文中一共展示了CAppPlugins::getInstance方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add
function add($actor, $target, $title, $content, $appname = '', $cid = 0, $params = '', $points = 1, $access = 0)
{
jimport('joomla.utilities.date');
$db =& $this->getDBO();
$today =& JFactory::getDate();
$obj = new StdClass();
$obj->actor = $actor;
$obj->target = $target;
$obj->title = $title;
$obj->content = $content;
$obj->app = $appname;
$obj->cid = $cid;
$obj->params = $params;
$obj->created = $today->toMySQL();
$obj->points = $points;
$obj->access = $access;
// Trigger for onBeforeStreamCreate event.
CFactory::load('libraries', 'apps');
$appsLib =& CAppPlugins::getInstance();
$appsLib->loadApplications();
$params = array();
$params[] =& $obj;
$result = $appsLib->triggerEvent('onBeforeStreamCreate', $params);
if (in_array(true, $result) || empty($result)) {
return $db->insertObject('#__community_activities', $obj);
}
return false;
}
示例2: update
/**
* Update the user status
*
* @param int user id
* @param string the message. Should be < 140 char (controller check)
*/
function update($id, $status)
{
$db =& $this->getDBO();
$my = CFactory::getUser();
// @todo: posted_on should be constructed to make sure we take into account
// of Joomla server offset
// Current user and update id should always be the same
CError::assert($my->id, $id, 'eq', __FILE__, __LINE__);
// Trigger onStatusUpdate
require_once COMMUNITY_COM_PATH . DS . 'libraries' . DS . 'apps.php';
$appsLib =& CAppPlugins::getInstance();
$appsLib->loadApplications();
$args = array();
$args[] = $my->id;
// userid
$args[] = $my->getStatus();
// old status
$args[] = $status;
// new status
$appsLib->triggerEvent('onProfileStatusUpdate', $args);
$today =& JFactory::getDate();
$data = new stdClass();
$data->userid = $id;
$data->status = $status;
$data->posted_on = $today->toMySQL();
$db->updateObject('#__community_users', $data, 'userid');
if ($db->getErrorNum()) {
JError::raiseError(500, $db->stderr());
}
}
示例3: add
/**
* Add new notification
* @return true
*/
public function add($from, $to, $content, $cmd = '', $type = '', $params = '')
{
jimport('joomla.utilities.date');
$db = $this->getDBO();
$date = JFactory::getDate();
$config = CFactory::getConfig();
$notification = JTable::getInstance('notification', 'CTable');
//respect notification setting
//filter result by cmd_type
$validate = true;
$user = CFactory::getUser($to);
$user_params = $user->getParams();
if (!empty($cmd)) {
$validate = $user_params->get($cmd, $config->get($cmd)) == 1 ? true : false;
}
if ($validate) {
$notification->actor = $from;
$notification->target = $to;
$notification->content = $content;
$notification->created = $date->toSql();
$notification->params = is_object($params) && method_exists($params, 'toString') ? $params->toString() : '';
$notification->cmd_type = $cmd;
$notification->type = $type;
$notification->store();
}
$appsLib = CAppPlugins::getInstance();
$appsLib->triggerEvent('onNotificationAdd', array($notification));
//delete the oldest notification
$this->deleteOldest($to);
return true;
}
示例4: register
public function register($data = null)
{
//require_once (JPATH_COMPONENT.'/libraries/profile.php');
$mainframe = JFactory::getApplication();
$my = CFactory::getUser();
$config = CFactory::getConfig();
/**
* Opengraph
*/
CHeadHelper::setType('website', JText::_('COM_COMMUNITY_REGISTER_NEW'));
// Hide this form for logged in user
if ($my->id) {
$mainframe->enqueueMessage(JText::_('COM_COMMUNITY_REGISTER_ALREADY_USER'), 'warning');
return;
}
// If user registration is not allowed, show 403 not authorized.
$usersConfig = JComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration') == '0') {
//show warning message
$this->addWarning(JText::_('COM_COMMUNITY_REGISTRATION_DISABLED'));
return;
}
$fields = array();
$post = JRequest::get('post');
$isUseFirstLastName = CUserHelper::isUseFirstLastName();
$data = array();
$data['fields'] = $fields;
$data['html_field']['jsname'] = empty($post['jsname']) ? '' : $post['jsname'];
$data['html_field']['jsusername'] = empty($post['jsusername']) ? '' : $post['jsusername'];
$data['html_field']['jsemail'] = empty($post['jsemail']) ? '' : $post['jsemail'];
$data['html_field']['jsfirstname'] = empty($post['jsfirstname']) ? '' : $post['jsfirstname'];
$data['html_field']['jslastname'] = empty($post['jslastname']) ? '' : $post['jslastname'];
// $js = 'assets/validate-1.5.min.js';
// CFactory::attach($js, 'js');
$recaptcha = new CRecaptchaHelper();
$recaptchaHTML = $recaptcha->html();
$fbHtml = '';
if ($config->get('fbconnectkey') && $config->get('fbconnectsecret') && !$config->get('usejfbc')) {
//CFactory::load( 'libraries' , 'facebook' );
$facebook = new CFacebook();
$fbHtml = $facebook->getLoginHTML();
}
if ($config->get('usejfbc')) {
if (class_exists('JFBCFactory')) {
$providers = JFBCFactory::getAllProviders();
foreach ($providers as $p) {
$fbHtml .= $p->loginButton();
}
}
}
$tmpl = new CTemplate();
$content = $tmpl->set('data', $data)->set('recaptchaHTML', $recaptchaHTML)->set('config', $config)->set('isUseFirstLastName', $isUseFirstLastName)->set('fbHtml', $fbHtml)->fetch('register/base');
$appsLib = CAppPlugins::getInstance();
$appsLib->loadApplications();
$args = array(&$content);
$appsLib->triggerEvent('onUserRegisterFormDisplay', $args);
echo $this->_getProgressBar(1);
echo $content;
}
示例5: register
public function register($data = null)
{
require_once JPATH_COMPONENT . DS . 'libraries' . DS . 'profile.php';
$mainframe =& JFactory::getApplication();
$my = CFactory::getUser();
$config = CFactory::getConfig();
$document = JFactory::getDocument();
$document->setTitle(JText::_('COM_COMMUNITY_REGISTER_NEW'));
// Hide this form for logged in user
if ($my->id) {
$mainframe->enqueueMessage(JText::_('COM_COMMUNITY_REGISTER_ALREADY_USER'), 'warning');
return;
}
// If user registration is not allowed, show 403 not authorized.
$usersConfig =& JComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration') == '0') {
//show warning message
$this->addWarning(JText::_('COM_COMMUNITY_REGISTRATION_DISABLED'));
return;
}
$fields = array();
$empty_html = array();
$post = JRequest::get('post');
CFactory::load('helpers', 'user');
$isUseFirstLastName = CUserHelper::isUseFirstLastName();
$data = array();
$data['fields'] = $fields;
$data['html_field']['jsname'] = empty($post['jsname']) ? '' : $post['jsname'];
$data['html_field']['jsusername'] = empty($post['jsusername']) ? '' : $post['jsusername'];
$data['html_field']['jsemail'] = empty($post['jsemail']) ? '' : $post['jsemail'];
$data['html_field']['jsfirstname'] = empty($post['jsfirstname']) ? '' : $post['jsfirstname'];
$data['html_field']['jslastname'] = empty($post['jslastname']) ? '' : $post['jslastname'];
$js = 'assets/validate-1.5';
$js .= $config->getBool('usepackedjavascript') ? '.pack.js' : '.js';
CAssets::attach($js, 'js');
// @rule: Load recaptcha if required.
CFactory::load('helpers', 'recaptcha');
$recaptchaHTML = getRecaptchaHTMLData();
$fbHtml = '';
if ($config->get('fbconnectkey') && $config->get('fbconnectsecret')) {
CFactory::load('libraries', 'facebook');
$facebook = new CFacebook();
$fbHtml = $facebook->getLoginHTML();
}
$tmpl = new CTemplate();
$content = $tmpl->set('data', $data)->set('recaptchaHTML', $recaptchaHTML)->set('config', $config)->set('isUseFirstLastName', $isUseFirstLastName)->set('fbHtml', $fbHtml)->fetch('register.index');
$appsLib =& CAppPlugins::getInstance();
$appsLib->loadApplications();
$args = array(&$content);
$appsLib->triggerEvent('onUserRegisterFormDisplay', $args);
echo $this->_getProgressBar(1);
echo $content;
}
示例6: assignPoint
/**
* add points to user based on the action.
* @param $action
* @param null $userId
*/
public static function assignPoint($action, $userId = null)
{
//get the rule points
//must use the JFactory::getUser to get the aid
$juser = JFactory::getUser($userId);
//since 4.0, check if this action is published, else return false (boolean)
$userPointModel = CFactory::getModel('Userpoints');
$point = $userPointModel->getPointData($action);
if (!isset($point->published) || !$point->published) {
return false;
}
if ($juser->id != 0) {
if (!method_exists($juser, 'getAuthorisedViewLevels')) {
$aid = $juser->aid;
// if the aid is null, means this is not the current logged-in user.
// so we need to manually get this aid for this user.
if (is_null($aid)) {
$aid = 0;
//defautl to 0
// Get an ACL object
$acl = JFactory::getACL();
$grp = $acl->getAroGroup($juser->id);
$group = 'USERS';
if ($acl->is_group_child_of($grp->name, $group)) {
$aid = 1;
// Fudge Authors, Editors, Publishers and Super Administrators into the special access group
if ($acl->is_group_child_of($grp->name, 'Registered') || $acl->is_group_child_of($grp->name, 'Public Backend')) {
$aid = 2;
}
}
}
} else {
//joomla 1.6
$aid = $juser->getAuthorisedViewLevels();
}
$points = CUserPoints::_getActionPoint($action, $aid);
$user = CFactory::getUser($userId);
$points += $user->getKarmaPoint();
$user->_points = $points;
$profile = JTable::getInstance('Profile', 'CTable');
$profile->load($user->id);
$user->_thumb = $profile->thumb;
$user->_avatar = $profile->avatar;
$user->save();
//Event trigger
$appsLib = CAppPlugins::getInstance();
$appsLib->loadApplications();
$params = array('action' => $action, 'points' => $points, 'userId' => $user->id);
$appsLib->triggerEvent('onAfterAssignPoint', $params);
return true;
}
}
示例7: ajaxShowBookmarks
public function ajaxShowBookmarks($uri)
{
$filter = JFilterInput::getInstance();
$uri = $filter->clean($uri, 'string');
$config = CFactory::getConfig();
$shareviaemail = $config->get('shareviaemail');
//CFactory::load( 'libraries' , 'bookmarks' );
$bookmarks = new CBookmarks($uri);
//CFactory::load( 'libraries' , 'apps' );
$appsLib = CAppPlugins::getInstance();
$appsLib->loadApplications();
// @onLoadBookmarks deprecated.
// since 1.5
$appsLib->triggerEvent('onLoadBookmarks', array($bookmarks));
$tmpl = new CTemplate();
$tmpl->set('config', $config)->set('bookmarks', $bookmarks->getBookmarks());
$json = array('title' => JText::_('COM_COMMUNITY_SHARE_THIS'), 'html' => $tmpl->fetch('bookmarks.list'), 'btnShare' => JText::_('COM_COMMUNITY_SHARE_BUTTON'), 'btnCancel' => JText::_('COM_COMMUNITY_CANCEL_BUTTON'), 'viaEmail' => $shareviaemail ? true : false);
die(json_encode($json));
}
示例8: run
function run()
{
jimport('joomla.filesystem.file');
set_time_limit(120);
$this->_sendEmails();
$this->_convertVideos();
$this->_sendSiteDetails();
$this->_archiveActivities();
$this->_cleanRSZFiles();
$this->_processPhotoStorage();
$this->_updatePhotoFileSize();
$this->_updateVideoFileSize();
$this->_removeDeletedPhotos();
$this->_processVideoStorage();
$this->_processUserAvatarStorage();
// Include CAppPlugins library
require_once JPATH_COMPONENT . DS . 'libraries' . DS . 'apps.php';
// Trigger system event onCronRun
$appsLib =& CAppPlugins::getInstance();
$appsLib->loadApplications();
$args = array();
$appsLib->triggerEvent('onCronRun', $args);
}
示例9: add
/**
* Add new activity into stream
* @param array|object $data
* @return CActivity|boolean
*/
public static function add($data)
{
$activity = new CActivity($data);
/**
* @todo We'll move all event trigger into this class not in table class or anywhere
* @todo Anything else we want to include when posting please put here
*/
/* Event trigger */
$appsLib = CAppPlugins::getInstance();
$appsLib->loadApplications();
$params = array();
$params[] =& $activity;
/* We do raise event here that will allow user change $activity properties before save it */
$appsLib->triggerEvent('onBeforeActivitySave', $params);
if ($activity->get('cmd')) {
/* Userpoints */
$userPointModel = CFactory::getModel('Userpoints');
$point = $userPointModel->getPointData($activity->get('cmd'));
if ($point) {
/**
* @todo Need clearly about this !
* for every unpublished user points the stream will be disabled for that item
* but not sure if this for 3rd party API, this feature should be available or not?
*/
if (!$point->published) {
//return;
}
}
}
if ($activity->save()) {
$params = array();
$params[] =& $activity;
$appsLib->triggerEvent('onAfterActivitySave', $params);
return $activity;
}
return false;
}
示例10: ajaxShowBookmarks
public function ajaxShowBookmarks($uri)
{
$filter = JFilterInput::getInstance();
$uri = $filter->clean($uri, 'string');
CFactory::load('libraries', 'bookmarks');
$bookmarks = new CBookmarks($uri);
CFactory::load('libraries', 'apps');
$appsLib =& CAppPlugins::getInstance();
$appsLib->loadApplications();
// @onLoadBookmarks deprecated.
// since 1.5
$appsLib->triggerEvent('onLoadBookmarks', array($bookmarks));
$response = new JAXResponse();
$tmpl = new CTemplate();
$tmpl->set('bookmarks', $bookmarks->getBookmarks());
$html = $tmpl->fetch('bookmarks.list');
$total = $bookmarks->getTotalBookmarks();
$height = $total * 10;
$actions = '<input type="button" class="button" onclick="joms.bookmarks.email(\'' . $uri . '\');" value="' . JText::_('COM_COMMUNITY_SHARE_BUTTON') . '"/>';
$actions .= '<input type="button" class="button" onclick="cWindowHide();" value="' . JText::_('COM_COMMUNITY_CANCEL_BUTTON') . '"/>';
$response->addAssign('cwin_logo', 'innerHTML', JText::_('COM_COMMUNITY_SHARE_THIS'));
$response->addScriptCall('cWindowAddContent', $html, $actions);
return $response->sendResponse();
}
示例11: uploadAvatar
function uploadAvatar()
{
$document =& JFactory::getDocument();
$document->setTitle(JText::_('CC UPLOAD EVENT AVATAR'));
$eventid = JRequest::getVar('eventid', '0');
$this->_addEventInPathway($eventid);
$this->addPathway(JText::_('CC UPLOAD EVENT AVATAR'));
$this->showSubmenu();
$event =& JTable::getInstance('Event', 'CTable');
$event->load($eventid);
CFactory::load('helpers', 'event');
$handler = CEventHelper::getHandler($event);
if (!$handler->manageable()) {
$this->noAccess();
return;
}
$config = CFactory::getConfig();
$uploadLimit = (double) $config->get('maxuploadsize');
$uploadLimit .= 'MB';
CFactory::load('models', 'events');
$event =& JTable::getInstance('Event', 'CTable');
$event->load($eventid);
CFactory::load('libraries', 'apps');
$app =& CAppPlugins::getInstance();
$appFields = $app->triggerEvent('onFormDisplay', array('jsform-events-uploadavatar'));
$beforeFormDisplay = CFormElement::renderElements($appFields, 'before');
$afterFormDisplay = CFormElement::renderElements($appFields, 'after');
$tmpl = new CTemplate();
$tmpl->set('beforeFormDisplay', $beforeFormDisplay);
$tmpl->set('afterFormDisplay', $afterFormDisplay);
$tmpl->set('eventId', $eventid);
$tmpl->set('avatar', $event->getAvatar('avatar'));
$tmpl->set('thumbnail', $event->getAvatar());
$tmpl->set('uploadLimit', $uploadLimit);
echo $tmpl->fetch('events.uploadavatar');
}
示例12: execute
/**
* Execute a request
*/
public function execute($task = '')
{
global $mainframe;
$document =& JFactory::getDocument();
$my =& JFactory::getUser();
$pathway =& $mainframe->getPathway();
$menus =& JSite::getMenu();
$menuitem =& $menus->getActive();
$userId = JRequest::getInt('userid', '', 'GET');
$tmpl = JRequest::getVar('tmpl', '', 'REQUEST');
$format = JRequest::getVar('format', '', 'REQUEST');
$nohtml = JRequest::getVar('no_html', '', 'REQUEST');
if ($tmpl != 'component' && $format != 'feed' && $format != 'ical' && $nohtml != 1 && $format != 'raw') {
// This is to fix MSIE that has incorrect user agent because jquery doesn't detect correctly.
$ieFix = "<!--[if IE 6]><script type=\"text/javascript\">var jomsIE6 = true;</script><![endif]-->";
$document->addCustomTag($ieFix);
}
// Add custom css for the specific view if needed.
$config = CFactory::getConfig();
$viewName = JString::strtolower(JRequest::getVar('view', '', 'REQUEST'));
jimport('joomla.filesystem.file');
if ($config->get('enablecustomviewcss')) {
CTemplate::addStylesheet($viewName);
}
$env = CTemplate::getTemplateEnvironment();
$html = '<div id="community-wrap" class="on-' . $env->joomlaTemplate . ' ' . $document->direction . '">';
// Build the component menu module
ob_start();
CTemplate::renderModules('js_top');
$moduleHTML = ob_get_contents();
ob_end_clean();
$html .= $moduleHTML;
// Build the content HTML
CFactory::load('helpers', 'azrul');
$inbox =& $this->getModel('inbox');
$unread = $inbox->countUnRead(array('user_id' => $my->id));
$param = array('inbox' => $unread);
if (!empty($task) && method_exists($this, $task)) {
ob_start();
if (method_exists($this, '_viewEnabled') && !$this->_viewEnabled()) {
echo property_exists($this, '_disabledMessage') ? $this->_disabledMessage : JText::_('Function is disabled');
} else {
$this->{$task}();
}
$output = ob_get_contents();
ob_end_clean();
} else {
ob_start();
$this->display();
$output = ob_get_contents();
ob_end_clean();
}
// Build toolbar HTML
ob_start();
$view =& $this->getView(JRequest::getCmd('view', 'frontpage'));
$view->showToolbar($param);
// Header title will use view->title. If not specified, we will
// use current page title
$headerTitle = !empty($view->title) ? $view->title : $document->getTitle();
$view->showHeader($headerTitle, $this->_icon);
$header = ob_get_contents();
ob_end_clean();
$html .= $header;
// @rule: Super admin should always be allowed regardless of their block status
// block member to access profile owner details
CFactory::load('helpers', 'owner');
CFactory::load('libraries', 'block');
$getBlockStatus = new blockUser();
$blocked = $getBlockStatus->isUserBlocked($userId, $viewName);
if ($blocked) {
if (COwnerHelper::isCommunityAdmin()) {
$mainframe =& JFactory::getApplication();
$mainframe->enqueueMessage(JText::_('CC YOU ARE BLOCKED BY USER', 'error'));
} else {
$tmpl = new CTemplate();
$output .= $tmpl->fetch('block.denied');
}
}
// Build the component bottom module
ob_start();
CTemplate::renderModules('js_bottom');
$moduleHTML = ob_get_contents();
ob_end_clean();
$html .= $output . $moduleHTML . '</div>';
CFactory::load('helpers', 'string');
$html = CStringHelper::replaceThumbnails($html);
$html = JString::str_ireplace(array('{error}', '{warning}', '{info}'), '', $html);
// Trigger onModuleDisplay()
CFactory::load('libraries', 'apps');
$appsLib = CAppPlugins::getInstance();
$appsLib->loadApplications();
$moduleHTML = $appsLib->triggerEvent('onModuleRender');
$mods = array();
foreach ($moduleHTML as $modules) {
foreach ($modules as $position => $content) {
if (empty($mods[$position])) {
$mods[$position] = '';
//.........这里部分代码省略.........
示例13: triggerWallComments
/**
* Formats the comment in the rows
*
* @param Array An array of wall objects
**/
function triggerWallComments(&$rows)
{
CError::assert($rows, 'array', 'istype', __FILE__, __LINE__);
require_once COMMUNITY_COM_PATH . DS . 'libraries' . DS . 'apps.php';
$appsLib =& CAppPlugins::getInstance();
$appsLib->loadApplications();
for ($i = 0; $i < count($rows); $i++) {
$args = array();
$args[] =& $rows[$i];
$appsLib->triggerEvent('onWallDisplay', $args);
}
return true;
}
示例14: ajaxRefreshLayout
public function ajaxRefreshLayout($id, $position)
{
$objResponse = new JAXResponse();
$filter = JFilterInput::getInstance();
$id = $filter->clean($id, 'string');
$position = $filter->clean($position, 'string');
$my = CFactory::getUser();
$appsModel = CFactory::getModel('apps');
$element = $appsModel->getAppName($id);
$pluginId = $appsModel->getPluginId($element);
$params =& JPluginHelper::getPlugin('community', JString::strtolower($element));
$dispatcher =& JDispatcher::getInstance();
$pluginClass = 'plgCommunity' . $element;
//$plugin = new $pluginClass($dispatcher, (array)($params));
$plugin = JTable::getInstance('App', 'CTable');
$plugin->loadUserApp($my->id, $element);
switch ($position) {
case "apps-sortable-side-top":
$position = "sidebar-top";
break;
case "apps-sortable-side-bottom":
$position = "sidebar-bottom";
break;
case "apps-sortable":
default:
$position = "content";
break;
}
$appInfo = $appsModel->getAppInfo($element);
//$plugin->setNewLayout($position);
$plugin->postion = $position;
$appsLib =& CAppPlugins::getInstance();
$app = $appsLib->triggerPlugin('onProfileDisplay', $appInfo->name, $my->id);
$tmpl = new CTemplate();
$tmpl->set('app', $app);
$tmpl->set('isOwner', $appsModel->isOwned($my->id, $id));
switch ($position) {
case 'sidebar-top':
case 'sidebar-bottom':
$wrapper = $tmpl->fetch('application.widget');
break;
default:
$wrapper = $tmpl->fetch('application.box');
}
$wrapper = str_replace("\r\n", "", $wrapper);
$wrapper = str_replace("\n", "", $wrapper);
$wrapper = addslashes($wrapper);
$objResponse->addScriptCall("jQuery('#jsapp-" . $id . "').before('{$wrapper}').remove();");
//$objResponse->addScriptCall('joms.plugin.'.$element.'.refresh()');
//$refreshActions = $plugin->getRefreshAction();
return $objResponse->sendResponse();
}
示例15: _getBulletinListHTML
/**
* Return the an array of HTML part of bulletings in viewGroups
* and the total number of bulletin
*/
protected function _getBulletinListHTML($groupId)
{
$result = array();
$bulletinModel = CFactory::getModel('bulletins');
$bulletins = $bulletinModel->getBulletins($groupId);
$totalBulletin = $bulletinModel->total;
// Get the creator of the discussions
for ($i = 0; $i < count($bulletins); $i++) {
$row =& $bulletins[$i];
$row->creator = CFactory::getUser($row->created_by);
}
// Only trigger the bulletins if there is really a need to.
if (!empty($bulletins)) {
$appsLib =& CAppPlugins::getInstance();
$appsLib->loadApplications();
// Format the bulletins
// the bulletins need to be an array or reference to work around
// PHP 5.3 pass by value
$args = array();
foreach ($bulletins as &$b) {
$args[] =& $b;
}
$appsLib->triggerEvent('onBulletinDisplay', $args);
}
// Process bulletins HTML output
$tmpl = new CTemplate();
$bulletinsHTML = $tmpl->set('bulletins', $bulletins)->set('groupId', $groupId)->fetch('groups.bulletinlist');
unset($tmpl);
$result['HTML'] = $bulletinsHTML;
$result['total'] = $totalBulletin;
$result['data'] = $bulletins;
return $result;
}