Dotclear 2.24
|
HTML Forms creation 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) |
HTML Forms creation helpers.
|
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:
Uses formSelectOption
string | array | $nid | Element ID and name |
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 themeEditorBehaviors\adminPreferencesForm(), tagsBehaviors\adminUserForm(), adminSearch\displayComments(), adminSearch\displayPosts(), dcDefaultPostActions\doChangePostCategory(), dcDefaultPostActions\doChangePostLang(), dcWidget\formSetting(), dcImportDC1\gui(), dcImportFlat\gui(), dcImportWP\gui(), dcPage\open(), adminUserPreferences\prefLine(), adminUserPreferences\prefsTable(), adminCategories\render(), adminComment\render(), adminComments\render(), adminIndex\render(), adminLangs\render(), adminPopupLink\render(), adminPopupPosts\render(), adminPost\render(), adminPosts\render(), adminUserPrefs\render(), adminSearch\render(), adminUser\render(), adminUsers\render(), adminBlogrollEdit\render(), adminBlowupConfig\render(), adminMaintenance\render(), adminPages\render(), adminPage\render(), adminSimpleMenu\render(), adminTag\render(), adminWidgets\render(), adminConfigThemeDuctile\render(), adminAboutConfig\settingLine(), adminAboutConfig\settingsTable(), and testCombo().
|
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 | $nid | Element ID and name |
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 dcWidget\formSetting(), adminUpdate\render(), adminBlogrollEdit\render(), adminMaintenance\render(), and testRadio().
|
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 | $nid | Element ID and name |
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 breadcrumbBehaviors\adminBlogPreferencesForm(), dcMaintenanceAdmin\adminDashboardOptionsForm(), themeEditorBehaviors\adminPreferencesForm(), tagsBehaviors\adminRemoveTags(), dcWidget\formSetting(), dcActions\getCheckboxes(), dcBlogsActions\getCheckboxes(), dcExportFlat\gui(), dcImportWP\gui(), dcFilterWords\gui(), adminMediaList\mediaLine(), pingsAdminBehaviors\pingsFormItems(), adminAuth\render(), adminMedia\render(), adminPost\render(), adminUserPrefs\render(), adminUser\render(), adminUsersActions\render(), adminAntispam\render(), adminBlogrollEdit\render(), adminBlogroll\render(), adminBlowupConfig\render(), adminMaintenance\render(), adminPage\render(), adminPings\render(), adminSimpleMenu\render(), adminConfigThemeDuctile\render(), adminPage\showComments(), adminPost\showComments(), ieMaintenanceExportblog\step(), ieMaintenanceExportfull\step(), and testCheckbox().
|
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 | $nid | Element ID and name |
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 dcPage\close(), adminModulesList\displaySearch(), dcDefaultPostActions\doChangePostAuthor(), dcDefaultPostActions\doChangePostCategory(), dcWidget\formSetting(), dcFilterAkismet\gui(), dcExportFlat\gui(), dcImportDC1\gui(), dcImportWP\gui(), dcFilterWords\gui(), adminUserPreferences\prefLine(), adminAuth\render(), adminCategory\render(), adminComment\render(), adminIndex\render(), adminMedia\render(), adminPopupLink\render(), adminPopupPosts\render(), adminPost\render(), adminUserPrefs\render(), adminSearch\render(), adminUser\render(), adminBlogrollEdit\render(), adminBlogroll\render(), adminBlowupConfig\render(), adminPage\render(), adminPings\render(), adminSimpleMenu\render(), adminTag\render(), adminConfigThemeDuctile\render(), adminAboutConfig\settingLine(), ieMaintenanceExportblog\step(), ieMaintenanceExportfull\step(), and testField().
|
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
Uses form::field
string | array | $nid | Element ID and name |
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 dcImportDC1\gui(), dcImportFlat\gui(), dcImportWP\gui(), adminAuth\render(), adminLangs\render(), adminUserPrefs\render(), adminUser\render(), adminUsersActions\render(), ieMaintenanceExportblog\step(), ieMaintenanceExportfull\step(), and testPassword().
|
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
Uses form::field
string | array | $nid | Element ID and name |
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 dcWidget\formSetting(), adminBlowupConfig\render(), adminConfigThemeDuctile\render(), and testColor().
|
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
Uses form::field
string | array | $nid | Element ID and name |
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 dcWidget\formSetting(), adminAuth\render(), adminComment\render(), adminPost\render(), adminUserPrefs\render(), adminUser\render(), adminPage\render(), and testEmail().
|
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
Uses form::field
string | array | $nid | Element ID and name |
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 dcImportFeed\gui(), adminComment\render(), adminPost\render(), adminUserPrefs\render(), adminUser\render(), adminBlogrollEdit\render(), adminPage\render(), adminPings\render(), adminConfigThemeDuctile\render(), and testUrl().
|
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
Uses form::field
string | array | $nid | Element ID and name |
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 adminPost\render(), adminPage\render(), and testDatetime().
|
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
Uses form::field
string | array | $nid | Element ID and name |
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 |
Referenced by testDate().
|
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
Uses form::field
string | array | $nid | Element ID and name |
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 |
Referenced by testTime().
|
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 | $nid | Element ID and name |
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 |
Referenced by testFile().
|
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 | $nid | Element ID and name |
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 antispamBehaviors\adminBlogPreferencesForm(), dcWidget\formSetting(), dcPager\getLinks(), dcImportDC1\gui(), dcImportWP\gui(), adminUserPreferences\prefLine(), adminUserPrefs\render(), adminUser\render(), adminAntispam\render(), adminBlogroll\render(), adminPage\render(), adminSimpleMenu\render(), adminWidgets\render(), adminConfigThemeDuctile\render(), adminAboutConfig\settingLine(), adminWidgets\sidebarWidgets(), and testNumber().
|
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 | $nid | Element ID and name |
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 |
Referenced by testTextArea().
|
static |
Hidden field
Returns HTML code for an hidden field. $nid could be a string or an array of name and ID.
string | array | $nid | Element ID and name |
mixed | $value | Element value |
Referenced by tagsBehaviors\adminAddTags(), attachmentAdminBehaviors\adminPostAfterForm(), themeEditorBehaviors\adminPreferencesForm(), tagsBehaviors\adminRemoveTags(), dcIeModule\autoSubmit(), adminGenericFilterV2\display(), dcDefaultPostActions\doChangePostAuthor(), dcDefaultPostActions\doChangePostCategory(), dcDefaultPostActions\doChangePostLang(), dcWidget\formSetting(), dcExportFlat\gui(), dcImportDC1\gui(), dcImportFeed\gui(), dcImportFlat\gui(), dcImportWP\gui(), dcFilterWords\gui(), dcImportDC1\imForm(), dcImportWP\imForm(), dcPage\open(), adminUserPreferences\prefLine(), adminMedia\process(), adminAuth\render(), adminCategory\render(), adminComment\render(), adminIndex\render(), adminLangs\render(), adminMedia\render(), adminPopupPosts\render(), adminPost\render(), adminUserPrefs\render(), adminUser\render(), adminUsersActions\render(), adminAntispam\render(), adminBlogrollEdit\render(), adminBlogroll\render(), adminMaintenance\render(), adminPages\render(), adminPage\render(), adminSimpleMenu\render(), adminTag\render(), adminThemeEditor\render(), adminWidgets\render(), adminConfigThemeDuctile\render(), adminAboutConfig\settingLine(), dcPager\setURL(), adminWidgets\sidebarWidgets(), and testHidden().