Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Both sides previous revision Previous revision Next revision | Previous revision | ||
texts [21/05/2010 12:38] |
texts [13/07/2010 14:59] |
||
---|---|---|---|
Linea 3: | Linea 3: | ||
//class TextsApiController extends ApiController//\\ | //class TextsApiController extends ApiController//\\ | ||
\\ | \\ | ||
- | * add - Aggiunge un testo. | + | === add === |
- | //Descrizione//: | + | Aggiunge un testo.\\ |
- | boolean add($name, $text, $language) | + | Descrizione: //add($name, $text, $language)//\\ |
+ | Parametri: | ||
+ | * $name - string | ||
+ | * $text - string | ||
+ | * $language - string | ||
+ | Return: boolean | ||
- | * getText - Ritorna il testo. | + | === delete === |
- | //Descrizione//: | + | Cancella il testo identificato con l'id.\\ |
- | getText($name) | + | Descrizione: //delete($id)//\\ |
+ | Parametri: $id - int\\ | ||
+ | Return: boolean | ||
- | * edit - Modifica il testo. | + | === edit === |
- | //Descrizione//: | + | Modifica il testo.\\ |
- | edit($name, $text, $language) | + | Descrizione: //edit($name, $text, $language)//\\ |
+ | Parametri: | ||
+ | * $name - string | ||
+ | * $text - string | ||
+ | * $language - string | ||
+ | Return: boolean | ||
- | * delete - Cancella il testo identificato con l'id. | + | === getText === |
- | //Descrizione//: | + | Ritorna il testo.\\ |
- | boolean delete($id) | + | Descrizione: //getText($name)//\\ |
+ | Parametri: $name - string\\ | ||
+ | Return: string o boolean 'false' | ||
- | * view - Visualizza il testo. | + | === permissionsGetActions === |
- | //Descrizione//: | + | Ritorna un array con le azioni prodotte dal modulo.\\ |
- | view($name,$params) | + | Descrizione: //permissionsGetActions()//\\ |
+ | Parametri: nessun parametro\\ | ||
+ | Return: array | ||
- | * permissionsGetObjects - Ritorna un array con gli oggetti prodotti dal modulo. | + | === permissionsGetObjects === |
- | //Descrizione//: | + | Ritorna un array con gli oggetti prodotti dal modulo.\\ |
- | permissionsGetObjects() | + | Descrizione: //permissionsGetObjects()//\\ |
+ | Parametri: nessun parametro\\ | ||
+ | Return: array | ||
- | * permissionsGetActions - Ritorna un array con le azioni prodotte dal modulo. | + | === permissionsGetRoles === |
- | //Descrizione//: | + | Ritorna un array con i ruoli appartenenti al modulo.\\ |
- | permissionsGetActions() | + | Descrizione: //permissionsGetRoles()//\\ |
+ | Parametri: nessun parametro\\ | ||
+ | Return: array | ||
- | * permissionsGetRoles - Ritorna un array con i ruoli appartenenti al modulo. | + | === view === |
- | //Descrizione//: | + | Visualizza il testo.\\ |
- | permissionsGetRoles() | + | Descrizione: //view($name,$params)//\\ |
+ | Parametri: | ||
+ | * $name - string | ||
+ | * $params - string | ||
+ | Return: string |