[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/security/ -> pipelinerequest.class.php (source)

   1  <?php
   2  
   3      /**
   4       * \ingroup Security
   5       *
   6       * This is the parameter that will be used in the pipeline, to communicate
   7       * with the filters that 'sit' in the pipeline. It carries basic information
   8       * such as the incoming HTTP request and a reference to the BlogInfo object
   9       * of the blog that is executing the Pipeline.
  10       */
  11      class PipelineRequest  
  12      {
  13  
  14          var $_httpRequest;
  15          var $_blogInfo;
  16          var $_requestRejected;
  17  
  18          /**
  19           * Constructor.
  20           *
  21           * @param httpRequest An array with the HTTP request
  22           * @param blogInfo A BlogInfo object with information about the blog
  23           * currently executing the request
  24           */
  25          function PipelineRequest( $httpRequest, $blogInfo, $rejected = false )
  26          {
  27              
  28  
  29              if( is_array($httpRequest))
  30                  $this->_httpRequest = new Properties( $httpRequest );
  31              else
  32                  $this->_httpRequest  = $httpRequest;
  33                  
  34              $this->_blogInfo         = $blogInfo;
  35              $this->_requestRejected  = $rejected;
  36          }
  37  
  38          /**
  39           * @return Returns the BlogInfo object
  40           */
  41          function getBlogInfo()
  42          {
  43              return $this->_blogInfo;
  44          }
  45  
  46          /**
  47           * @return Returns a Properties object built from the given HTTP request. Please
  48           * use the Properties::getValue() method to retrieve values from the request
  49           */
  50          function getHttpRequest()
  51          {
  52              return $this->_httpRequest;
  53          }
  54          
  55          /**
  56          * @return Returns a boolean that indicates if this pipeline request has 
  57          * already been rejected
  58          */
  59          function getRejectedState()
  60          {
  61              return $this->_requestRejected;
  62          }
  63          
  64      }
  65  ?>


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics