Class: Url

Source Location: /tinymvc/myapp/plugins/script.Url_Helper.php

Class Overview [line 7]


Utility plugin which wraps several key pieces of URI-based functionality.

Author(s):

Version:

Copyright:

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods



Class Details

Utility plugin which wraps several key pieces of URI-based functionality.

[ Top ]


Class Variables


Class Methods

static create

static void create( [ $page = null], [ $action = null], [ $args = array()], [ $entity_decode = false])

[line 12]

Creates a uri string custom-tailored to CookingSpecial. This simplifies and abstracts the process of creating links.

Parameters:

  • $page -
  • $action -
  • $args -
  • $entity_decode -

[ Top ]

static get

static void get( string $argumentName)

[line 36]

Retrieves a REQUEST argument (i.e. an argument from REQUEST.

Tags:

  • see - http://us3.php.net/manual/en/reserved.variables.request.php Returns the variable requested if $argumentName key is set, otherwise returns null.

Parameters:

  • string $argumentName - The name of the argument to return.

[ Top ]

static getBool

static void getBool( string $argumentName)

[line 58]

Retrieves a boolean argument.

Parameters:

  • string $argumentName - The name of the argument to return.

[ Top ]

static getInt

static void getInt( string $argumentName)

[line 48]

Retrieves an integer argument.

Parameters:

  • string $argumentName - The name of the argument to return.

[ Top ]

static redirect

static void redirect( string $toUrl, [int $code = 301])

[line 70]

Redirects the user to the given url.

Parameters:

  • string $toUrl - The url to redirect to.
  • int $code - [Optional] if headers already sent, the redirect code.

[ Top ]


Class Constants


Documentation generated on Tue, 26 May 2009 14:50:37 -0700 by phpDocumentor 1.4.1