Next4Me
 All Data Structures Files Functions Variables
AssetProperties Class Reference

Administrare AssetProperties. More...

Public Member Functions

 AddEditAssetProperties ($entity)
 Adauga o inregistrare noua daca IdAssetProperty==0, sau face update la una existenta daca IdAssetProperty!=0.
 DeleteAssetProperties ($entity)
 Sterge AssetProperties aferent IdAssetProperty sau IdAsset primit.
 GetAssetProperties ($entity)
 Returneaza (in campul "response") AssetProperties-ul aferent unui IdAssetProperty (cand IdAssetProperty!=0) sau toate inregistrarile (cand IdAssetProperty==0). Daca se primeste ca parametru IdAsset va returna toate AssetProperties-urile aferente unui IdAsset Selectia se face cu conditia SI intre IdAssetProperty si IdAsset In caz de eroare (resId!=0), campul "response" contine descrierea erorii (tip string).

Protected Attributes

 $_name = "AssetProperties"
 tabela mapata de clasa
 $_primary = "IdAssetProperty"
 cheie primara

Detailed Description

Administrare AssetProperties.

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

Definition at line 16 of file AssetProperties.php.


Member Function Documentation

AddEditAssetProperties ( entity)

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

Parameters:
[in]Integer$IdAssetPropertyID AssetProperty
[in]Integer$IdAssetID Asset din tabela Assets
[in]String$NameNume asset proprietate
[in]String$PropertyValueValoare proprietate
Exceptions:
<5001>Nu puteti muta un AssetProperties de pe un Asset pe altul
<3004>Nu puteti edita un AssetProperties inexistent
Returns:
array(resultCode, resultId)
Used for testing AssetProperties

Definition at line 35 of file AssetProperties.php.

DeleteAssetProperties ( entity)

Sterge AssetProperties aferent IdAssetProperty sau IdAsset primit.

Parameters:
[in]Integer$IdAssetPropertyID AssetProperty
[in]Integer$IdAssetIdAsset legatura cu tabela Assets
Exceptions:
<3005>Nu puteti sterge un AssetProperties care nu exista.
Returns:
array(resultCode, resultId)
Used for testing AssetProperties

Definition at line 110 of file AssetProperties.php.

GetAssetProperties ( entity)

Returneaza (in campul "response") AssetProperties-ul aferent unui IdAssetProperty (cand IdAssetProperty!=0) sau toate inregistrarile (cand IdAssetProperty==0). Daca se primeste ca parametru IdAsset va returna toate AssetProperties-urile aferente unui IdAsset Selectia se face cu conditia SI intre IdAssetProperty si IdAsset In caz de eroare (resId!=0), campul "response" contine descrierea erorii (tip string).

Parameters:
[in]Integer$IdAssetPropertyID AssetProperty
[in]Integer$IdAssetIdAsset legatura cu tabela Assets
Exceptions:
<3006>Nu exista nici o inregistrare in DB aferenta IdAssetProperty primit.
Returns:
array(resultId, resultCode)
Used for testing AssetProperties

Definition at line 183 of file AssetProperties.php.


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