| Server IP : 89.117.53.150 / Your IP : 216.73.216.11 Web Server : Apache System : Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : iscmbt-kufa-atu ( 1014) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/iscmbt-kufa-atu/public_html/iscmbt/controllers/grid/toc/ |
Upload File : |
<?php
/**
* @file controllers/grid/toc/TocGridRow.php
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class TocGridRow
*
* @ingroup controllers_grid_settings_issue
*
* @brief Handle issue grid row requests.
*/
namespace APP\controllers\grid\toc;
use PKP\controllers\grid\GridRow;
use PKP\core\PKPApplication;
use PKP\linkAction\LinkAction;
use PKP\linkAction\request\RedirectAction;
use PKP\linkAction\request\RemoteActionConfirmationModal;
class TocGridRow extends GridRow
{
/** @var int */
public $issueId;
/**
* Constructor
*
* @param int $issueId
*/
public function __construct($issueId)
{
parent::__construct();
$this->issueId = $issueId;
}
//
// Overridden template methods
//
/**
* @copydoc GridRow::initialize
*
* @param null|mixed $template
*/
public function initialize($request, $template = null)
{
parent::initialize($request, $template);
$dispatcher = $request->getDispatcher();
$this->addAction(
new LinkAction(
'workflow',
new RedirectAction(
$dispatcher->url($request, PKPApplication::ROUTE_PAGE, null, 'workflow', 'access', [$this->getId()])
),
__('submission.submission'),
'information'
)
);
$router = $request->getRouter();
$this->addAction(
new LinkAction(
'removeArticle',
new RemoteActionConfirmationModal(
$request->getSession(),
__('editor.article.remove.confirm'),
__('grid.action.removeArticle'),
$router->url($request, null, null, 'removeArticle', null, ['articleId' => $this->getId(), 'issueId' => $this->issueId]),
'modal_delete'
),
__('editor.article.remove'),
'delete'
)
);
}
}