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