http 
[ doc home ] [ class tree: http ] [ index: http ] [ all elements ]

Class: IsterHttpRequestPathInfo

Source Location: /IsterHttpRequestPathInfo.php

Class Overview

IsterObject
   |
   --IsterAttributeSet
      |
      --IsterHttpSecureObject
         |
         --IsterHttpRequest
            |
            --IsterHttpRequestPathInfo

Class representing the path info data of a HTTP request.


Author(s): Ingo Schramm   

Copyright: Copyright (c) 2005 Ister.ORG Ingo Schramm

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: IsterHttpRequest

IsterHttpRequest::IsterHttpRequest()
Constructor
IsterHttpRequest::getHeader()
Get the IsterHttpRequestHeader object representing the request header.
IsterHttpRequest::hasData()
Check whether data are available.
IsterHttpRequest::parseHeader()
Parse the request header into an IsterHttpRequestHeader object.

Class: IsterHttpSecureObject

IsterHttpSecureObject::IsterHttpSecureObject()
Constructor
IsterHttpSecureObject::applySecurityPolicy()
Apply the security policy.
IsterHttpSecureObject::free()
Set security policy equal null and free memory.
IsterHttpSecureObject::getSecurityPolicy()
Get the IsterHttpSecurityPolicy object.
IsterHttpSecureObject::hasSecurityPolicy()
Whether this object owns an IsterHttpSecurityPolicy object or not.
IsterHttpSecureObject::setSecurityPolicy()
Set an IsterHttpSecurityPolicy object to use with this request.

Class: IsterAttributeSet

IsterAttributeSet::IsterAttributeSet()
Constructor
IsterAttributeSet::addAttribute()
depricated
IsterAttributeSet::addAttributeReference()
depricated
IsterAttributeSet::addAttributesArray()
depricated
IsterAttributeSet::delete()
Delete all attributes.
IsterAttributeSet::deleteAttribute()
Delete an aAttribute.
IsterAttributeSet::getAttribute()
Get the value of an attribute.
IsterAttributeSet::getAttributeNames()
Return an array containing the names of all attributes.
IsterAttributeSet::getAttributeReference()
Get the reference value of an attribute.
IsterAttributeSet::getAttributesArray()
Get all attributes.
IsterAttributeSet::hasAttribute()
Check whether an attribute has been set.
IsterAttributeSet::setAttribute()
Set a new attribute or overwrite an already existing attribute.
IsterAttributeSet::setAttributeReference()
Set an attribute and store only a reference of the attribute.
IsterAttributeSet::setAttributesArray()
Set an array of key value pairs, each pair an attribute.

Class: IsterObject

IsterObject::IsterObject()
Constructor
IsterObject::abstractMethodError()
Report attempt to call an abstract method.
IsterObject::addLogger()
Add an IsterLogger to process log messages.
IsterObject::deleteLogger()
Delete an already registered IsterLogger.
IsterObject::getLoggerNames()
Fetch the names of all currently registered IsterLoggers.
IsterObject::getMem()
Return maximum amount of memory an application has allocated at this point.
IsterObject::log()
Trigger a log message.
IsterObject::passPHPmessage()
Catch PHP E_WARNING and E_NOTICE messages.
IsterObject::serialize()
Serialize the object.
IsterObject::setLogLocal()
Set logging local for the current object.
IsterObject::setupLogger()
Setup a logger.
IsterObject::triggerError()
Alias for log();
IsterObject::unserialize()
Unserialize the object.
IsterObject::__sleep()
Executed prior to serialize().
IsterObject::__wakeup()
Executed prior to unserialize().

Class Details

Class representing the path info data of a HTTP request.

copyright:  Copyright (c) 2005 Ister.ORG Ingo Schramm
author:  Ingo Schramm


[ Top ]


Class Methods


constructor IsterHttpRequestPathInfo

IsterHttpRequestPathInfo IsterHttpRequestPathInfo( )

Constructor

[ Top ]

method parse

array parse( )

Parse path info.

The path info is parsed to a list of elements. Additionally, the list elements are added as attributes to the IsterHttpRequestPathInfo object. You may access these attributes by their index.

  1. /var/val/1
  2. -----
  3. $r = new IsterHttpRequestPathInfo;
  4. print_r($r->parse());
  5. -----
  6. array( [0] => var
  7. [var] => var
  8. [1] => val
  9. [val] => val
  10. [2] => 1
  11. )

As of 0.4.4, for pathinfo parts contaning all digits no string key will be created in array.


[ Top ]

method parseToAttributes

boolean parseToAttributes( )

Parse path info into attributes of this object.

The parts of the path info will treated pair by pair, the first as an attribute name, the second as the value.

  1. /var1/val1/var2/val2
  2. -----
  3. $r = new IsterHttpRequestPathInfo;
  4. $r->parseToAttributes();
  5. print $r->getAttribute('var2');
  6. -----
  7. val2


[ Top ]


Documentation generated on Tue, 20 Dec 2005 11:20:48 +0100 by phpDocumentor 1.3.0RC4