Next4Me
 All Data Structures Files Functions Variables
Regions Class Reference

clasa are ca si metode addEditRegion / deleteRegion / getRegionById / getRegionByParent / getRegionByType / getRegionRecursiveByParentId More...

Public Member Functions

 addEditRegion ($entity)
 Adauga o inregistrare noua daca primeste IdRegion==0 iar daca !=0 editeaza inregistrarea aferenta.
 getRegionById ($Entity)
 Intoarce un array cu toate fieldurile aferente unui id.
 getRegionByType ($Entity)
 returneaza toate regiunile de un anumit tip
 getRegionByParent ($Entity)
 returneaza un array cu toate regiunile care sunt child pentru Parentul trimis
 getRegionRecursiveByParentId ($parent_id=0, $array_by_parent=array(), $array_by_id=array())
 returneaza un tree pe baza unui IdParent primit
 deleteRegion ($entity)
 sterge o regiune aferenta unui id primit

Protected Attributes

 $_name = "Regions"
 tabela mapata de clasa
 $_primary = "IdRegion"
 cheie primara

Detailed Description

clasa are ca si metode addEditRegion / deleteRegion / getRegionById / getRegionByParent / getRegionByType / getRegionRecursiveByParentId

Definition at line 12 of file regions.php.


Member Function Documentation

addEditRegion ( entity)

Adauga o inregistrare noua daca primeste IdRegion==0 iar daca !=0 editeaza inregistrarea aferenta.

Parameters:
[in]Integer$IdRegion
[in]String$Value
[in]Integer$IdParent
[in]String$Type
Exceptions:
<3086>O inregistrare inexistenta in DB nu poate fi editata
Returns:
array(resultCode, resultId)
Used for testing adm_region

Definition at line 29 of file regions.php.

deleteRegion ( entity)

sterge o regiune aferenta unui id primit

Parameters:
[in]Integer$IdRegion
Exceptions:
<3090>Nu se poate sterge o inregistrare care nu exista in baza de date
Returns:
array(resultCode, resultId)
Used for testing adm_region

Definition at line 279 of file regions.php.

getRegionById ( Entity)

Intoarce un array cu toate fieldurile aferente unui id.

Parameters:
[in]Integer$IdRegion
Exceptions:
<3087>Inregistrarea ceruta nu exista in baza de date
Returns:
array(resultCode, resultId)
Used for testing adm_region

Definition at line 91 of file regions.php.

getRegionByParent ( Entity)

returneaza un array cu toate regiunile care sunt child pentru Parentul trimis

Parameters:
[in]Integer$IdParent
Exceptions:
<3089>Nu exista inregistrari asociate parentului
Returns:
array(resultCode, resultId)
Used for testing adm_region

Definition at line 189 of file regions.php.

getRegionByType ( Entity)

returneaza toate regiunile de un anumit tip

Parameters:
[in]String$Type
Exceptions:
<3088>In baza de date nu exista regiuni de tip-ul cerut
Returns:
array(resultCode, resultId)
Used for testing adm_region

Definition at line 139 of file regions.php.

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

returneaza un tree pe baza unui IdParent primit

Parameters:
[in]Integer$IdParent
Returns:
array(resultCode, resultId)
Used for testing adm_region

Definition at line 237 of file regions.php.


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