Skip to content
Snippets Groups Projects
  • Patrick Barroca's avatar
    dev #169092 : Content watch : admin vars · c734ac95
    Patrick Barroca authored and Sebastien ANDRE's avatar Sebastien ANDRE committed
     * watching articles
     * watching selections
     * watching widgets
     * dashboard
     * add batch for watching content
     * ajout du support des articles et des paniers ainsi que du modele fusion
     * Permission spécifique Supervision Gestion de contenu et customisation
     * add default value for adminvar content_watch_mail_subject
     * cant watch article without mail
     * add admin, batch dashboard in content_watch
     * multiple edit articles content-watch
     * add link to widget in actions
     * add delay in title dashboard
     * add sort and color in dashboard
     * dissociate watch/unwatch action from the news form
     * handle watching/unwatching on news multiselection
     * add filter content in dashboard
     * make admin article watch in js
     * make widget watch content in js mode
     * add role for modo portail to see pro cards
    c734ac95
ContentWatchController.php 1.97 KiB
<?php
/**
 * Copyright (c) 2012-2022, Agence Française Informatique (AFI). All rights reserved.
 *
 * BOKEH is free software; you can redistribute it and/or modify
 * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
 * the Free Software Foundation.
 *
 * There are special exceptions to the terms and conditions of the AGPL as it
 * is applied to this software (see README file).
 *
 * BOKEH is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
 *
 * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
 * along with BOKEH; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
 */


class Admin_ContentWatchController extends ZendAfi_Controller_Action {

  public function getPlugins() : array {
    return [ZendAfi_Controller_Plugin_Versionning_Widget::class];
  }


  public function indexAction() {
    $this->view->titre = $this->_('Alertes sur les contenus');
    $this->view->user = Class_Users::getIdentity();
  }


  public function viewWidgetInPageAction() {
    $this->getHelper('ViewRenderer')->setNoRender();

    $widget_id = $this->_getParam('widget_id');
    $profile_id = $this->_getParam('profile_id');

    $this->renderPopup(Class_Url::absolute(['module' => 'admin',
                                            'controller' => 'widget',
                                            'action' => 'edit-widget',
                                            'id' => $widget_id,
                                            'id_profil' => $profile_id],
                                           null, true) . '/render/popup',
                       Class_Url::absolute(['id_profil' => $profile_id],
                                           null, true)
                       . '#boite_' . $widget_id);
  }
}