getRequestArgs() public method

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;
 }
コード例 #2
0
 /**
  * @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());
 }
コード例 #5
0
 /**
  * @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;
 }
コード例 #6
0
 /**
  * @copydoc GridHandler::getRequestArgs()
  */
 function getRequestArgs()
 {
     return array_merge(parent::getRequestArgs(), array('category' => $this->_plugin->getCategory(), 'plugin' => basename($this->_plugin->getPluginPath())));
 }
コード例 #7
0
 /**
  * @see GridHandler::getRequestArgs()
  */
 function getRequestArgs()
 {
     return array_merge(parent::getRequestArgs(), array('representationId' => $this->publicationFormat->getId()));
 }
コード例 #8
0
ファイル: UserGridHandler.inc.php プロジェクト: doana/pkp-lib
 /**
  * @see GridHandler::getRequestArgs()
  */
 function getRequestArgs()
 {
     $requestArgs = (array) parent::getRequestArgs();
     $requestArgs['oldUserId'] = $this->_oldUserId;
     return $requestArgs;
 }
コード例 #9
0
 /**
  * @copydoc GridHandler::getRequestArgs()
  */
 function getRequestArgs()
 {
     return array_merge(parent::getRequestArgs(), array('locale' => $this->locale, 'tabsSelector' => $this->tabsSelector));
 }