FOF30\Form\Field\Published::getRepeatable PHP Method

getRepeatable() public method

Get the rendering of this field type for a repeatable (grid) display, e.g. in a view listing many item (typically a "browse" task)
Since: 2.0
public getRepeatable ( ) : string
return string The field HTML
    public function getRepeatable()
    {
        if (!$this->item instanceof DataModel) {
            throw new DataModelRequired(__CLASS__);
        }
        $prefix = $this->element['prefix'] ? (string) $this->element['prefix'] : '';
        $checkbox = $this->element['checkbox'] ? (string) $this->element['checkbox'] : 'cb';
        $publish_up = $this->element['publish_up'] ? (string) $this->element['publish_up'] : null;
        $publish_down = $this->element['publish_down'] ? (string) $this->element['publish_down'] : null;
        $enabled = true;
        // @todo Enforce ACL checks to determine if the field should be enabled or not
        // Get the HTML
        return JHTML::_('jgrid.published', $this->value, $this->rowid, $prefix, $enabled, $checkbox, $publish_up, $publish_down);
    }