Next4Me
 All Data Structures Files Functions Variables
CmplxAssetAndProperties Class Reference

Public Member Functions

 GetAssetAndProperties ($entity)
 Adauga o inregistrare noua daca IdAsset==0, sau face update la una existenta daca IdAsset!=0.
 AddEditAssetAndProperties ($entity, $IdUser)
 Adauga o inregistrare noua daca IdAsset==0, sau face update la una existenta daca IdAsset!=0. De asemenea daca IdAssetProperty=0 adauga un AssetProperties nou. In cazul in care IdAssetProperty>0 il editeaza pe acesta. Iar pentru IdAssetProperty <0 sterge AssetProperties-ul respectiv adica daca IdAssetProperty=-12 va sterge AssetProperties-ul cu IdAssetProperty=12.
 DeleteAssetAndProperties ($entity)
 Sterge o inregistrare aferenta IdAsset atit din tabela Assets cat si din AssetProperties.

Detailed Description

Definition at line 21 of file CmplxAssets.php.


Member Function Documentation

AddEditAssetAndProperties ( entity,
IdUser 
)

Adauga o inregistrare noua daca IdAsset==0, sau face update la una existenta daca IdAsset!=0. De asemenea daca IdAssetProperty=0 adauga un AssetProperties nou. In cazul in care IdAssetProperty>0 il editeaza pe acesta. Iar pentru IdAssetProperty <0 sterge AssetProperties-ul respectiv adica daca IdAssetProperty=-12 va sterge AssetProperties-ul cu IdAssetProperty=12.

Parameters:
[in]Integer$entity,['IdAsset']ID Asset
[in]Integer$entity,['IdTplAssetType']IdTplAssetType din tabela tplAssetTypes
[in]String$entity,['Name']Nume asset
[in]Integer$entity,['IdUser']ID User din tabela UserAccounts
[in]array$entity,['AssetProperties']cu elementele: Integer $IdAssetProperty, Integer $IdAsset, String $Name, Decimal $PropertyValue, String $PropertyString, Date $PropertyDate, Integer $PropertyType
Returns:
array(resultCode, resultId)
Used for testing CmplxAssets

Definition at line 75 of file CmplxAssets.php.

DeleteAssetAndProperties ( entity)

Sterge o inregistrare aferenta IdAsset atit din tabela Assets cat si din AssetProperties.

Parameters:
[in]Integer$IdAssetID Asset
Returns:
array(resultCode, resultId)
Used for testing CmplxAssets

Definition at line 149 of file CmplxAssets.php.

GetAssetAndProperties ( 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>Cand se incearca editarea unei inregistrari inexisente va returna eroare self descriptiva
Returns:
array(resultCode, resultId)
Used for testing Assets

Definition at line 36 of file CmplxAssets.php.


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