PiiHelper
| Package | pii.core |
|---|---|
| Inheritance | class PiiHelper |
| Since | 2.0 |
| Version | $Id$ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| classExists() | PiiHelper | |
| clearfloat() | Returns a clearfloat HTML snip | PiiHelper |
| configure() | Addiditional config string parsing | PiiHelper |
| findModule() | Finds a module by id, returns 'pii' if no id given | PiiHelper |
| getActions() | PiiHelper | |
| getClassProperties() | PiiHelper | |
| getControllers() | PiiHelper | |
| getModules() | PiiHelper | |
| getPostVar() | Retrieves $_POST variable by array values | PiiHelper |
| hash() | PiiHelper | |
| icon() | Returns a clearfloat HTML snip | PiiHelper |
| language() | PiiHelper | |
| lcfirst() | Lowercases only the first character of a string | PiiHelper |
| powered() | PiiHelper | |
| publishAsset() | PiiHelper | |
| registerJsExtension() | PiiHelper | |
| return_url() | PiiHelper | |
| t() | A wrapper for Yii::t(), you may use this method for special translations, like dynamic values. | PiiHelper |
| table() | PiiHelper | |
| uri() | Return the current requestUri | PiiHelper |
Method Details
classExists()
method
|
public static void classExists($classPath)
| ||
| $classPath | ||
clearfloat()
method
|
public static string clearfloat()
| ||
| {return} | string | |
Returns a clearfloat HTML snip
configure()
method
|
public
| ||
| $key | $key | |
| {return} | ||
Addiditional config string parsing
findModule()
method
|
public static CModule findModule(string $id=NULL)
| ||
| $id | string | $id |
| {return} | CModule | |
Finds a module by id, returns 'pii' if no id given
getActions()
method
|
public static void getActions($controller)
| ||
| $controller | ||
getClassProperties()
method
|
public static void getClassProperties($classPath)
| ||
| $classPath | ||
getControllers()
method
|
public static void getControllers($module=NULL)
| ||
| $module | ||
getModules()
method
|
public static void getModules()
|
getPostVar()
method
|
public static string getPostVar(array $array)
| ||
| $array | array | $array "the key-chain" |
| {return} | string | |
Retrieves $_POST variable by array values
hash()
method
|
public static void hash($input)
| ||
| $input | ||
icon()
method
|
public static string icon($key, $type=NULL)
| ||
| $key | ||
| $type | ||
| {return} | string | |
Returns a clearfloat HTML snip
language()
method
|
public static void language($type=NULL)
| ||
| $type | ||
lcfirst()
method
|
public static string lcfirst(
| ||
| $string | $string | |
| {return} | string | |
Lowercases only the first character of a string
powered()
method
|
public static
| ||
| {return} | ||
publishAsset()
method
|
public static
| ||
| $relativePath | $relativePath | |
| {return} | ||
registerJsExtension()
method
|
public static void registerJsExtension($path=NULL)
| ||
| $path | ||
return_url()
method
|
public static void return_url()
|
t()
method
|
public static
| ||
| $category | $category | |
| $message | $message | |
| $params | $params | |
| $source | $source | |
| $language | $language | |
| {return} | ||
A wrapper for Yii::t(), you may use this method for special translations, like dynamic values.
table()
method
|
public static void table($data)
| ||
| $data | ||
uri()
method
|
public static string uri()
| ||
| {return} | string | |
Return the current requestUri