Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Both sides previous revision Previous revision Next revision | Previous revision | ||
core [19/05/2010 17:25] |
core [05/06/2013 17:08] (versione attuale) |
||
---|---|---|---|
Linea 3: | Linea 3: | ||
//class ApiController extends Controller//\\ | //class ApiController extends Controller//\\ | ||
\\ | \\ | ||
- | * loadApi - Carica l'api. | + | === eventHandler === |
- | //Descrizione//: | + | Il sistema invoca questa funzione per creare con evento.\\ |
- | reference loadApi(string $apiName) | + | Descrizione: //eventHandler(&$class, $handler, $params, &$prev)//\\ |
+ | Parametri: | ||
+ | * $class - array | ||
+ | * $handler - array | ||
+ | * $params - array | ||
+ | * $prev - array | ||
+ | Return: void | ||
- | * notify - Permette di notificare ai controller un evento. | + | === formatDate === |
- | //Descrizione//: | + | Formatta la data nel formato sql.\\ |
- | array notify($event, $params = array(), $make_plain_array = false) | + | Descrizione: //formatDate($sql_format, $format)//\\ |
+ | Parametri: | ||
+ | * $sql_format - string | ||
+ | * $format - string | ||
+ | Return: string | ||
- | * eventHandler - Il sistema invoca questa funzione per creare con evento. | + | === loadApi === |
- | //Descrizione//: | + | Carica l'api.\\ |
- | void eventHandler(&$class, $handler, $params = array(), &$prev = array()) | + | Descrizione: //loadApi($apiName)//\\ |
+ | Parametri: $apiName - string\\ | ||
+ | Return: reference | ||
- | * render - 'return false' poichè le API non posso renderizzare. | + | === notify === |
- | //Descrizione//: | + | Permette di notificare ai controller un evento.\\ |
- | boolean render($action = null, $layout = null, $file = null) | + | Descrizione: //notify($event, $params, $make_plain_array)//\\ |
+ | Parametri: | ||
+ | * $event - string | ||
+ | * $params - array | ||
+ | * $make_plain_array - array | ||
+ | Return: array | ||
- | * s - Traduce la stringa. | + | === render === |
- | //Descrizione//: | + | 'return false' poichè le API non posso renderizzare.\\ |
- | s($string, $force_encode = true) | + | Descrizione: //render($action, $layout, $file)//\\ |
+ | Parametri: | ||
+ | * $action - string | ||
+ | * $layout - string | ||
+ | * $file - string | ||
+ | Return: boolean | ||
- | * formatDate - Formatta la data nel formato sql. | + | === s === |
- | //Descrizione//: | + | Traduce la stringa.\\ |
- | void formatDate($sql_format, $format = 'date') | + | Descrizione: //s($string, $force_encode)//\\ |
+ | Parametri: | ||
+ | * $string - string | ||
+ | * $force_encode - boolean | ||
+ | Return: string |