dev.obliquid.com: general
[ class tree: general ] [ index: general ] [ all elements ]

Class: url

Source Location: Program_Root/classes/general/url.php

Class Overview




Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 29]




[ Top ]


Class Variables

$Args = array()

[line 40]




Type:   mixed


[ Top ]

$Cache =

[line 41]




Type:   mixed


[ Top ]

$Dynamic =

[line 38]




Type:   mixed


[ Top ]

$Fragment =

[line 37]




Type:   mixed


[ Top ]

$Host =

[line 33]




Type:   mixed


[ Top ]

$Path =

[line 35]




Type:   mixed


[ Top ]

$Port =

[line 34]




Type:   mixed


[ Top ]

$Query =

[line 36]




Type:   mixed


[ Top ]

$Scheme =

[line 32]




Type:   mixed


[ Top ]

$Text =

[line 31]




Type:   mixed


[ Top ]

$Valid =

[line 39]




Type:   mixed


[ Top ]

$xhtml = false

[line 42]




Type:   mixed


[ Top ]



Class Methods


method A [line 270]

string A( [string $name = FALSE], [boolean $full = FALSE])

URL::A()

Returns builded URL with <A> tags




Tags:

return:  URL with tags


Parameters:

string   $name   Name of link, it will be like this: <A HREF=...>$name</A>
boolean   $full   Set to TRUE if u want full URL (with hostname etc)

[ Top ]

method addVal [line 190]

string addVal( mixed $key, mixed $value)

URL::addVal() Adds a key to URL.



Tags:

return:  URL


Parameters:

mixed   $key   A key to add.
mixed   $value   Value of the key

[ Top ]

method Build [line 236]

string Build( [boolean $full = false])

URL::Build() This is can be used to build a URL.



Tags:

return:  URL


Parameters:

boolean   $full   Set to TRUE if u want full URL (with hostname etc)

[ Top ]

method Clear [line 162]

void Clear( string $Text)

URL::Clear() Clears previous URL and let u work with another.





Parameters:

string   $Text   This can be used to work with specific URL, not the current one.

[ Top ]

method dropVal [line 134]

string dropVal( mixed $key)

URL::dropVal() Drops a key from URL.

Changes: removed echo in case of missing key. May happen and can be ignored safely.




Tags:

return:  URL


Parameters:

mixed   $key   A key of value to drop.

[ Top ]

method dropVals [line 148]

string dropVals( $key $array)

URL::dropVals() Drops all the keys contained in associative array from URL.



Tags:

return:  URL


Parameters:

$key   $array   associative array with keys to drop.

[ Top ]

method getVal [line 175]

mixed getVal( $key $key)

URL::getVal()

Gets a value from URL. (Even that values that are from




Tags:

return:  key if everything is OK, or echo'es that key is not found.


Parameters:

$key   $key  

[ Top ]

method is_Set [line 222]

boolean is_Set( mixed $key)

URL::is_Set() Checks if key is set in the URL.





Parameters:

mixed   $key  

[ Top ]

method reload [line 279]

void reload( )

reloads the manipolated url





[ Top ]

method setVal [line 207]

Echo setVal( mixed $key, mixed $value, [boolean $create = FALSE])

URL::setVal()



Tags:

return:  if key not found and builded URL if everything ok.


Parameters:

mixed   $key   Key name for parameter.
mixed   $value   Value for parameter.
boolean   $create   Create new key if not exists.

[ Top ]

method setXhtml [line 67]

void setXhtml( mixed $xhtml)

Set if to output xhtml urls or not.

Activate it only for generating html, while leave it off for redirects






[ Top ]

method URL [line 50]

void URL( [mixed $Text = FALSE])

URL::URL()





Parameters:

mixed   $Text   U can specify URL that different from current

[ Top ]


Documentation generated on Tue, 29 Mar 2005 09:04:44 -0800 by phpDocumentor 1.2.0rc2