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

Class: Mapper

Source Location: /mapper.php

Class Overview


URI Mapper


Author(s):

Version:

  • 0.1.2

Variables

Methods



Class Details

[line 36]
URI Mapper

connects the current URI to a Route, establishing the request variable names e.g. my_domain/:resource/:id would map values into $req->resource and $req->id

Usage:

  1.    $req new Mapper();

More info... http://dbscript.net/mapper




Tags:

version:  0.1.2
access:  public
author:  Brian Hendrickson <brian@dbscript.net>


[ Top ]


Class Variables

$activeroute =

[line 66]

matched Route object


Type:   Route


[ Top ]

$allowed_methods =

[line 78]

list of public methods


Type:   string[]


[ Top ]

$base =

[line 48]

base URI


Type:   string


[ Top ]

$DbSession =

[line 120]

database Record object for the current session


Type:   string


[ Top ]

$error =

[line 108]

true if an error has been raised


Type:   boolean


[ Top ]

$error_string =

[line 114]

contents of error message


Type:   string


[ Top ]

$layout_path =

[line 96]

path to layouts


Type:   string


[ Top ]

$params =

[line 60]

URI parameter names and values


Type:   string[]


[ Top ]

$persisted_vars =

[line 84]

parameters to (silently) propagate


Type:   string[]


[ Top ]

$routes =

[line 72]

list of connected Route objects


Type:   Route[]


[ Top ]

$template_path =

[line 90]

path to views


Type:   string


[ Top ]

$uri =

[line 42]

current URI


Type:   string


[ Top ]

$userid =

[line 102]

id of encrypted Cookie owner


Type:   string


[ Top ]

$values =

[line 54]

unmolested regex parts of the URI


Type:   string[]


[ Top ]



Class Methods


constructor Mapper [line 122]

Mapper Mapper( )



[ Top ]

method breadcrumbs [line 226]

void breadcrumbs( )



[ Top ]

method composite_uri [line 494]

void composite_uri( )



[ Top ]

method connect [line 355]

void connect( )



[ Top ]

method entry_url [line 288]

void entry_url( [ $id = NULL])



Parameters:

   $id  

[ Top ]

method feed_url [line 279]

void feed_url( )



[ Top ]

method generate [line 395]

void generate( [ $controller = 'index.php'], [ $action = 'get'])



Parameters:

   $controller  
   $action  

[ Top ]

method get_template_path [line 312]

void get_template_path( $ext, [ $template = null])



Parameters:

   $ext  
   $template  

[ Top ]

method handle_error [line 146]

void handle_error( $errstr)



Parameters:

   $errstr  

[ Top ]

method hasErrors [line 524]

void hasErrors( )



[ Top ]

method is_allowed [line 351]

void is_allowed( $method)



Parameters:

   $method  

[ Top ]

method link_to [line 217]

void link_to( $params, [ $altparams = NULL])



Parameters:

   $params  
   $altparams  

[ Top ]

method match [line 437]

void match( $url, $r)



Parameters:

   $url  
   $r  

[ Top ]

method new_url [line 301]

void new_url( )



[ Top ]

method propagate [line 530]

void propagate( )



[ Top ]

method redirect_to [line 222]

void redirect_to( $params, [ $altparams = NULL])



Parameters:

   $params  
   $altparams  

[ Top ]

method restore [line 540]

void restore( )



[ Top ]

method routematch [line 399]

void routematch( [ $url = NULL])



Parameters:

   $url  

[ Top ]

method set_action [line 261]

void set_action( $method)



Parameters:

   $method  

[ Top ]

method set_filter [line 257]

void set_filter( $name, $func, [ $when = 'after'])



Parameters:

   $name  
   $func  
   $when  

[ Top ]

method set_layout_path [line 271]

void set_layout_path( $path)



Parameters:

   $path  

[ Top ]

method set_param [line 265]

void set_param( $param, $value)



Parameters:

   $param  
   $value  

[ Top ]

method set_persisted_vars [line 252]

void set_persisted_vars( $arr)



Parameters:

   $arr  

[ Top ]

method set_template_path [line 275]

void set_template_path( $path)



Parameters:

   $path  

[ Top ]

method url_for [line 152]

void url_for( $params, [ $altparams = NULL])



Parameters:

   $params  
   $altparams  

[ Top ]


Documentation generated on Mon, 19 Feb 2007 10:24:48 -0800 by phpDocumentor 1.3.1