dolibarr 23.0.3
AbstractDocumentController Class Reference
Inheritance diagram for AbstractDocumentController:
Collaboration diagram for AbstractDocumentController:

Protected Member Functions

 displayDocumentTable ($title, $itemList, $emptyMessage, array $linkBuilder)
 Renders an HTML file browser table for a given list of files and directories.
 

Additional Inherited Members

- Public Member Functions inherited from Controller
 __construct ()
 Constructor.
 
 action ()
 Action method is called before html output can be used to manage security and change context.
 
 checkAccess ()
 Check current access to controller.
 
 display ()
 Display.
 
 display404 ()
 Display error template.
 
 hookDoAction ($parameters=array())
 Execute hook doActions.
 
 hookPrintPageView ($parameters=array())
 Execute hook PrintPageView.
 
 loadTemplate ($templateName, $vars=false)
 Load a template .tpl file.
 

Detailed Description

Definition at line 25 of file abstractdocument.controller.class.php.

Member Function Documentation

◆ displayDocumentTable()

AbstractDocumentController::displayDocumentTable ( $title,
$itemList,
$emptyMessage,
array $linkBuilder )
protected

Renders an HTML file browser table for a given list of files and directories.

Parameters
string$titleThe main H2 title for the page.
array<int,array<string,mixed>>$itemList The list of items from dol_dir_list('all').
string$emptyMessageThe message to display if the list is empty.
array<string,callable>$linkBuilder An array of functions to build URLs ('dir' and 'file').
Returns
void

Definition at line 36 of file abstractdocument.controller.class.php.

References dol_print_date(), and dol_print_size().

Referenced by DocumentListController\display(), and SharedDocumentsController\display().


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