|
dolibarr 25.0.0-alpha
|
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. | |
Library files with common functions for QuickMemo.
Definition in file quickmemo.lib.php.
| quickmemoAdminPrepareHead | ( | ) |
Prepare admin pages header.
Definition at line 30 of file quickmemo.lib.php.
References $conf, complete_head_from_modules(), and dolBuildUrl().
| 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.
| string | $element_type | Element type of the object ('' for global contexts like home page) |
| int | $element_id | Id of the object |
| bool | $moduleLevelOnly | True to check only the permission on the module (memo shared on all objects of this type) |
Definition at line 94 of file quickmemo.lib.php.
References $module, $object, getElementProperties(), and restrictedArea().
Referenced by Memo\loadQuickMemoJsInterface().