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

Class: Net_URL_Mapper_Path

Source Location: /Net_URL_Mapper-0.9.0/Mapper/Path.php

Class Overview




Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 49]


[ Top ]


Class Variables

$alias =

[line 59]

  • Access: protected

Type:   mixed


[ Top ]

$defaults = array()

[line 61]

  • Access: protected

Type:   mixed


[ Top ]

$fixed =  true

[line 67]

  • Access: protected

Type:   mixed


[ Top ]

$format =

[line 64]

  • Access: protected

Type:   mixed


[ Top ]

$maxKeys =

[line 66]

  • Access: protected

Type:   mixed


[ Top ]

$minKeys =

[line 65]

  • Access: protected

Type:   mixed


[ Top ]

$parts = array()

[line 62]

  • Access: protected

Type:   mixed


[ Top ]

$required =

[line 68]

  • Access: protected

Type:   mixed


[ Top ]

$rule =

[line 63]

  • Access: protected

Type:   mixed


[ Top ]

$rules = array()

[line 60]

  • Access: protected

Type:   mixed


[ Top ]

$token =

[line 53]

  • Access: public

Type:   mixed


[ Top ]

$value =

[line 54]

  • Access: public

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 70]

Net_URL_Mapper_Path __construct( [ $path = ''], [ $defaults = array()], [ $rules = array()])

  • Access: public

Parameters:

   $path   — 
   $defaults   — 
   $rules   — 

[ Top ]

addPart   [line 181]

void addPart( $part)

  • Access: protected

Parameters:

   $part   — 

[ Top ]

createPart   [line 200]

void createPart( $type, $content, $path)

  • Access: public

Parameters:

   $type   — 
   $content   — 
   $path   — 

[ Top ]

generate   [line 236]

void generate( [ $values = array()], [ $qstring = array()], [ $anchor = ''])

  • Access: public

Parameters:

   $values   — 
   $qstring   — 
   $anchor   — 

[ Top ]

getAlias   [line 102]

null|string getAlias( )

Get the path alias

Path aliases can be used instead of full path

  • Access: public

[ Top ]

getDefaults   [line 122]

null|array getDefaults( )

Get the path parts default values
  • Access: public

[ Top ]

getFormat   [line 169]

void getFormat( )

  • Access: public

[ Top ]

getMaxKeys   [line 266]

void getMaxKeys( )

  • Access: public

[ Top ]

getPath   [line 87]

void getPath( )

  • Access: public

[ Top ]

getRequired   [line 252]

void getRequired( )

  • Access: public

[ Top ]

getRule   [line 157]

string getRule( )

Returns the regular expression used to match this path
  • Return: PERL Regular expression
  • Access: public

[ Top ]

hasKey   [line 221]

void hasKey( string $partName, [mixed $value = null])

Checks whether the path contains the given part by name If value parameter is given, the part also checks if the given value conforms to the part rule.
  • Access: public

Parameters:

string   $partName   —  Part name
mixed   $value   —  The value to check against

[ Top ]

parsePath   [line 92]

void parsePath( )

  • Access: protected

[ Top ]

setAlias   [line 112]

void setAlias( string $alias)

Set the path name
  • See: getAlias()
  • Access: public

Parameters:

string   $alias   —  Set the path name

[ Top ]

setDefaults   [line 131]

void setDefaults( array $defaults)

Set the path parts default values
  • Access: public

Parameters:

array   $defaults   —  Associative array with format partname => value

[ Top ]

setRules   [line 144]

void setRules( array $rules)

Set the path parts default values
  • Access: public

Parameters:

array   $rules   —  Associative array with format partname => value

[ Top ]

yybegin   [line 297]

void yybegin( $state)


Parameters:

   $state   — 

[ Top ]

yylex   [line 281]

void yylex( )


[ Top ]

yylex1   [line 304]

void yylex1( )


[ Top ]

yypopstate   [line 292]

void yypopstate( )


[ Top ]

yypushstate   [line 286]

void yypushstate( $state)


Parameters:

   $state   — 

[ Top ]

yy_r1_1   [line 392]

void yy_r1_1( $yy_subpatterns)


Parameters:

   $yy_subpatterns   — 

[ Top ]

yy_r1_3   [line 399]

void yy_r1_3( $yy_subpatterns)


Parameters:

   $yy_subpatterns   — 

[ Top ]

yy_r1_5   [line 406]

void yy_r1_5( $yy_subpatterns)


Parameters:

   $yy_subpatterns   — 

[ Top ]

yy_r1_7   [line 413]

void yy_r1_7( $yy_subpatterns)


Parameters:

   $yy_subpatterns   — 

[ Top ]

yy_r1_9   [line 420]

void yy_r1_9( $yy_subpatterns)


Parameters:

   $yy_subpatterns   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:57:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.