Next4Me
 All Data Structures Files Functions Variables
ContextFactors Class Reference

Administrare ContextFactors Clasa implementeaza functiile de add/edit/delete/get pentru ContextFactors. More...

Public Member Functions

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

Protected Attributes

 $_name = "ContextFactors"
 tabela mapata de clasa
 $_primary = "IdContextFactor"
 cheie primara

Detailed Description

Administrare ContextFactors Clasa implementeaza functiile de add/edit/delete/get pentru ContextFactors.

Definition at line 15 of file ContextFactors.php.


Member Function Documentation

AddEditContextFactors ( entity)

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

Parameters:
[in]Integer$IdContextFactorID ContextFactor
[in]Integer$IdContextConditionIdContextCondition din tabela ConditionContexts
[in]Integer$IdTplContextFactorsIdTplContextFactors din tabela TplContextFactors
[in]String$DescriptionDescriere contextfactor
[in]String$Typetipul
[in]String$Functionfunctie
[in]String$Valuevaloare
Exceptions:
<5003>Nu puteti muta un ContextFactors de pe un ConditionContext pe altul
<3013>Nu puteti edita un ContextFactors inexistent
Returns:
array(resultCode, resultId)
Used for testing ContextFactors

Definition at line 37 of file ContextFactors.php.

DeleteContextFactors ( entity)

Sterge ContextFactors aferent IdContextFactor primit.

Parameters:
[in]Integer$IdContextFactor
Exceptions:
<3014>Nu puteti sterge un ContextFactors inexistent
Returns:
array(resultCode, resultId)
Used for testing ContextFactors

Definition at line 108 of file ContextFactors.php.

GetContextFactors ( entity)

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

Parameters:
[in]Integer$IdContextFactor
Exceptions:
<3015>ContextFactor-ul cerut nu exista in DB
Returns:
array(resultCode, resultId)
Used for testing ContextFactors

Definition at line 157 of file ContextFactors.php.


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