Net_URL_Mapper
[ class tree: Net_URL_Mapper ] [ index: Net_URL_Mapper ] [ all elements ]

Class: Net_URL_Mapper_Part

Source Location: /Net_URL_Mapper-0.9.1/Mapper/Part.php

Class Overview


URL parser and mapper


Author(s):

Version:

  • CVS: $Id: Part.php 232857 2007-03-28 10:23:04Z mansion $

Variables

Methods


Child classes:

Net_URL_Mapper_Part_Wildcard
URL parser and mapper
Net_URL_Mapper_Part_Dynamic
URL parser and mapper
Net_URL_Mapper_Part_Fixed
URL parser and mapper

Inherited Variables

Inherited Methods


Class Details

[line 44]
URL parser and mapper

PHP version 5

LICENSE:

Copyright (c) 2006, Bertrand Mansion <golgote@mamasam.com> All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * The names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.



[ Top ]


Class Variables

$content =

[line 56]

Part name if dynamic or content, generated from path
  • Access: public

Type:   string


[ Top ]

$defaults =

[line 46]

  • Access: protected

Type:   mixed


[ Top ]

$public =

[line 48]

  • Access: protected

Type:   mixed


[ Top ]

$required =  false

[line 50]

  • Access: protected

Type:   mixed


[ Top ]

$rule =

[line 47]

  • Access: protected

Type:   mixed


[ Top ]

$type =

[line 49]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 62]

Net_URL_Mapper_Part __construct( $content, $path)

  • Access: public

Overridden in child classes as:

Net_URL_Mapper_Part_Wildcard::__construct()
Net_URL_Mapper_Part_Dynamic::__construct()
Net_URL_Mapper_Part_Fixed::__construct()

Parameters:

   $content   — 
   $path   — 

[ Top ]

accept   [line 116]

void accept( $visitor, [ $method = null])

  • Access: public

Parameters:

   $visitor   — 
   $method   — 

[ Top ]

addSlash   [line 77]

void addSlash( $str)

  • Access: public

Parameters:

   $str   — 

[ Top ]

addSlashRegex   [line 90]

void addSlashRegex( $str)

  • Access: public

Parameters:

   $str   — 

[ Top ]

generate   [line 132]

void generate( [ $value = null])

  • Abstract:
  • Access: public

Overridden in child classes as:

Net_URL_Mapper_Part_Wildcard::generate()
Net_URL_Mapper_Part_Dynamic::generate()
Net_URL_Mapper_Part_Fixed::generate()

Parameters:

   $value   — 

[ Top ]

getFormat   [line 73]

void getFormat( )

  • Abstract:
  • Access: public

Overridden in child classes as:

Net_URL_Mapper_Part_Wildcard::getFormat()
Net_URL_Mapper_Part_Dynamic::getFormat()
Net_URL_Mapper_Part_Fixed::getFormat()

[ Top ]

getRule   [line 75]

void getRule( )

  • Abstract:
  • Access: public

Overridden in child classes as:

Net_URL_Mapper_Part_Wildcard::getRule()
Net_URL_Mapper_Part_Dynamic::getRule()
Net_URL_Mapper_Part_Fixed::getRule()

[ Top ]

getType   [line 111]

void getType( )

  • Access: public

[ Top ]

isRequired   [line 127]

void isRequired( )

  • Access: public

[ Top ]

match   [line 134]

void match( $value)

  • Access: public

Parameters:

   $value   — 

[ Top ]

setDefaults   [line 106]

void setDefaults( $defaults)

  • Access: public

Parameters:

   $defaults   — 

[ Top ]

setRequired   [line 122]

void setRequired( $required)

  • Access: public

Parameters:

   $required   — 

[ Top ]

setRule   [line 68]

void setRule( $rule)

  • Access: public

Parameters:

   $rule   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:41:29 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.