dolibarr 25.0.0-alpha
quickmemo.lib.php File Reference

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

Go to the source code of this file.

Functions

 quickmemoAdminPrepareHead ()
 Prepare admin pages header.
 
 quickMemoInterfaceCanAccessElement ($element_type, $element_id, $moduleLevelOnly=false)
 Check that current user can read the object a memo is attached to.
 

Detailed Description

Library files with common functions for QuickMemo.

Definition in file quickmemo.lib.php.

Function Documentation

◆ quickmemoAdminPrepareHead()

quickmemoAdminPrepareHead ( )

Prepare admin pages header.

Returns
array<array{string,string,string}>

Definition at line 30 of file quickmemo.lib.php.

References $conf, complete_head_from_modules(), and dolBuildUrl().

◆ quickMemoInterfaceCanAccessElement()

quickMemoInterfaceCanAccessElement ( $element_type,
$element_id,
$moduleLevelOnly = false )

Check that current user can read the object a memo is attached to.

Writing a memo does not change the object, so read access on the object is enough.

Parameters
string$element_typeElement type of the object ('' for global contexts like home page)
int$element_idId of the object
bool$moduleLevelOnlyTrue to check only the permission on the module (memo shared on all objects of this type)
Returns
bool

Definition at line 94 of file quickmemo.lib.php.

References $module, $object, getElementProperties(), and restrictedArea().

Referenced by Memo\loadQuickMemoJsInterface().