Next4Me
 All Data Structures Files Functions Variables
Contexts Class Reference

Administrare Contexts. More...

Public Member Functions

 AddEditContexts ($entity)
 Adauga o inregistrare noua daca IdContext==0, sau face update la una existenta daca IdContext!=0.
 DeleteContexts ($entity)
 Sterge Contexts aferent IdContext primit.
 GetContexts ($entity)
 Returneaza (in campul "response") Contexts-ul aferent unui IdContext (cand IdContext!=0) sau toate inregistrarile (cand IdContext==0). In caz de eroare (resId!=0), campul "response" contine descrierea erorii (tip string).

Protected Attributes

 $_name = "Contexts"
 tabela mapata de clasa
 $_primary = "IdContext"
 cheie primara

Detailed Description

Administrare Contexts.

Clasa implementeaza functiile de add/edit/delete/get pentru Contexts.

Definition at line 17 of file Contexts.php.


Member Function Documentation

AddEditContexts ( entity)

Adauga o inregistrare noua daca IdContext==0, sau face update la una existenta daca IdContext!=0.

Parameters:
[in]Integer$IdContextIdContext
[in]Integer$IdTplContextIdTplContext din tabela tplContexts
[in]String$Namenume
[in]String$Descriptiondescriere
[in]Integer$IdUserIdUser din tabela UserAccounts
Exceptions:
<3007>O inregistrare inexistenta in tabela Contexts nu poate fi editata
Returns:
array(resCode, resId)
Used for testing Contexts

Definition at line 36 of file Contexts.php.

DeleteContexts ( entity)

Sterge Contexts aferent IdContext primit.

Parameters:
[in]Integer$IdContextIdContext
Exceptions:
<3008>Un Context care nu exista in DB nu poate fi sters
<4002>Context-ul nu poate fi sters deoarece sunt inregistrari asociate in tabela ContextConditions.
Returns:
array(resCode, resId)
Used for testing Contexts

Definition at line 98 of file Contexts.php.

GetContexts ( entity)

Returneaza (in campul "response") Contexts-ul aferent unui IdContext (cand IdContext!=0) sau toate inregistrarile (cand IdContext==0). In caz de eroare (resId!=0), campul "response" contine descrierea erorii (tip string).

Parameters:
[in]Integer$IdContext
Exceptions:
<3009>Context-ul cerut nu exista in DB
Returns:
array(Contexts)
Used for testing Contexts

Definition at line 159 of file Contexts.php.


The documentation for this class was generated from the following file: