PHP Класс FOF30\Form\Field\Rules

Наследование: extends JFormFieldRules, implements FOF30\Form\FieldInterface
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$item FOF30\Model\DataModel The item being rendered in a repeatable form field
$rowid integer A monotonically increasing number, denoting the row number in a repeatable view

Защищенные свойства (Protected)

Свойство Тип Описание
$form FOF30\Form\Form The Form object of the form attached to the form field.
$repeatable Repeatable field output
$static Static field output

Открытые методы

Метод Описание
__get ( string $name ) : mixed Method to get certain otherwise inaccessible properties from the form field object.
getRepeatable ( ) : string Get the rendering of this field type for a repeatable (grid) display, e.g. in a view listing many item (typically a "browse" task)
getStatic ( ) : string Get the rendering of this field type for static display, e.g. in a single item view (typically a "read" task).

Защищенные методы

Метод Описание
getInput ( ) : string At the timing of this writing (2013-12-03), the Joomla "rules" field is buggy. When you are dealing with a new record it gets the default permissions from the root asset node, which is fine for the default permissions of Joomla articles, but unsuitable for third party software.

Описание методов

__get() публичный Метод

Method to get certain otherwise inaccessible properties from the form field object.
С версии: 2.0
public __get ( string $name ) : mixed
$name string The property name for which to the the value.
Результат mixed The property value or null.

getInput() защищенный Метод

We had to copy & paste the whole code, since we can't "inject" the correct asset id if one is not found. Our fixes are surrounded by FOF Library fix remarks.
protected getInput ( ) : string
Результат string The input field's HTML for this field type

getRepeatable() публичный Метод

Get the rendering of this field type for a repeatable (grid) display, e.g. in a view listing many item (typically a "browse" task)
С версии: 2.1
public getRepeatable ( ) : string
Результат string The field HTML

getStatic() публичный Метод

Get the rendering of this field type for static display, e.g. in a single item view (typically a "read" task).
С версии: 2.0
public getStatic ( ) : string
Результат string The field HTML

Описание свойств

$form защищенное свойство

The Form object of the form attached to the form field.
protected Form,FOF30\Form $form
Результат FOF30\Form\Form

$item публичное свойство

The item being rendered in a repeatable form field
public DataModel,FOF30\Model $item
Результат FOF30\Model\DataModel

$repeatable защищенное свойство

Repeatable field output
protected $repeatable

$rowid публичное свойство

A monotonically increasing number, denoting the row number in a repeatable view
public int $rowid
Результат integer

$static защищенное свойство

Static field output
protected $static