Next4Me
 All Data Structures Files Functions Variables
Assets Class Reference

Administrare Assets. More...

Public Member Functions

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

Protected Attributes

 $_name = "Assets"
 tabela mapata de clasa
 $_primary = "IdAsset"
 cheie primara

Detailed Description

Administrare Assets.

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

Definition at line 18 of file Assets.php.


Member Function Documentation

AddEditAssets ( entity)

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

Parameters:
[in]Integer$IdAssetID Asset
[in]Integer$IdTplAssetTypeIdTplAssetType din tabela tplAssetTypes
[in]String$NameNume asset
[in]Integer$IdUserID User din tabela UserAccounts
Exceptions:
<3001>Nu puteti edita o un Asset inexistent
Returns:
array(resultCode, resultId)
Used for testing Assets

Definition at line 36 of file Assets.php.

DeleteAssets ( entity)

Sterge tplAssets aferent IdAsset primit.

Parameters:
[in]Integer$IdAssetID Asset
Exceptions:
<3002>Nu puteti sterge o un Asset inexistent
<4001>Asset-ul nu poate fi sters deoarece sunt inregistrari asociate in tabela AssetProperties
Returns:
array(resultCode, resultId)
Used for testing Assets

Definition at line 96 of file Assets.php.

GetAssets ( entity)

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

Parameters:
[in]Integer$IdAssetID Asset
Exceptions:
<3003>In baza de date nu exista Asset-ul cerut
Returns:
array(resultCode, resultId)
Used for testing Assets

Definition at line 158 of file Assets.php.


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