dolibarr 20.0.0
FormCardWebPortal Class Reference

Class to manage generation of HTML components Only common components for WebPortal must be here. More...

Public Member Functions

 __construct ($db)
 Constructor.
 
 init ($elementEn, $id=0, $permissiontoread=0, $permissiontoadd=0, $permissiontodelete=0, $permissionnote=0, $permissiondellink=0)
 Init.
 
 doActions ()
 Do actions.
 
 elementCard ($context)
 Card for an element in the page context.
 

Protected Member Functions

 header ($context)
 Html for header.
 
 bodyView ($keyforbreak='')
 Html for body (view mode)
 
 bodyEdit ()
 Html for body (edit mode)
 
 footer ()
 Html for footer.
 

Detailed Description

Class to manage generation of HTML components Only common components for WebPortal must be here.

Definition at line 35 of file html.formcardwebportal.class.php.

Constructor & Destructor Documentation

◆ __construct()

FormCardWebPortal::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 132 of file html.formcardwebportal.class.php.

Member Function Documentation

◆ bodyEdit()

FormCardWebPortal::bodyEdit ( )
protected

Html for body (edit mode)

Returns
string

Definition at line 636 of file html.formcardwebportal.class.php.

References dol_print_date(), dol_sort_array(), GETPOST(), GETPOSTINT(), price2num(), and verifCond().

Referenced by elementCard().

◆ bodyView()

FormCardWebPortal::bodyView ( $keyforbreak = '')
protected

Html for body (view mode)

Parameters
string$keyforbreak[=''] Key for break left block
Returns
string Html for body

Definition at line 535 of file html.formcardwebportal.class.php.

References dol_sort_array(), and verifCond().

Referenced by elementCard().

◆ doActions()

FormCardWebPortal::doActions ( )

◆ elementCard()

FormCardWebPortal::elementCard ( $context)

Card for an element in the page context.

Parameters
Context$contextContext object
Returns
string Html output

Definition at line 744 of file html.formcardwebportal.class.php.

References bodyEdit(), bodyView(), dol_escape_htmltag(), and header().

◆ footer()

FormCardWebPortal::footer ( )
protected

Html for footer.

Returns
string

Definition at line 729 of file html.formcardwebportal.class.php.

◆ header()

FormCardWebPortal::header ( $context)
protected

Html for header.

Parameters
Context$contextContext object
Returns
string

Definition at line 434 of file html.formcardwebportal.class.php.

References dol_escape_htmltag(), and dol_htmlentities().

Referenced by doActions(), and elementCard().

◆ init()

FormCardWebPortal::init ( $elementEn,
$id = 0,
$permissiontoread = 0,
$permissiontoadd = 0,
$permissiontodelete = 0,
$permissionnote = 0,
$permissiondellink = 0 )

Init.

Parameters
string$elementEnElement (english) : "member" (for adherent), "partnership"
int$id[=0] ID element
int$permissiontoread[=0] Permission to read (0 : access forbidden by default)
int$permissiontoadd[=0] Permission to add (0 : access forbidden by default), used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
int$permissiontodelete[=0] Permission to delete (0 : access forbidden by default)
int$permissionnote[=0] Permission to note (0 : access forbidden by default)
int$permissiondellink[=0] Permission to delete links (0 : access forbidden by default)
Returns
void

Definition at line 150 of file html.formcardwebportal.class.php.

References accessforbidden(), dol_include_once(), getDolGlobalString(), GETPOST(), and ref.


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