Gumbo_Router
Router Class
Author(s): |
Michael Luster <mluster79@yahoo.com> |
License: | New BSD License |
Copyright: | Copyright (c) 2007, iBayou, Michael Luster |
Link: | http://sourceforge.net/projects/phpgumbo |
Version: | 0.0.1 |
Implements interfaces:
Class Variables
bool $_active = false [line 40]
int $_delay = GUMBO_ROUTER_DELAY [line 43]
bool $_flush = GUMBO_ROUTER_FLUSH [line 45]
string $_url [line 38]
Class Methods
public Gumbo_Router __construct ( [string $url], [int $delay], [bool $flush] )
[line 56]
Constructor
Parameter(s):
- (string) $url
- (int) $delay :: time, in seconds, before routing
- (bool) $flush :: flushes the buffer before routing
- postcondition:
$this->activate()
[ Top ]getUrl() - postcondition:
isActive() Implementation of:
[ Top ]!isActive() Implementation of:
[ Top ]public bool getFlush ( ) [line 219]Returns if the buffer should be flushed
Implementation of:
[ Top ]isActive () - throws:
Gumbo_Exception Implementation of:
[ Top ]public void setDelay ( int $delay ) [line 160]Sets the delay time, in seconds, before routing
Parameter(s):
- (int) $delay
- throws:
Gumbo_Exception - precondition:
$delay >= 0 - precondition:
$delay <= 30 Implementation of:
[ Top ]public void setFlush ( bool $val ) [line 182]Sets the program to flush the buffer before routing
Parameter(s):
- (bool) $val
- throws:
Gumbo_Exception Implementation of:
[ Top ]public void setUrl ( string $url ) [line 133]Sets the URL to jump to
Parameter(s):
- (string) $url
- precondition:
Valid::isUrl () - throws:
Gumbo_Exception - uses:
Gumbo_Valid_Web Implementation of:
[ Top ]