add_spellchecker_words
alternate_fields_set__end
alternate_fields_set__start
attach_wysiwyg
build_preview
check_suhosin_request_quantity
check_suhosin_request_size
find_words
form_input_all_and_not
form_input_author
form_input_codename
form_input_colour
form_input_combo
form_input_date
form_input_date__scheduler
form_input_dimensions
form_input_email
form_input_float
form_input_huge
form_input_huge_comcode
form_input_huge_list
form_input_integer
form_input_line
form_input_line_comcode
form_input_line_multi
form_input_list
form_input_multi_list
form_input_na
form_input_page_link
form_input_password
form_input_radio
form_input_radio_entry
form_input_text
form_input_text_comcode
form_input_text_multi
form_input_theme_image
form_input_tick
form_input_tree_list
form_input_upload
form_input_upload_multi
form_input_upload_multi_source
form_input_url
form_input_username
form_input_username_multi
form_input_various_ticks
get_attachments
get_comcode_editor
get_field_restrict_property
get_form_field_tabindex
get_posting_form
handle_conflict_resolution
handle_max_file_size
read_multi_code
run_spellcheck
single_field__end
single_field__start
sl_get_custom_file_base
spell_correct_phrase
take_param_int_modeavg
url_default_parameters__disable
url_default_parameters__enable
wysiwyg_on
WORD_REGEXP
add_spellchecker_words(array $words)
alternate_fields_set__end(\ID_TEXT $set_name, mixed $pretty_name, mixed $description, \Tempcode $fields, boolean $required, \?URLPATH $existing_image_preview_url= null, boolean $raw= false) : \Tempcode
| package | core_form_interfaces |
|---|
\ID_TEXTThe codename for this field set (blank: just collect raw fields, no actual field set)
mixedThe human-readable name for this field set
mixedThe human-readable description for this field set
\TempcodeThe field set Tempcode
booleanWhether it is required that this field set be filled in
\?URLPATHImage URL to show, of the existing selection for this field (null: N/A) (blank: N/A)
booleanWhether we just want the raw set contents, without any wrapper field row
\TempcodeThe field setalternate_fields_set__start(\ID_TEXT $set_name) : \Tempcode
IMPORTANT: Note that this function uses global state -- any fields generated between alternate_fields_setstart and alternate_fields_setend will be rendered using field set templating.
| package | core_form_interfaces |
|---|
\ID_TEXTThe codename for this field set
\TempcodeTempcode to start attaching the field set tobuild_preview(boolean $multi_return = false) : mixed
| package | core_form_interfaces |
|---|
booleanWhether to return additional data
mixedEither Tempcode for the preview, or a tuple of detailscheck_suhosin_request_quantity(integer $inc= 1, integer $name_length= 0)
| package | core_form_interfaces |
|---|
integerHow much to increment the counter by
integerThe name length being checked
check_suhosin_request_size(integer $size)
| package | core_form_interfaces |
|---|
integerMost determinitve size within wider request size (we'll assume we actually need 500 more bytes than this)
find_words(string $text) : array
| package | core_form_interfaces |
|---|
stringText to scan for words in (should be plain text, not be HTML text)
arrayList of wordsform_input_all_and_not(mixed $pretty_name, mixed $description, string $base, \Tempcode $list, string $type= '+', \?integer $tabindex= null) : \Tempcode
| package | core_form_interfaces |
|---|---|
| set | + - * |
mixedA human intelligible name for this input field
mixedA description for this input field
stringThe base name which this input field is for
\TempcodeA list culmulation to select against
stringThe current type of partial selection
\?integerThe tab index of the field (null: not specified)
\TempcodeThe input fieldform_input_codename(mixed $pretty_name, mixed $description, \ID_TEXT $name, \?string $default, boolean $required, \?integer $tabindex= null, \?integer $_maxlength= null, \?array $extra_chars= null, \?string $placeholder= null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\?stringThe default value for this input field (null: blank)
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
\?integerThe maximum length of the field (null: default 80)
\?arrayList of extra characters to allow (null: none)
\?stringThe placeholder value for this input field (null: none)
\TempcodeThe input fieldform_input_colour(mixed $pretty_name, mixed $description, \ID_TEXT $name, \?string $default, boolean $required, \?integer $tabindex = null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\?stringThe default value for this input field (null: blank)
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
\TempcodeThe input fieldform_input_combo(mixed $pretty_name, mixed $description, \ID_TEXT $name, string $default, \Tempcode $options, \?integer $tabindex= null, boolean $required= true) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
stringCurrent selection
\TempcodeThe list entries for our list
\?integerThe tab index of the field (null: not specified)
booleanWhether this is required
\TempcodeThe input fieldform_input_date(mixed $pretty_name, mixed $description, \ID_TEXT $name, boolean $required, boolean $null_default, boolean $do_time, \?mixed $default_time= null, \?integer $total_years_to_show= 10, \?integer $year_start= null, \?integer $tabindex= null, boolean $do_date= true, \?ID_TEXT $timezone= null, boolean $handle_timezone= true) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe parameter name for this input field
booleanWhether this is not a required field
booleanWhether this field is empty by default
booleanWhether to input time for this field also
\?mixedThe default timestamp to use (either TIME or array of time components) (null: now)
\?integerThe number of years to allow selection from (pass a negative number for selection of past years instead of future years) (null: no limit)
\?integerThe year to start from (null: this year)
\?integerThe tab index of the field (null: not specified)
booleanWhether to input date for this field (if false, will just do time)
\?ID_TEXTTimezone to input in (null: current user's timezone)
booleanConvert $default_time to $timezone
\TempcodeThe input fieldform_input_date__scheduler(mixed $pretty_name, mixed $description, \ID_TEXT $name, boolean $required, boolean $null_default, boolean $do_time, \?mixed $default_time= null, integer $total_years_to_show= 10, \?integer $year_start= null, \?integer $tabindex= null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe parameter name for this input field
booleanWhether this is a required field
booleanWhether this field is empty by default
booleanWhether to input time for this field also
\?mixedThe default timestamp to use (either TIME or array of time components) (null: now)
integerThe number of years to allow selection from (all into the future, as this field type is not meant for inputting past dates)
\?integerThe year to start from (null: this year)
\?integerThe tab index of the field (null: not specified)
\TempcodeThe input fieldform_input_dimensions(mixed $pretty_name, mixed $description, \ID_TEXT $name_width, \ID_TEXT $name_height, \?integer $default_width, \?integer $default_height, boolean $required, \?integer $tabindex = null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for: width part
\ID_TEXTThe name which this input field is for: height part
\?integerThe default value for this input field: width part (null: no default)
\?integerThe default value for this input field: height part (null: no default)
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
\TempcodeThe input fieldform_input_email(mixed $pretty_name, mixed $description, \ID_TEXT $name, \?string $default, boolean $required, \?integer $tabindex = null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\?stringThe default value for this input field (null: blank)
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
\TempcodeThe input fieldform_input_float(mixed $pretty_name, mixed $description, \ID_TEXT $name, \?float $default, boolean $required, \?integer $tabindex = null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\?floatThe default value for this input field (null: no default)
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
\TempcodeThe input fieldform_input_huge(mixed $pretty_name, mixed $description, \ID_TEXT $name, string $default, boolean $required, \?integer $tabindex= null, integer $rows= 20, mixed $description_side= '', boolean $scrolls= false) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
stringThe default value for this input field
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
integerThe number of rows to use
mixedA secondary side description for this input field
booleanWhether the field scrolls
\TempcodeThe input fieldform_input_huge_comcode(mixed $pretty_name, mixed $description, \ID_TEXT $name, string $default, boolean $required, \?integer $tabindex= null, integer $rows= 20, mixed $description_side= '', \?Tempcode $default_parsed= null, boolean $scrolls= false, boolean $force_non_wysiwyg= false) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
stringThe default value for this input field
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
integerThe number of rows to use
mixedA secondary side description for this input field
\?TempcodeThe parsed Comcode. (null: calculate)
booleanWhether the field scrolls
booleanForce non-WYSIWYG and non default-Comcode parsing
\TempcodeThe input fieldform_input_huge_list(mixed $pretty_name, mixed $description, \ID_TEXT $name, \Tempcode $content, \?integer $tabindex= null, boolean $inline_list= false, boolean $required= true, \?integer $size= null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\TempcodeThe list entries for our list
\?integerThe tab index of the field (null: not specified)
booleanWhether this is an inline displayed list as opposed to a dropdown
booleanWhether this is required
\?integerSize of list (null: default)
\TempcodeThe input fieldform_input_integer(mixed $pretty_name, mixed $description, \ID_TEXT $name, \?integer $default, boolean $required, \?integer $tabindex = null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\?integerThe default value for this input field (null: no default)
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
\TempcodeThe input fieldform_input_line(mixed $pretty_name, mixed $description, \ID_TEXT $name, \?string $default, boolean $required, \?integer $tabindex= null, \?integer $_maxlength= null, string $type= 'text', \?string $placeholder= null, \?string $pattern= null, \?string $pattern_error= null) : \Tempcode
.. />).
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\?stringThe default value for this input field (null: blank)
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
\?integerThe maximum length of the field (null: default 255)
stringThe input type
\?stringThe placeholder value for this input field (null: none)
\?stringCustom regex pattern (null: none)
\?stringCustom regex pattern validation error (null: none)
\TempcodeThe input fieldform_input_line_comcode(mixed $pretty_name, mixed $description, \ID_TEXT $name, \?string $default, boolean $required, \?integer $tabindex = null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\?stringThe default value for this input field (null: blank)
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
\TempcodeThe input fieldform_input_line_multi(mixed $pretty_name, mixed $description, \ID_TEXT $name, array $default_array, integer $num_required, \?integer $tabindex= null, string $class= 'line', \?string $pattern= null, \?string $pattern_error= null) : \Tempcode
| package | core_form_interfaces |
|---|---|
| set | line email |
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe base parameter name which this input field is for (as this takes multiple parameters, they are named
arrayAn array of lines to use as default (at least this many lines, filled by this array, will be presented by default)
integerThe minimum number of inputs allowed.
\?integerThe tab index of the field (null: not specified)
stringCSS class for input.
\?stringCustom regex pattern (null: none)
\?stringCustom regex pattern validation error (null: none)
\TempcodeThe input fieldform_input_list(mixed $pretty_name, mixed $description, \ID_TEXT $name, \Tempcode $content, \?integer $tabindex= null, boolean $inline_list= false, boolean $required= true, \?array $images= null, integer $size= 5) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\TempcodeThe list entries for our list
\?integerThe tab index of the field (null: not specified)
booleanWhether this is an inline displayed list as opposed to a dropdown
booleanWhether this is required
\?arrayList of theme images that $content is allowing selection of (so that we can show the images within the list, if JS is enabled) (null: none)
integerHow much space the list takes up (inline lists only)
\TempcodeThe input fieldform_input_multi_list(mixed $pretty_name, mixed $description, \ID_TEXT $name, \Tempcode $content, \?integer $tabindex= null, integer $size= 5, boolean $required= false, \?ID_TEXT $custom_name= null, \?mixed $custom_value= null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\TempcodeThe list entries for our list
\?integerThe tab index of the field (null: not specified)
integerHow much space the list takes up
booleanWhether at least one must be selected
\?ID_TEXTName for custom value to be entered to (null: no custom value allowed)
\?mixedValue for custom value, string (accept single value) or array (accept multiple values) (null: no custom value known)
\TempcodeThe input fieldform_input_na(mixed $pretty_name, \?integer $tabindex = null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedThe human-readable name for this field
\?integerThe tab index (null: none specified)
\TempcodeThe fieldform_input_page_link(mixed $pretty_name, mixed $description, \ID_TEXT $name, \?string $default, boolean $required, \?integer $tabindex= null, \?ID_TEXT $page_type= null, boolean $get_title_too= false) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\?stringThe default value for this input field (null: blank)
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
\?ID_TEXTPage type to show (null: all)
booleanWhether to also get the title for the page
\TempcodeThe input fieldform_input_password(mixed $pretty_name, mixed $description, \ID_TEXT $name, boolean $required, \?integer $tabindex= null, string $default= '') : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
stringThe default value for this input field
\TempcodeThe input fieldform_input_radio(mixed $pretty_name, mixed $description, \ID_TEXT $name, \Tempcode $content, boolean $required= false, boolean $picture_contents= false, string $selected_path= '') : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\TempcodeThe radio buttons for our radio group
booleanWhether a radio selection is required
booleanWhether this is a picture-based radio list
stringDefault value (only appropriate if has picture contents)
\TempcodeThe input fieldform_input_radio_entry(string $name, string $value, boolean $selected= false, mixed $text= '', \?integer $tabindex= null, mixed $description= '') : \Tempcode
| package | core_form_interfaces |
|---|
stringThe name of the radio button group this will be put in (i.e. the name the value presented here will be possibly matched against)
stringThe value for this entry
booleanWhether this entry is selected by default or not
mixedThe text associated with this choice (blank: just use value for text)
\?integerThe tab index of the field (null: not specified)
mixedAn additional long description (blank: no description)
\TempcodeThe input fieldform_input_text(mixed $pretty_name, mixed $description, \ID_TEXT $name, string $default, boolean $required, \?integer $tabindex= null, boolean $scrolls= false, \?integer $maxlength= null, \?integer $rows= null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
stringThe default value for this input field
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
booleanWhether the field scrolls
\?integerThe maximum length of the field (null: unlimited)
\?integerNumber of rows for text input (null: default)
\TempcodeThe input fieldform_input_text_comcode(mixed $pretty_name, mixed $description, \ID_TEXT $name, string $default, boolean $required, \?integer $tabindex= null, boolean $force_non_wysiwyg= false, mixed $description_side= '', \?Tempcode $default_parsed= null, boolean $scrolls= false, \?integer $rows= null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
stringThe default value for this input field
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
booleanForce non-WYSIWYG and non default-Comcode parsing
mixedA secondary side description for this input field
\?TempcodeThe parsed Comcode. (null: calculate)
booleanWhether the field scrolls
\?integerNumber of rows for text input (null: default)
\TempcodeThe input fieldform_input_text_multi(mixed $pretty_name, mixed $description, \ID_TEXT $name, array $default_array, integer $num_required, \?integer $tabindex= null, \?integer $maxlength= null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe base parameter name which this input field is for (as this takes multiple parameters, they are named
arrayAn array of texts to use as default (at least this many textareas, filled by this array, will be presented by default)
integerThe minimum number of textareas allowed.
\?integerThe tab index of the field (null: not specified)
\?integerThe maximum length of the field (null: unlimited)
\TempcodeThe input fieldform_input_theme_image(mixed $pretty_name, mixed $description, \ID_TEXT $name, array $ids, \?URLPATH $selected_url= null, \?string $selected_code= null, \?integer $tabindex= null, boolean $allow_none= false, \?object $db= null, \?ID_TEXT $theme= null, \?ID_TEXT $lang= null, boolean $linear= false, boolean $direct_titles= false) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
arrayA list of image IDs (codes) we can choose from, probably found via get_all_image_ids_type
\?URLPATHThe currently selected entry in our picture choosing, by URL (null: none)
\?stringThe currently selected entry in our picture choosing, by code (null: none)
\?integerThe tab index of the field (null: not specified)
booleanWhether to allow the selection of 'no' picture
\?objectThe database connection to the Conversr install we are choosing images from (null: site db)
\?ID_TEXTTheme to use (null: current theme)
\?ID_TEXTLanguage to use (null: current language)
booleanWhether choices are presented in a list (as opposed to a grid); useful when sizes are irregular
booleanWhether to show direct codenames, rather than trying to prettify them into titles
\TempcodeThe input fieldform_input_tick(mixed $pretty_name, mixed $description, \ID_TEXT $name, boolean $ticked, \?integer $tabindex= null, \ID_TEXT $value= '1') : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
booleanWhether this is ticked by default
\?integerThe tab index of the field (null: not specified)
\ID_TEXTThe value the checkbox passes when ticked
\TempcodeThe input fieldform_input_tree_list(mixed $pretty_name, mixed $description, \ID_TEXT $name, \?ID_TEXT $root_id, string $hook, array $options, boolean $required, \?string $default= null, boolean $use_server_id= false, \?integer $tabindex= null, boolean $multi_select= false, \?string $nice_label= null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\?ID_TEXTThe ID to do under (null: root)
stringThe ajax tree-list hook that drives our data
arrayA map of special options
booleanWhether this is a required input field
\?stringThe default value for the field (null: none)
booleanWhether to use the server-ID in the list instead of the ID in the list
\?integerThe tab index of the field (null: not specified)
booleanWhether multiple selections are allowed
\?stringLabel for default value (null: just use the literal)
\TempcodeThe input fieldform_input_upload(mixed $pretty_name, mixed $description, \ID_TEXT $name, boolean $required, \?string $default= null, \?integer $tabindex= null, boolean $plupload= true, string $filter= '', \?string $syndication_json= null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
booleanWhether this is a required input field. Set this to false if you are using this field on an edit form and already have an uploaded file -- therefore you'd know no new file would mean not to replace the existing file
\?stringThe default value for the field (null: none) (blank: none). Should only be passed if $required is false, because it creates a delete button for the existing file, implying that leaving it with no file is valid
\?integerThe tab index of the field (null: not specified)
booleanWhether plupload-style is preferred
stringFile-type filter to limit to, comma-separated file extensions (might not be supported)
\?stringJSON structure of what uploader syndications there will be (null: none)
\TempcodeThe input fieldform_input_upload_multi(mixed $pretty_name, mixed $description, string $name, boolean $required, \?integer $tabindex= null, \?array $default= null, boolean $plupload= true, string $filter= '', \?string $syndication_json= null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
stringThe base name which this input field is for
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
\?arrayThe default value for the field (null: none)
booleanWhether plupload-style is preferred
stringFile-type filter to limit to, comma-separated file extensions (might not be supported)
\?stringJSON structure of what uploader syndications there will be (null: none)
\TempcodeThe input fieldform_input_upload_multi_source(mixed $set_title, mixed $set_description, \Tempcode $hidden, \ID_TEXT $set_name= 'image', \?ID_TEXT $theme_image_type= null, boolean $required= true, \?string $default= null, boolean $support_syndication= false, \?string $filter= null, boolean $images_only= true) : \Tempcode
Mainly for images, used with post_param_image or post_param_multi_source_upload.
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\TempcodeA reference to where we're putting hidden fields
\ID_TEXTThe name which this input field is for (actually, this is a prefix put in front of different input types).
\?ID_TEXTThe directory of theme images to provide selection from (null: do not support theme images)
booleanWhether this is a required input field. Set this to false if you are using this field on an edit form and already have an uploaded file -- therefore you'd know no new file would mean not to replace the existing file
\?stringThe default value for the field (null: none) (blank: none). Should only be passed if $required is false, because it creates a delete button for the existing file, implying that leaving it with no file is valid
booleanWhether to syndicate the file off
\?stringFile type filter (null: autodetect)
booleanWhether to accept images only
\TempcodeThe input fieldform_input_url(mixed $pretty_name, mixed $description, \ID_TEXT $name, \?string $default, boolean $required, \?integer $tabindex = null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\?stringThe default value for this input field (null: blank)
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
\TempcodeThe input fieldform_input_username(mixed $pretty_name, mixed $description, \ID_TEXT $name, \?string $default, boolean $required, boolean $needs_match= true, \?integer $tabindex= null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe name which this input field is for
\?stringThe default value for this input field (null: blank)
booleanWhether this is a required input field
booleanWhether it is required than a valid username is given
\?integerThe tab index of the field (null: not specified)
\TempcodeThe input fieldform_input_username_multi(mixed $pretty_name, mixed $description, \ID_TEXT $name, array $default_array, integer $num_required, boolean $needs_match= true, \?integer $tabindex= null) : \Tempcode
| package | core_form_interfaces |
|---|
mixedA human intelligible name for this input field
mixedA description for this input field
\ID_TEXTThe base parameter name which this input field is for (as this takes multiple parameters, they are named
arrayAn array of lines to use as default (at least this many lines, filled by this array, will be presented by default)
integerThe minimum number of inputs allowed
booleanWhether this is a required input field
\?integerThe tab index of the field (null: not specified)
\TempcodeThe input fieldform_input_various_ticks(array $options, mixed $description, \?integer $_tabindex= null, mixed $_pretty_name= '', boolean $simple_style= false, \?ID_TEXT $custom_name= null, \?mixed $custom_value= null) : \Tempcode
| package | core_form_interfaces |
|---|
arrayA list of tuples: (prettyname, name, value, description)
mixedA description for this input field
\?integerThe tab index of the field (null: not specified)
mixedA human intelligible name for this input field (blank: use default)
booleanWhether to place each tick on a new line
\?ID_TEXTName for custom value to be entered to (null: no custom value allowed)
\?mixedValue for custom value, string (accept single value) or array (accept multiple values) (null: no custom value known)
\TempcodeThe input fieldget_comcode_editor(string $field_name= 'post', boolean $cut_down= false) : \Tempcode
| package | core_form_interfaces |
|---|
stringThe name of the field the editor is working for
booleanWhether to make a cut-down version
\TempcodeThe Comcode editorget_field_restrict_property(string $property, string $field, \?string $page= null, \?string $type= null) : \?string
| package | core_form_interfaces |
|---|
stringThe name of the property
stringThe name of the field it's scoped for
\?stringThe page name scoped for (null: current page)
\?stringThe page type scoped for (null: current type)
\?stringThe property (null: non-existent)get_form_field_tabindex(\?integer $tabindex = null) : integer
| package | core_form_interfaces |
|---|
\?integerRequested tab-index (null: no specific request)
integerUsed tab-indexget_posting_form(mixed $submit_name, \ID_TEXT $submit_icon, \LONG_TEXT $post, mixed $post_url, \Tempcode $hidden_fields, \Tempcode $specialisation, \?mixed $post_comment= null, string $extra= '', \?Tempcode $specialisation2= null, \?Tempcode $default_parsed= null, \?string $javascript= null, \?integer $tabindex= null, boolean $required= true, boolean $has_preview= true, boolean $avoid_wysiwyg= false, boolean $support_autosave= true, boolean $specialisation2_hidden= false) : \Tempcode
| package | core_form_interfaces |
|---|
mixedThe title of the form submission button
\ID_TEXTThe submit icon CSS class.
\LONG_TEXTThe default post to put in.
mixedWhere the form is sent (URLPATH or Tempcode).
\TempcodeA form_input_hidden buildup of hidden fields (additional parameters sent to the target URL).
\TempcodeA buildup of leading extra fields, in a format compatible with the templates used by this function.
\?mixedThe post comment (string or Tempcode). This gives information about how you should post. (null: no post comment)
stringExtra info to put on the posting form
\?TempcodeA buildup of trailing extra fields, in a format compatible with the templates used by this function. (null: none)
\?TempcodeThe parsed Comcode. (null: calculate)
\?stringJavaScript code to include (null: none)
\?integerThe tab index of the field (null: not specified)
booleanWhether this is a required input field
booleanWhether the form supports previewing
booleanWhether to avoid WYSIWYG mode
booleanWhether to support auto-save
booleanWhether to support auto-save
\TempcodeThe posting formhandle_conflict_resolution(\?ID_TEXT $id= null, boolean $only_staff= false) : array
| package | core_form_interfaces |
|---|
\?ID_TEXTThe ID we're editing (null: get from param, 'id')
booleanWhether to only care about staff conflicts
arrayA pair: warning details, ping urlhandle_max_file_size(\Tempcode $hidden, \ID_TEXT $regular_max_size_type = 'file')
| package | core_form_interfaces |
|---|---|
| set | image file |
\TempcodeHidden fields
\ID_TEXTCode representing the media types we are using limits for
read_multi_code(\ID_TEXT $param) : \SHORT_TEXT
| package | core_form_interfaces |
|---|
\ID_TEXTThe parameter stub (stub of a series of POST parameters, made by cns_get_forum_multi_code_field's field or similar).
\SHORT_TEXTThe multi code.run_spellcheck(string $text, \?ID_TEXT $lang= null, boolean $skip_known_words_in_db= true) : array
| package | core_form_interfaces |
|---|
stringText to scan for words in (should be plain text, not be HTML text)
\?ID_TEXTLanguage to check in (null: current language)
booleanWhether to avoid spellchecking known keywords etc
arrayA map of misspellings, lower case bad word => array of correctionssingle_field__start()
| package | core_form_interfaces |
|---|
sl_get_custom_file_base() : string
spell_correct_phrase(string $text) : string
take_param_int_modeavg(integer $setting, \ID_TEXT $db_property, \ID_TEXT $table, integer $default) : integer
| package | core_form_interfaces |
|---|
integerThe current setting (null: we have to work it out); if non-null, the function will immediately return
\ID_TEXTThe property
\ID_TEXTThe table to average within
integerThe last-resort default
integerThe valueurl_default_parameters__disable()
| package | core_form_interfaces |
|---|
url_default_parameters__enable()
| package | core_form_interfaces |
|---|
wysiwyg_on() : boolean
WORD_REGEXP = '#([\w\'\-]{1,200})#' . (get_charset() == 'utf-8' ? 'u' : '')
| package | core_form_interfaces |
|---|