dolibarr 21.0.0-alpha
asset.lib.php File Reference

Library files with common functions for Assets. More...

Go to the source code of this file.

Functions

 assetAdminPrepareHead ()
 Prepare admin pages header.
 
 assetPrepareHead (Asset $object)
 Prepare array of tabs for Asset.
 
 assetModelPrepareHead ($object)
 Prepare array of tabs for AssetModel.
 

Detailed Description

Library files with common functions for Assets.

Definition in file asset.lib.php.

Function Documentation

◆ assetAdminPrepareHead()

assetAdminPrepareHead ( )

Prepare admin pages header.

Returns
array<array{0:string,1:string,2:string}> head array with tabs

Definition at line 31 of file asset.lib.php.

References complete_head_from_modules().

◆ assetModelPrepareHead()

assetModelPrepareHead ( $object)

Prepare array of tabs for AssetModel.

Parameters
AssetModel$objectAssetModel
Returns
array<array{0:string,1:string,2:string}> Array of tabs to show

Definition at line 184 of file asset.lib.php.

References $object, complete_head_from_modules(), and getDolGlobalString().

◆ assetPrepareHead()

assetPrepareHead ( Asset $object)

Prepare array of tabs for Asset.

Parameters
Asset$objectAsset
Returns
array<array{0:string,1:string,2:string}> Array of tabs

Definition at line 88 of file asset.lib.php.

References $object, complete_head_from_modules(), Link\count(), dol_dir_list(), dol_sanitizeFileName(), and getDolGlobalString().