Next4Me
 All Classes Files Functions Variables
Application_Model_EntityType Class Reference

Administrare EntityType implementeaza metodele addEditEntityType / getEntityTypeById / getEntityTypeByType / getEntityTypeByIdParent / getEntityTypeByParentType / getEntityTypeTree / deleteEntityType. More...

Inheritance diagram for Application_Model_EntityType:

Public Member Functions

 addEditEntityType ($entity)
 Adauga un nou Entity daca IdEntityType=0 si daca este !=0 editeaza Entity-ul respectiv ATENTIE!! La introducerea unei inregistrari toate campurile sunt OBLIGATORII. Chiar daca nu exista date se trimite gol. La Editare in afara de id toate sunt optionale. More...
 
 getEntityTypeById ($Entity)
 Returneaza in responseCode un array cu toate campurile aferente IdEntityType. More...
 
 getEntityTypeByType ($Entity)
 Returneaza in responseCode un array cu toate campurile aferente Type. More...
 
 getEntityTypeByIdParent ($Entity)
 Returneaza in responseCode un array cu toate campurile aferente IdParent. More...
 
 getEntityTypeByParentType ($Entity)
 Returneaza in responseCode un array cu toti copii aferenti unui ParentType. More...
 
 getEntityTypeTree ($parent_id=0, $array_by_parent=array(), $array_by_id=array())
 Returneaza in responseCode un array in care este tree-ul cu toate campurile. More...
 
 deleteEntityType ($entity)
 sterge un EntityType aferent IdEntityType primit More...
 

Protected Attributes

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

Detailed Description

Administrare EntityType implementeaza metodele addEditEntityType / getEntityTypeById / getEntityTypeByType / getEntityTypeByIdParent / getEntityTypeByParentType / getEntityTypeTree / deleteEntityType.

Definition at line 15 of file EntityType.php.

Member Function Documentation

addEditEntityType (   $entity)

Adauga un nou Entity daca IdEntityType=0 si daca este !=0 editeaza Entity-ul respectiv ATENTIE!! La introducerea unei inregistrari toate campurile sunt OBLIGATORII. Chiar daca nu exista date se trimite gol. La Editare in afara de id toate sunt optionale.

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

Definition at line 33 of file EntityType.php.

deleteEntityType (   $entity)

sterge un EntityType aferent IdEntityType primit

Parameters
[in]$IdEntityType[Integer] IdEntityType
Exceptions
<3180>Nu exista in DB entity-ul care trebuie sters
<3181>Nu se poate sterge entity-ul care are copii
Returns
array(resCode, resId)
Used for testing EntityType

Definition at line 348 of file EntityType.php.

getEntityTypeById (   $Entity)

Returneaza in responseCode un array cu toate campurile aferente IdEntityType.

Parameters
[in]$IdEntityType[Integer] IdEntityType
Exceptions
<3175>Nu exista nici o inregistrare in DB
Returns
array(responseCode, responseId)
Used for testing EntityType

Definition at line 95 of file EntityType.php.

getEntityTypeByIdParent (   $Entity)

Returneaza in responseCode un array cu toate campurile aferente IdParent.

Parameters
[in]$IdParent[Integer] IdParent
Exceptions
<3177>Nu sunt inregistrari in DB
Returns
array(resCode, resId)
Used for testing EntityType

Definition at line 192 of file EntityType.php.

getEntityTypeByParentType (   $Entity)

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

Parameters
[in]$Type[String] tip entitate
Exceptions
<3178>Parentul nu exista in baza de date
<3179>Parentul nu are copii
Returns
array(resCode, resId)
Used for testing EntityType

Definition at line 244 of file EntityType.php.

getEntityTypeByType (   $Entity)

Returneaza in responseCode un array cu toate campurile aferente Type.

Parameters
[in]$Type[String] tipul entitatii
Exceptions
<3176>Nu exista nici o inregistrare in DB
Returns
array(resCode, resId)
Used for testing EntityType

Definition at line 145 of file EntityType.php.

getEntityTypeTree (   $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]$IdParent[Integer] IdParent
Returns
array(resCode, resId)
Used for testing EntityType

Definition at line 307 of file EntityType.php.


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