本文整理汇总了PHP中acymailingController::display方法的典型用法代码示例。如果您正苦于以下问题:PHP acymailingController::display方法的具体用法?PHP acymailingController::display怎么用?PHP acymailingController::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类acymailingController
的用法示例。
在下文中一共展示了acymailingController::display方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display($cachable = false, $urlparams = false)
{
if (!empty($this->aclCat) and !$this->isAllowed($this->aclCat, 'manage')) {
return;
}
return parent::display($cachable, $urlparams);
}
示例2: loadZohoFields
function loadZohoFields()
{
$app = JFactory::getApplication();
$zohoHelper = acymailing_get('helper.zoho');
$zohoHelper->authtoken = JRequest::getVar('zoho_apikey');
$list = JRequest::getVar('zoho_list');
JRequest::setVar('layout', 'import');
$zohoFields = $zohoHelper->getFieldsRaw($list);
if (!empty($zohoHelper->error)) {
$app->enqueueMessage($zohoHelper->error, 'error');
return parent::display();
}
$zohoFieldsParsed = $zohoHelper->parseXMLFields($zohoFields);
if (!empty($zohoHelper->error)) {
$app->enqueueMessage($zohoHelper->error, 'error');
return parent::display();
}
$config = acymailing_config();
$newconfig = new stdClass();
$newconfig->zoho_fieldsname = implode(',', $zohoFieldsParsed);
$newconfig->zoho_list = $list;
$newconfig->zoho_apikey = $zohoHelper->authtoken;
$config->save($newconfig);
$app->enqueueMessage(JText::_('ACY_FIELDSLOADED'));
return parent::display();
}
示例3: display
function display()
{
if (!empty($this->aclCat) and !$this->isAllowed($this->aclCat, 'manage')) {
return;
}
return parent::display();
}
示例4: tag
function tag()
{
if (!$this->isAllowed($this->aclCat, 'view')) {
return;
}
JRequest::setVar('layout', 'tag');
return parent::display();
}
示例5: process
function process()
{
if (!$this->isAllowed($this->aclCat, 'process')) {
return;
}
JRequest::setVar('layout', 'process');
return parent::display();
}
示例6: sendready
function sendready()
{
if (!$this->isAllowed('newsletters', 'send')) {
return;
}
JRequest::setVar('layout', 'sendconfirm');
return parent::display();
}
示例7: forward
function forward()
{
if (!$this->isAllowed('statistics', 'manage')) {
return;
}
JRequest::setVar('layout', 'forward');
return parent::display();
}
示例8: mailinglist
function mailinglist()
{
if (!$this->isAllowed('statistics', 'manage')) {
return;
}
JRequest::setVar('layout', 'mailinglist');
return parent::display();
}
示例9: detaillisting
function detaillisting()
{
if (!$this->isAllowed($this->aclCat, 'manage') || !$this->isAllowed('subscriber', 'view')) {
return;
}
JRequest::setVar('layout', 'detaillisting');
return parent::display();
}
示例10: view
function view()
{
$statsClass = acymailing_get('class.stats');
$statsClass->countReturn = false;
$statsClass->saveStats();
JRequest::setVar('layout', 'view');
return parent::display();
}
示例11: export
function export()
{
if (!$this->isAllowed('subscriber', 'export')) {
return;
}
JRequest::setVar('layout', 'export');
return parent::display();
}
示例12: unsub
function unsub()
{
$userClass = acymailing::get('class.subscriber');
$user = $userClass->identify();
if (empty($user)) {
return false;
}
JRequest::setVar('layout', 'unsub');
return parent::display();
}
示例13: remove
function remove()
{
if (!$this->isAllowed($this->aclCat, 'delete')) {
return;
}
JRequest::checkToken() or die('Invalid Token');
$listIds = JRequest::getVar('cid', array(), '', 'array');
$subscriberObject = acymailing_get('class.list');
$num = $subscriberObject->delete($listIds);
acymailing_enqueueMessage(JText::sprintf('SUCC_DELETE_ELEMENTS', $num), 'message');
JRequest::setVar('layout', 'listing');
return parent::display();
}
示例14: remove
function remove()
{
if (!$this->isAllowed('subscriber', 'delete')) {
return;
}
JRequest::checkToken() or die('Invalid Token');
$subscriberIds = JRequest::getVar('cid', array(), '', 'array');
$subscriberObject = acymailing::get('class.subscriber');
$num = $subscriberObject->delete($subscriberIds);
$app =& JFactory::getApplication();
$app->enqueueMessage(JText::sprintf('SUCC_DELETE_ELEMENTS', $num), 'message');
JRequest::setVar('layout', 'listing');
return parent::display();
}
示例15: view
function view()
{
$statsClass = acymailing_get('class.stats');
$statsClass->countReturn = false;
$statsClass->saveStats();
$printEnabled = JRequest::getVar('print', 0);
if ($printEnabled) {
$js = "setTimeout(function(){\r\n\t\t\t\t\tif(document.getElementById('iframepreview')){\r\n\t\t\t\t\t\tdocument.getElementById('iframepreview').contentWindow.focus();\r\n\t\t\t\t\t\tdocument.getElementById('iframepreview').contentWindow.print();\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\twindow.print();\r\n\t\t\t\t\t}\r\n\t\t\t\t},2000);";
$doc = JFactory::getDocument();
$doc->addScriptDeclaration($js);
}
JRequest::setVar('layout', 'view');
return parent::display();
}