dolibarr  21.0.0-alpha
Public Member Functions | Protected Member Functions | List of all members
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. More...
 
 init ($elementEn, $id=0, $permissiontoread=0, $permissiontoadd=0, $permissiontodelete=0, $permissionnote=0, $permissiondellink=0)
 Init. More...
 
 doActions ()
 Do actions. More...
 
 elementCard ($context)
 Card for an element in the page context. More...
 

Protected Member Functions

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

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.

◆ 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.

◆ doActions()

FormCardWebPortal::doActions ( )

Do actions.

Returns
void

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

◆ 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.

◆ 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.

◆ 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.


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