Janitor HTML Class (JML)
Janitor Markup is custom markup snippets optimised for the Janitor backend theme. The Janitor HTML class is available in all templates as $JML.
Functions
JanitorHTML::editActions
Definition
- Name
- JanitorHTML::editActions
- Syntax
- String = JanitorHTML::editActions( Array $item [, Array $_options ] );
Description
This method returns an HTML snippet string, with a ul.actions containing the default actions for an edit form.
This method requires the presence of a global $model instance to be available. This is the case for default edit views, where the instance of the current itemtype class would be available in $model.
Parameters
- $item
-
Array Item data array representing the item currently being edited.
- $_options
-
Array Optional settings.
No settings defined at this point
Return values
String String with HTML snippet of actions list for edit templates.
Examples
$JML->editActions($item);
Returns a string similar to:
<ul class="actions">
<li class="save"><input value="Update" type="submit" class="button primary key:s" /></li>
</ul>
Dependencies
PHP
None
Janitor
- HTML::submit
_functionname_
Definition
- Name
- _functionname_
- Shorthand
- _functionshorthand_
- Syntax
- _returntype_ = _functionname_( String format [, Mixed timestamp ] );
Description
_description_
Parameters
- _var_
-
_type_ _summary_
Options
- identifier
-
_type_ _summary_
Return values
_type_ _returnsummary_
Examples
Dependencies
PHP
- _function_
Janitor
- _function_