Next4Me
 All Data Structures Files Functions Variables
Entity Class Reference

Administrare Entity implementeaza metodele addEditEntity / getEntityById / getEntityType / getEntityByIdParent / getEntityByParentType / getEntityTree / deleteEntity. More...

Public Member Functions

 addEditEntity ($entity)
 Adauga un nou Entity daca IdEntityType=0 si daca este !=0 editeaza Entity-ul respectiv.
 getEntityById ($Entity)
 Returneaza in responseCode un array cu toate campurile aferente IdEntityType.
 getEntityType ($Entity)
 Returneaza in responseCode un array cu toate campurile aferente Type.
 getEntityByIdParent ($Entity)
 Returneaza in responseCode un array cu toate campurile aferente IdParent.
 getEntityByParentType ($Entity)
 Returneaza in responseCode un array cu toti copii aferenti unui ParentType.
 getEntityTree ($parent_id=0, $array_by_parent=array(), $array_by_id=array())
 Returneaza in responseCode un array in care este tree-ul cu toate campurile.
 deleteEntity ($entity)
 sterge un Entity aferent IdEntityType primit

Protected Attributes

 $_name = "EntityTypes"
 tabela mapata de clasa
 $_primary = "IdEntityType"
 cheie primara

Detailed Description

Administrare Entity implementeaza metodele addEditEntity / getEntityById / getEntityType / getEntityByIdParent / getEntityByParentType / getEntityTree / deleteEntity.

Definition at line 12 of file entity.php.


Member Function Documentation

addEditEntity ( entity)

Adauga un nou Entity daca IdEntityType=0 si daca este !=0 editeaza Entity-ul respectiv.

Parameters:
[in]Integer$IdEntityTypeIdEntityType
[in]String$Type
[in]Integer$IdParent
Exceptions:
<3079>O inregistrare inexistenta nu poate fi editata
Returns:
array(responseCode, responseId)
Used for testing adm_entity

Definition at line 28 of file entity.php.

deleteEntity ( entity)

sterge un Entity aferent IdEntityType primit

Parameters:
[in]Integer$IdEntityTypeIdEntityType
Exceptions:
<3085>Nu exista in DB entity-ul care trebuie sters
Returns:
array(resCode, resId)
Used for testing adm_entity

Definition at line 340 of file entity.php.

getEntityById ( Entity)

Returneaza in responseCode un array cu toate campurile aferente IdEntityType.

Parameters:
[in]Integer$IdEntityTypeIdEntityType
Exceptions:
<3080>Nu exista nici o inregistrare in DB
Returns:
array(responseCode, responseId)
Used for testing adm_entity

Definition at line 88 of file entity.php.

getEntityByIdParent ( Entity)

Returneaza in responseCode un array cu toate campurile aferente IdParent.

Parameters:
[in]Integer$IdParentIdParent
Exceptions:
<3082>Nu sunt inregistrari in DB
Returns:
array(resCode, resId)
Used for testing adm_entity

Definition at line 185 of file entity.php.

getEntityByParentType ( Entity)

Returneaza in responseCode un array cu toti copii aferenti unui ParentType.

Parameters:
[in]String$Typetip entitate
Exceptions:
<3083>Parentul nu exista in baza de date
<3084>Parentul nu are copii
Returns:
array(resCode, resId)
Used for testing adm_entity

Definition at line 237 of file entity.php.

getEntityTree ( parent_id = 0,
array_by_parent = array(),
array_by_id = array() 
)

Returneaza in responseCode un array in care este tree-ul cu toate campurile.

Parameters:
[in]Integer$IdParentIdParent
Returns:
array(resCode, resId)
Used for testing adm_entity

Definition at line 300 of file entity.php.

getEntityType ( Entity)

Returneaza in responseCode un array cu toate campurile aferente Type.

Parameters:
[in]String$Typetipul entitatii
Exceptions:
<3081>Nu exista nici o inregistrare in DB
Returns:
array(resCode, resId)
Used for testing adm_entity

Definition at line 138 of file entity.php.


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