NB: You should make sure to authorize and/or
validate parameters before you publish them
through this interface. Callers will assume that
data accessed through this method will not have
to be sanitized.
The default implementation tries to retrieve
request parameters from a data provider if there
is one.
public getRequestArgs ( ) : array | ||
return | array |
/** * @copydoc GridDataProvider::getRequestArgs() */ function getRequestArgs() { $submission = $this->getAuthorizedContextObject(ASSOC_TYPE_SUBMISSION); $articleGalley = $this->getAuthorizedContextObject(ASSOC_TYPE_GALLEY); $requestArgs = (array) parent::getRequestArgs(); $requestArgs['submissionId'] = $submission->getId(); if ($articleGalley) { $requestArgs['representationId'] = $articleGalley->getId(); } return $requestArgs; }
/** * @copydoc GridDataProvider::getRequestArgs() */ function getRequestArgs() { $issue = $this->getAuthorizedContextObject(ASSOC_TYPE_ISSUE); $issueGalley = $this->getAuthorizedContextObject(ASSOC_TYPE_ISSUE_GALLEY); $requestArgs = (array) parent::getRequestArgs(); $requestArgs['issueId'] = $issue->getId(); if ($issueGalley) { $requestArgs['issueGalleyId'] = $issueGalley->getId(); } return $requestArgs; }
/** * @see GridHandler::getRequestArgs() */ function getRequestArgs() { return array_merge(parent::getRequestArgs(), array('pluginName' => $this->_getPluginName())); }
/** * @copydoc CategoryGridHandler::getRequestArgs() */ function getRequestArgs() { return array_merge(array('reviewFormId' => $this->reviewFormId), parent::getRequestArgs()); }
/** * @see GridHandler::getRequestArgs() */ function getRequestArgs() { $args = parent::getRequestArgs(); // If grid is rendering grid rows inside category, // add current category id value so rows will also know // their parent category. if (!is_null($this->_currentCategoryId)) { if ($this->getCategoryRowIdParameterName()) { $args[$this->getCategoryRowIdParameterName()] = $this->_currentCategoryId; } } return $args; }
/** * @copydoc GridHandler::getRequestArgs() */ function getRequestArgs() { return array_merge(parent::getRequestArgs(), array('category' => $this->_plugin->getCategory(), 'plugin' => basename($this->_plugin->getPluginPath()))); }
/** * @see GridHandler::getRequestArgs() */ function getRequestArgs() { return array_merge(parent::getRequestArgs(), array('representationId' => $this->publicationFormat->getId())); }
/** * @see GridHandler::getRequestArgs() */ function getRequestArgs() { $requestArgs = (array) parent::getRequestArgs(); $requestArgs['oldUserId'] = $this->_oldUserId; return $requestArgs; }
/** * @copydoc GridHandler::getRequestArgs() */ function getRequestArgs() { return array_merge(parent::getRequestArgs(), array('locale' => $this->locale, 'tabsSelector' => $this->tabsSelector)); }