FormListWebPortal
class FormListWebPortal (View source)
Class to manage generation of HTML components Only common components for WebPortal must be here.
Properties
| DoliDB | $db | ||
| AbstractListController | $controller | ||
| string | $element | ||
| string | $contextpage | ||
| string | $action | ||
| FormWebPortal | $form | ||
| CommonObject | $object | ||
| string | $titleKey | ||
| string | $titleDescKey | ||
| int | $limit | ||
| int | $page | ||
| string | $sql_select | ||
| string | $sql_body | ||
| string | $sql_order | ||
| string | $emptyValueKey | ||
| int | $offset | ||
| string | $sortfield | ||
| string | $sortorder | ||
| array<string, array{type?: string, label: string, checked: int<0, 1>, visible: int<0, 1>, enabled: bool|int<0, 1>, position: int, help: string}> | $arrayfields | ||
| array<string, mixed> | $search | ||
| string | $search_all | ||
| array<string, string> | $fields_to_search_all | ||
| string | $params | ||
| int | $nbtotalofrecords | ||
| stdClass> | $records | ||
| int | $nbColumn | ||
| Societe> | $companyStaticList |
Methods
Do actions
Set array fields
Set columns visibility
Set search values
set SQL request
Load record from SQL request
Set params
Print input field for search list
Function to load data from a SQL pointer into properties of current object $this
Print value for list
Set total value for list
Get class css list
Details
__construct(DoliDB $db)
Constructor
void
init(AbstractListController $controller, string $elementEn)
Init
void
doActions()
Do actions
void
setArrayFields()
Set array fields
void
setColumnsVisibility()
Set columns visibility
void
setSearchValues(bool $clear = false)
Set search values
void
setSqlRequest()
set SQL request
void
loadRecords()
Load record from SQL request
void
setParams()
Set params
string
printSearchInput(string $field_key, array<string, mixed> $field_spec)
Print input field for search list
void
setVarsFromFetchObj(stdClass $record)
Function to load data from a SQL pointer into properties of current object $this
string
printValue(string $field_key, array<string, mixed> $field_spec, stdClass $record, int $i, array<string, mixed> $totalarray)
Print value for list
void
setTotalValue(string $field_key, array<string, mixed> $field_spec, stdClass $record, int $i, array<string, mixed> $totalarray)
Set total value for list
string
getClasseCssList(string $field_key, array<string, mixed> $field_spec, bool $for_value = false)
Get class css list