classes/core/Request.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00024 //$Id$
00025 
00026 
00027 import('core.PKPRequest');
00028 
00029 class Request extends PKPRequest {
00040    function redirect($conferencePath = null, $schedConfPath = null, $page = null, $op = null, $path = null, $params = null, $anchor = null) {
00041       $_this =& PKPRequest::_checkThis();
00042       $_this->redirectUrl($_this->url($conferencePath, $schedConfPath, $page, $op, $path, $params, $anchor));
00043    }
00044 
00049    function getRequestedConferencePath() {
00050       static $conference;
00051       $_this =& PKPRequest::_checkThis();
00052 
00053       if (!isset($conference)) {
00054          $conference = $_this->_delegateToRouter('getRequestedContextPath', 1);
00055          HookRegistry::call('Request::getRequestedConferencePath', array(&$conference));
00056       }
00057 
00058       return $conference;
00059    }
00060 
00065    function getRequestedSchedConfPath() {
00066       static $schedConf;
00067       $_this =& PKPRequest::_checkThis();
00068 
00069       if (!isset($schedConf)) {
00070          $schedConf = $_this->_delegateToRouter('getRequestedContextPath', 2);
00071          HookRegistry::call('Request::getRequestedSchedConfPath', array(&$schedConf));
00072       }
00073 
00074       return $schedConf;
00075    }
00076 
00081    function &getConference() {
00082       $_this =& PKPRequest::_checkThis();
00083       $returner = $_this->_delegateToRouter('getContext', 1);
00084       return $returner;
00085    }
00086 
00091    function &getSchedConf() {
00092       $_this =& PKPRequest::_checkThis();
00093       $returner = $_this->_delegateToRouter('getContext', 2);
00094       return $returner;
00095    }
00096 
00101    function getRequestedContextPath($contextLevel = null) {
00102       $_this =& PKPRequest::_checkThis();
00103 
00104       // Emulate the old behavior of getRequestedContextPath for
00105       // backwards compatibility.
00106       if (is_null($contextLevel)) {
00107          return $_this->_delegateToRouter('getRequestedContextPaths');
00108       } else {
00109          return array($_this->_delegateToRouter('getRequestedContextPath', $contextLevel));
00110       }
00111    }
00112 
00117    function &getContext($level = 1) {
00118       $_this =& PKPRequest::_checkThis();
00119       $returner = $_this->_delegateToRouter('getContext', $level);
00120       return $returner;
00121    }
00122 
00127    function &getContextByName($contextName) {
00128       $_this =& PKPRequest::_checkThis();
00129       $returner = $_this->_delegateToRouter('getContextByName', $contextName);
00130       return $returner;
00131    }
00132 
00137    function url($conferencePath = null, $schedConfPath = null, $page = null,
00138          $op = null, $path = null, $params = null, $anchor = null, $escape = false) {
00139       $_this =& PKPRequest::_checkThis();
00140       return $_this->_delegateToRouter('url', array($conferencePath, $schedConfPath), $page, $op, $path,
00141          $params, $anchor, $escape);
00142    }
00143 
00148    function redirectHome() {
00149       $_this =& PKPRequest::_checkThis();
00150       return $_this->_delegateToRouter('redirectHome');
00151    }
00152 }
00153 
00154 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7