include/formbase.php
Functions
buildRedirectURL(
$return_id
=
'', $return_module
=
''
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $return_id | ||
| $return_module |
checkRequired(
\$prefix $prefix, \$required $required
)
:
booleanCheck for null or zero for list of values
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $prefix | \$prefix | the prefix of value to be checked |
| $required | \$required | array of value to be checked |
| Type | Description |
|---|---|
| boolean | true if all values are set in the array |
getAnyToForm(
$ignore
=
'', $usePostAsAuthority
=
false
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $ignore | ||
| $usePostAsAuthority |
getGetToForm(
$ignore
=
'', $usePostAsAuthority
=
false
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $ignore | ||
| $usePostAsAuthority |
getLikeForEachWord(
$fieldname, $value, $minsize
=
4
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $fieldname | ||
| $value | ||
| $minsize |
getPostToForm(
$ignore
=
'', $isRegularExpression
=
false
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $ignore | ||
| $isRegularExpression |
get_teams_hidden_inputs(
\$module $module
=
''
)
:
Stringget_teams_hidden_inputs This is a helper function to construct a String of the hidden input parameters representing the teams that were sent to the form base code
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $module | \$module | String value of module |
| Type | Description |
|---|---|
| String | HTML format of teams sent to the form base code |
get_teams_url(
\$module $module
=
''
)
:
StringThis is a helper function to return the url portion of the teams sent
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $module | \$module | String value of module used for the prefixing |
| Type | Description |
|---|---|
| String | URL format of teams sent to the form base code |
handleRedirect(
$return_id
=
'', $return_module
=
'', $additionalFlags
=
false
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $return_id | ||
| $return_module | ||
| $additionalFlags |