HTML Form helpers. More...
Static Public Member Functions | |
static | combo ($nid, $data, $default= '',?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '') |
static | radio ($nid, $value, $checked=false,?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '') |
static | checkbox ($nid, $value, $checked=false,?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '') |
static | field ($nid,?int $size,?int $max, $default= '',?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '', bool $required=false,?string $type= 'text',?string $autocomplete= '') |
static | password ($nid, int $size,?int $max, $default= '',?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '', bool $required=false,?string $autocomplete= '') |
static | color ($nid, $size=7,?int $max=7,?string $default= '',?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '', bool $required=false,?string $autocomplete= '') |
static | email ($nid, $size=20,?int $max=255,?string $default= '',?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '', bool $required=false,?string $autocomplete= '') |
static | url ($nid, $size=20,?int $max=255,?string $default= '',?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '', bool $required=false,?string $autocomplete= '') |
static | datetime ($nid, $size=16,?int $max=16,?string $default= '',?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '', bool $required=false,?string $autocomplete= '') |
static | date ($nid, $size=10,?int $max=10,?string $default= '',?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '', bool $required=false,?string $autocomplete= '') |
static | time ($nid, $size=5,?int $max=5,?string $default= '',?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '', bool $required=false,?string $autocomplete= '') |
static | file ($nid, $default= '',?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '', bool $required=false) |
static | number ($nid, $min=null,?int $max=null,?string $default= '',?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '', bool $required=false,?string $autocomplete= '') |
static | textArea ($nid, int $cols, int $rows, $default= '',?string $class= '',?string $tabindex= '', bool $disabled=false,?string $extra_html= '', bool $required=false,?string $autocomplete= '') |
static | hidden ($nid, $value) |
Static Private Member Functions | |
static | getDefaults (string $class, string $method) |
HTML Form helpers.
|
staticprivate |
return an associative array of optional parameters of a class method
string | $class | class name |
string | $method | method name |
|
static |
Select Box
Returns HTML code for a select box. $nid could be a string or an array of name and ID. $data is an array with option titles keys and values in values or an array of object of type formSelectOption. If $data is an array of arrays, optgroups will be created.
$default could be a string or an associative array of any of optional parameters:
```php form::combo(['name', 'id'], $data, ['class' => 'maximal', 'extra_html' => 'data-language="php"']); ```
string|array{0 | string, 1?: string}|null $nid The identifier | |
mixed | $data | Select box data |
mixed | $default | Default value in select box | associative array of optional parameters |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
Referenced by BackendBehaviors\adminPreferencesForm(), BackendBehaviors\adminUserForm(), Search\displayComments(), Search\displayPosts(), WidgetsElement\formSetting(), ModuleImportFlat\gui(), ModuleImportDc1\gui(), ModuleImportWp\gui(), Manage\prefLine(), LinkPopup\render(), PostsPopup\render(), Posts\render(), Home\render(), Search\render(), Comments\render(), ManagePosts\render(), Categories\render(), ManageEdit\render(), Manage\render(), Langs\render(), Wizard\render(), Comment\render(), User\render(), Config\render(), ManagePage\render(), Post\render(), UserPreferences\render(), and Manage\settingLine().
|
static |
Radio button
Returns HTML code for a radio button. $nid could be a string or an array of name and ID. $checked could be a boolean or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
mixed | $value | Element value |
mixed | $checked | True if checked | associative array of optional parameters |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
Referenced by WidgetsElement\formSetting(), ManageEdit\render(), and Manage\render().
|
static |
Checkbox
Returns HTML code for a checkbox. $nid could be a string or an array of name and ID. $checked could be a boolean or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
mixed | $value | Element value |
mixed | $checked | True if checked | associative array of optional parameters |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
Referenced by BackendBehaviors\adminBlogPreferencesForm(), BackendBehaviors\adminDashboardOptionsForm(), BackendBehaviors\adminPreferencesForm(), BackendBehaviors\adminRemoveTags(), ListingBlogs\blogLine(), ListingComments\commentLine(), IpV6\displayForms(), Ip\displayForms(), ThemesList\displayModules(), ModulesList\displayModules(), WidgetsElement\formSetting(), Words\gui(), ModuleExportFlat\gui(), ModuleImportWp\gui(), ListingMedia\mediaLine(), BackendBehaviors\pingsFormItems(), BackendList\postLine(), ListingPosts\postLine(), Manage\render(), ManageEdit\render(), User\render(), Config\render(), Media\render(), ManagePage\render(), Post\render(), UserPreferences\render(), ManagePage\showComments(), Post\showComments(), ExportFullMaintenanceTask\step(), ExportBlogMaintenanceTask\step(), and ListingUsers\userLine().
|
static |
Input field
Returns HTML code for an input field. $nid could be a string or an array of name and ID. $default could be a string or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
integer | $size | Element size |
integer | $max | Element maxlength |
mixed | $default | Element value | associative array of optional parameters |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
boolean | $required | Element is required |
string | $type | Input type |
string | $autocomplete | Autocomplete attributes if relevant |
Referenced by Page\close(), IpV6\displayForms(), Ip\displayForms(), ModulesList\displayManualForm(), ModulesList\displaySearch(), WidgetsElement\formSetting(), Words\gui(), ModuleImportDc1\gui(), AntispamFilterAkismet\gui(), ModuleExportFlat\gui(), ModuleImportWp\gui(), Manage\prefLine(), LinkPopup\render(), PostsPopup\render(), Home\render(), Search\render(), ManagePosts\render(), ManageEdit\render(), Category\render(), Manage\render(), Wizard\render(), Comment\render(), User\render(), Config\render(), Media\render(), ManagePage\render(), Install\render(), Post\render(), UserPreferences\render(), Manage\settingLine(), ExportFullMaintenanceTask\step(), and ExportBlogMaintenanceTask\step().
|
static |
Password field
Returns HTML code for a password field. $nid could be a string or an array of name and ID. $default could be a string or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
integer | $size | Element size |
integer | $max | Element maxlength |
mixed | $default | Element value | associative array of optional parameters |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
boolean | $required | Element is required |
string | $autocomplete | Autocomplete attributes if relevant (new-password/current-password) |
Referenced by ModulesList\displayManualForm(), ModuleImportFlat\gui(), ModuleImportDc1\gui(), ModuleImportWp\gui(), Langs\render(), Wizard\render(), User\render(), Install\render(), UserPreferences\render(), ExportFullMaintenanceTask\step(), and ExportBlogMaintenanceTask\step().
|
static |
HTML5 Color field
Returns HTML code for an input color field. $nid could be a string or an array of name and ID. $size could be a integer or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
mixed | $size | Element size | associative array of optional parameters |
integer | $max | Element maxlength |
string | $default | Element value |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
boolean | $required | Element is required |
string | $autocomplete | Autocomplete attributes if relevant |
Referenced by WidgetsElement\formSetting(), and Config\render().
|
static |
HTML5 Email field
Returns HTML code for an input email field. $nid could be a string or an array of name and ID. $size could be a integer or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
mixed | $size | Element size | associative array of optional parameters |
integer | $max | Element maxlength |
string | $default | Element value |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
boolean | $required | Element is required |
string | $autocomplete | Autocomplete attributes if relevant |
Referenced by WidgetsElement\formSetting(), Wizard\render(), Comment\render(), User\render(), ManagePage\render(), Install\render(), Post\render(), and UserPreferences\render().
|
static |
HTML5 URL field
Returns HTML code for an input (absolute) URL field. $nid could be a string or an array of name and ID. $size could be a integer or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
mixed | $size | Element size | associative array of optional parameters |
integer | $max | Element maxlength |
string | $default | Element value |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
boolean | $required | Element is required |
string | $autocomplete | Autocomplete attributes if relevant |
Referenced by ModuleImportFeed\gui(), Manage\render(), ManageEdit\render(), Comment\render(), User\render(), Config\render(), ManagePage\render(), Post\render(), and UserPreferences\render().
|
static |
HTML5 Datetime (local) field
Returns HTML code for an input datetime field. $nid could be a string or an array of name and ID. $size could be a integer or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
mixed | $size | Element size | associative array of optional parameters |
integer | $max | Element maxlength |
string | $default | Element value (in YYYY-MM-DDThh:mm format) |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
boolean | $required | Element is required |
string | $autocomplete | Autocomplete attributes if relevant |
Referenced by ManagePage\render(), and Post\render().
|
static |
HTML5 Date field
Returns HTML code for an input date field. $nid could be a string or an array of name and ID. $size could be a integer or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
mixed | $size | Element size | associative array of optional parameters |
integer | $max | Element maxlength |
string | $default | Element value (in YYYY-MM-DD format) |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
boolean | $required | Element is required |
string | $autocomplete | Autocomplete attributes if relevant |
|
static |
HTML5 Time (local) field
Returns HTML code for an input time field. $nid could be a string or an array of name and ID. $size could be a integer or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
mixed | $size | Element size | associative array of optional parameters |
integer | $max | Element maxlength |
string | $default | Element value (in hh:mm format) |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
boolean | $required | Element is required |
string | $autocomplete | Autocomplete attributes if relevant |
|
static |
HTML5 file field
Returns HTML code for an input file field. $nid could be a string or an array of name and ID. $default could be a integer or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
mixed | $default | Element value | associative array of optional parameters |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
boolean | $required | Element is required |
|
static |
HTML5 number input field
Returns HTML code for an number input field. $nid could be a string or an array of name and ID. $min could be a string or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
mixed | $min | Element min value (may be negative) | associative array of optional parameters |
integer | $max | Element max value (may be negative) |
string | $default | Element value |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
boolean | $required | Element is required |
string | $autocomplete | Autocomplete attributes if relevant |
Referenced by BackendBehaviors\adminBlogPreferencesForm(), WidgetsElement\formSetting(), Pager\getLinks(), ModuleImportDc1\gui(), ModuleImportWp\gui(), BackendList\postLine(), Manage\prefLine(), Manage\render(), User\render(), Config\render(), ManagePage\render(), UserPreferences\render(), Manage\settingLine(), and Manage\sidebarWidgets().
|
static |
Textarea
Returns HTML code for a textarea. $nid could be a string or an array of name and ID. $default could be a string or an associative array of any of optional parameters
string|array{0 | string, 1?: string}|null $nid The identifier | |
integer | $cols | Number of columns |
integer | $rows | Number of rows |
mixed | $default | Element value | associative array of optional parameters |
string | $class | Element class name |
string | $tabindex | Element tabindex |
boolean | $disabled | True if disabled |
string | $extra_html | Extra HTML attributes |
boolean | $required | Element is required |
string | $autocomplete | Autocomplete attributes if relevant |
|
static |
Hidden field
Returns HTML code for an hidden field. $nid could be a string or an array of name and ID.
string|array{0 | string, 1?: string}|null $nid The identifier | |
mixed | $value | Element value |
Referenced by BackendBehaviors\adminAddTags(), BackendBehaviors\adminPostAfterForm(), BackendBehaviors\adminPreferencesForm(), BackendBehaviors\adminRemoveTags(), Module\autoSubmit(), Filters\display(), ModulesList\displayConfiguration(), IpV6\displayForms(), Ip\displayForms(), ThemesList\displayModules(), ModulesList\displayModules(), ModulesList\displaySearch(), WidgetsElement\formSetting(), Words\gui(), ModuleImportFlat\gui(), ModuleImportDc1\gui(), ModuleExportFlat\gui(), ModuleImportWp\gui(), ModuleImportFeed\gui(), ModuleImportDc1\imForm(), ModuleImportWp\imForm(), Manage\prefLine(), Media\process(), PostsPopup\render(), Home\render(), Search\render(), ManagePosts\render(), Manage\render(), ManageEdit\render(), Category\render(), Langs\render(), Comment\render(), User\render(), Media\render(), Config\render(), ManagePage\render(), Install\render(), Post\render(), UserPreferences\render(), Manage\settingLine(), Pager\setURL(), Manage\sidebarWidgets(), and ListingUsers\userLine().