Smutty_Utils
public class Smutty_Utils
| Method Summary | |
|---|---|
| static array | arrayObjDiff(array x, array y, String p) computes the difference of arrays composed of objects |
| static String | returns the base URL for the appliation |
| static String | getFullUrl(array params) this function is just like getUrl(), only it includes the protocol://server:port part to. |
| static String | this function returns the smutty url (ie. |
| static String | returns a unique 10 char id string |
| static String | getUrl(array params, array args) gets the url for a controller/action/etc... |
| static hash | strToHash(String str) this function turns a commer seperated string into a hash (associative array). |
public static array arrayObjDiff(array x, array y, String p)
computes the difference of arrays composed of objects
public static String getBaseUrl()
returns the base URL for the appliation
public static String getFullUrl(array params)
this function is just like getUrl(), only it includes the protocol://server:port part to.
public static String getSmuttyUrl()
this function returns the smutty url (ie. with any base url and query string stipped off)
public static String getUniqueId()
returns a unique 10 char id string
public static String getUrl(array params, array args)
gets the url for a controller/action/etc... it's assumed that the controller is the current controller unless you specify otherwise.
this tries to make the url extra pretty by stripping off anything on the end of the url that isn't needed (default values, etc...)
public static hash strToHash(String str)
this function turns a commer seperated string into a hash (associative array). it treats the string as having commer seperated values like...
name,value,name,value
this is a utility class that provides a number of static method for doing various things within Smutty
/