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

Class: Router

Source Location: /system/classes/router.class.php

Class Overview


Class Router


Constants

Methods



Class Details

[line 6]
Class Router



[ Top ]


Class Methods


static method convertUrl [line 201]

static string convertUrl( string $url, [int $requestMethod = self::HTTP_REQUEST_GET])

Convert a URL

e.g. [SITE_URL]/article.php?story=welcome -> [SITE_URL]/index.php/article/welcome or [SITE_URL]/article/welcome




Tags:

access:  public


Parameters:

string   $url  
int   $requestMethod  

[ Top ]

static method dispatch [line 50]

static bool dispatch( )

Dispatch the client based on $_SERVER['PATH_INFO']



Tags:

return:  when not dispatched
access:  public


[ Top ]

static method setDebug [line 40]

static void setDebug( bool $switch)

Set debug mode



Tags:

access:  public


Parameters:

bool   $switch  

[ Top ]


Class Constants

DEFAULT_PRIORITY =  100

[line 28]


[ Top ]

HTTP_REQUEST_DELETE =  4

[line 12]


[ Top ]

HTTP_REQUEST_GET =  1

[line 9]


[ Top ]

HTTP_REQUEST_HEAD =  5

[line 13]


[ Top ]

HTTP_REQUEST_POST =  2

[line 10]


[ Top ]

HTTP_REQUEST_PUT =  3

[line 11]


[ Top ]

PLACEHOLDER_MATCH =  '|(@[a-zA-Z][0-9a-zA-Z_]*)|'

[line 21]


[ Top ]

PLACEHOLDER_REPLACE =  '([^/&=?#]+)'

[line 22]


[ Top ]

ROUTING_DISABLED =  0

[line 16]


[ Top ]

ROUTING_WITHOUT_INDEX_PHP =  2

[line 18]


[ Top ]

ROUTING_WITH_INDEX_PHP =  1

[line 17]


[ Top ]

VALUE_MATCH =  '|[^0-9a-zA-Z_.-]|'

[line 25]


[ Top ]



Documentation generated on Sun, 02 Oct 2016 07:54:06 +0000 by phpDocumentor 1.4.3