|
| getInformation () |
|
| preRender ($view, $task, $input, $config=array()) |
|
| postRender ($view, $task, $input, $config=array()) |
|
| renderForm (FOFForm &$form, FOFModel $model, FOFInput $input, $formType=null, $raw=false) |
|
| renderCategoryLinkbar ($extension, $config=array()) |
|
|
| renderFormBrowse (FOFForm &$form, FOFModel $model, FOFInput $input) |
|
| renderFormRead (FOFForm &$form, FOFModel $model, FOFInput $input) |
|
| renderFormEdit (FOFForm &$form, FOFModel $model, FOFInput $input) |
|
| renderFormRaw (FOFForm &$form, FOFModel $model, FOFInput $input, $formType) |
|
| renderFieldset (stdClass &$fieldset, FOFForm &$form, FOFModel $model, FOFInput $input, $formType, $showHeader=true) |
|
| renderFieldsetLabel ($field, FOFForm &$form, $title) |
|
| isTabFieldset ($fieldset) |
|
◆ getInformation()
Returns the information about this renderer
- Renvoie
- object
◆ isTabFieldset()
isTabFieldset |
( |
|
$fieldset | ) |
|
|
protected |
Checks if the fieldset defines a tab pane
- Paramètres
-
SimpleXMLElement | $fieldset | |
- Renvoie
- boolean
Références $class, et $classes.
◆ postRender()
postRender |
( |
|
$view, |
|
|
|
$task, |
|
|
|
$input, |
|
|
|
$config = array() |
|
) |
| |
|
abstract |
Echoes any HTML to show after the view template
- Paramètres
-
string | $view | The current view |
string | $task | The current task |
FOFInput | $input | The input array (request parameters) |
array | $config | The view configuration array |
- Renvoie
- void
◆ preRender()
preRender |
( |
|
$view, |
|
|
|
$task, |
|
|
|
$input, |
|
|
|
$config = array() |
|
) |
| |
|
abstract |
Echoes any HTML to show before the view template
- Paramètres
-
string | $view | The current view |
string | $task | The current task |
FOFInput | $input | The input array (request parameters) |
array | $config | The view configuration array |
- Renvoie
- void
◆ renderCategoryLinkbar()
renderCategoryLinkbar |
( |
|
$extension, |
|
|
|
$config = array() |
|
) |
| |
Renders the submenu (link bar) for a category view when it is used in a extension
Note: this function has to be called from the addSubmenu function in the ExtensionNameHelper class located in administrator/components/com_ExtensionName/helpers/Extensionname.php
Example Code:
class ExtensionNameHelper
{
public static function addSubmenu($vName)
{
// Load FOF
include_once JPATH_LIBRARIES . '/fof/include.php';
if (!defined('FOF_INCLUDED'))
{
JError::raiseError('500', 'FOF is not installed');
}
if (version_compare(JVERSION, '3.0', 'ge'))
{
$strapper = new FOFRenderJoomla3;
}
else
{
$strapper = new FOFRenderJoomla;
}
$strapper->renderCategoryLinkbar('com_babioonevent');
}
}
- Paramètres
-
string | $extension | The name of the extension |
array | $config | Extra configuration variables for the toolbar |
- Renvoie
- void
Références $config, $extension, $toolbar, FOFToolbar\getAnInstance(), et FOFPlatform\getInstance().
◆ renderFieldset()
Renders a raw fieldset of a FOFForm and returns the corresponding HTML
: Convert to an abstract method or interface at FOF3
- Paramètres
-
stdClass | &$fieldset | The fieldset to render |
FOFForm | &$form | The form to render |
FOFModel | $model | The model providing our data |
FOFInput | $input | The input object |
string | $formType | The form type e.g. 'edit' or 'read' |
boolean | $showHeader | Should I render the fieldset's header? |
- Renvoie
- string The HTML rendering of the fieldset
◆ renderFieldsetLabel()
renderFieldsetLabel |
( |
|
$field, |
|
|
FOFForm & |
$form, |
|
|
|
$title |
|
) |
| |
|
protected |
Renders a label for a fieldset.
: Convert to an abstract method or interface at FOF3
- Paramètres
-
object | $field | The field of the label to render |
FOFForm | &$form | The form to render |
string | $title | The title of the label |
- Renvoie
- string The rendered label
◆ renderForm()
Renders a FOFForm and returns the corresponding HTML
- Paramètres
-
FOFForm | &$form | The form to render |
FOFModel | $model | The model providing our data |
FOFInput | $input | The input object |
string | $formType | The form type: edit, browse or read |
boolean | $raw | If true, the raw form fields rendering (without the surrounding form tag) is returned. |
- Renvoie
- string The HTML rendering of the form
Références $form, et $input.
◆ renderFormBrowse()
Renders a FOFForm for a Browse view and returns the corresponding HTML
- Paramètres
-
- Renvoie
- string The HTML rendering of the form
◆ renderFormEdit()
Renders a FOFForm for an Edit view and returns the corresponding HTML
- Paramètres
-
- Renvoie
- string The HTML rendering of the form
◆ renderFormRaw()
Renders a raw FOFForm and returns the corresponding HTML
- Paramètres
-
FOFForm | &$form | The form to render |
FOFModel | $model | The model providing our data |
FOFInput | $input | The input object |
string | $formType | The form type e.g. 'edit' or 'read' |
- Renvoie
- string The HTML rendering of the form
◆ renderFormRead()
Renders a FOFForm for a Read view and returns the corresponding HTML
- Paramètres
-
- Renvoie
- string The HTML rendering of the form
◆ $enabled
◆ $priority
La documentation de cette classe a été générée à partir du fichier suivant :