Gumbo PHP Library API Documentation
Router
[
class tree
] [
index
] [
all elements
]
Todo List
Packages:
Buffer
Collection
Composite
Config
Converter
Curl
Date
DB
Debug
Encryption
Error
Factory
Filter
Flyweight
Http
Input
Iterator
List
Load
Lockable
Log
Map
Number
Observer
Output
Query
Record
Router
Session
Setting
Singleton
Template
Timer
Utility
Valid
Source for file Router.class.php
Documentation is available at
Router.class.php
<?php
/**
* Gumbo Library Framework
*
* LICENSE
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
*
*
@category
Gumbo
*
@package
Router
*
@copyright
Copyright (c) 2007, iBayou, Michael Luster
*
@license
http://www.opensource.org/licenses/bsd-license.php New BSD License
*
@author
Michael Luster <mluster79@yahoo.com>
*
@link
http://sourceforge.net/projects/phpgumbo
*
@version
0.0.1
*/
/**
* Router Interface
*
* A Router is simply a class that changes the current location of the browser
* to the specified URL. In order to jump, the object must be active. The Delay
* is meant to hold from the jump for a given amount of time (in seconds). The
* Flush option will flush the buffer before routing.
*
*
@category
Gumbo
*
@package
Router
*
@copyright
Copyright (c) 2007, iBayou, Michael Luster
*
@license
http://www.opensource.org/licenses/bsd-license.php New BSD License
*
@author
Michael Luster <mluster79@yahoo.com>
*
@link
http://sourceforge.net/projects/phpgumbo
*
@desc
Router Interface
*
@version
0.0.1
*/
interface
Gumbo_Interface_Router
{
/** ACTION METHODS **/
/**
* Jumps to the supplied URL
*
@precondition
isActive ()
*/
public
function
go
(
)
;
/**
* Activates the Router
*
@postcondition
isActive()
*/
public
function
activate
(
)
;
/**
* Deactivates the Router
*
@postcondition
!isActive()
*/
public
function
deactivate
(
)
;
/** MUTATOR METHODS **/
/**
* Sets the URL to jump to
*
@precondition
Valid_Web::isUrl ()
*
@param
string
$url
*/
public
function
setUrl
(
$url
)
;
/**
* Sets the delay time, in seconds, before routing
*
@precondition
0 <= delay <= 30
*
@param
int
$delay
*/
public
function
setDelay
(
$delay
)
;
/**
* Sets the program to flush the buffer before routing
*
@param
bool
$val
*/
public
function
setFlush
(
$val
)
;
/** ACCESSOR METHODS **/
/**
* Returns the Url
*
@return
string
*/
public
function
getUrl
(
)
;
/**
* Returns the delay time, in seconds
*
@return
int
*/
public
function
getDelay
(
)
;
/**
* Returns if the buffer should be flushed
*
@return
bool
*/
public
function
getFlush
(
)
;
/**
* Returns if the Router is active
*
@return
bool
*/
public
function
isActive
(
)
;
}
?>