Next4Me
 All Data Structures Files Functions Variables
ContextConditions Class Reference

Administrare ContextConditions. More...

Public Member Functions

 AddEditContextConditions ($entity)
 Adauga o inregistrare noua daca IdContextCondition==0, sau face update la una existenta daca IdContextCondition!=0.
 DeleteContextConditions ($entity)
 Sterge ContextConditions aferent IdContextCondition primit.
 GetContextConditions ($entity)
 Returneaza (in campul "response") MicroflowNextActions-ul aferent unui IdMicroflowNextAction (cand IdMicroflowNextAction!=0) sau toate inregistrarile (cand IdMicroflowNextAction==0). In caz de eroare (resId!=0), campul "response" contine descrierea erorii (tip string).

Protected Attributes

 $_name = "ContextConditions"
 tabela mapata de clasa
 $_primary = "IdContextCondition"
 cheie primara

Detailed Description

Administrare ContextConditions.

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

Definition at line 16 of file ContextConditions.php.


Member Function Documentation

AddEditContextConditions ( entity)

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

Parameters:
[in]Integer$IdContextConditionIdContextCondition
[in]Integer$IdContextIdContext din tabela Conexts
[in]Integer$IdTplContextConditionIdTplContextCondition din tabela tplContextConditions
[in]String$NameNume ContextConditions
[in]String$DescriptionDescriere
Exceptions:
<5002>Nu puteti muta un ContextConditions de pe un Contexts pe altul
<3010>Nu puteti edita un ContextConditions inexistent
Returns:
array(resultCode, resultId)
Used for testing ContextConditions

Definition at line 36 of file ContextConditions.php.

DeleteContextConditions ( entity)

Sterge ContextConditions aferent IdContextCondition primit.

Parameters:
[in]Integer$IdContextConditionIdContextCondition
Exceptions:
<4003>ContextCondition-ul nu poate fi sters deoarece sunt inregistrari asociate in tabela ContextFactors
<3011>Nu se poate sterge un ContextCondition care nu exista in baza de date
Returns:
array(resultCode, resultId)
Used for testing ContextConditions

Definition at line 108 of file ContextConditions.php.

GetContextConditions ( entity)

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

Parameters:
[in]Integer$IdContextConditionIdContextCondition
Exceptions:
<3012>ContextCondition-ul cerut nu exista in DB
Returns:
array(resultCode, resultId)
Used for testing ContextConditions

Definition at line 169 of file ContextConditions.php.


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