Source for file accesslevel.php
Documentation is available at accesslevel.php
* @package FrameworkOnFramework
* @copyright Copyright (C) 2010 - 2012 Akeeba Ltd. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
// Protect from unauthorized access
require_once JPATH_LIBRARIES .
'/joomla/form/fields/accesslevel.php';
* Form Field class for FOF
* @package FrameworkOnFramework
/** @var int A monotonically increasing number, denoting the row number in a repeatable view */
/** @var FOFTable The item being rendered in a repeatable form field */
* Method to get certain otherwise inaccessible properties from the form field object.
* @param string $name The property name for which to the the value.
* @return mixed The property value or null.
public function __get($name)
return parent::__get($name);
* Get the rendering of this field type for static display, e.g. in a single
* item view (typically a "read" task).
* @return string The field HTML
$class =
$this->element['class'] ?
' class="' . (string)
$this->element['class'] .
'"' :
'';
$query =
$db->getQuery(true);
$query->select('a.id AS value, a.title AS text');
$query->from('#__viewlevels AS a');
$query->group('a.id, a.title, a.ordering');
$query->order('a.ordering ASC');
$query->order($query->qn('title') .
' ASC');
$options =
$db->loadObjectList();
// If params is an array, push these options to the array
// If all levels is allowed, push it into the array.
return '<span id="' .
$this->id .
'" ' .
$class .
'>' .
* Get the rendering of this field type for a repeatable (grid) display,
* e.g. in a view listing many item (typically a "browse" task)
* @return string The field HTML
$class =
$this->element['class'] ? (string)
$this->element['class'] :
'';
$query =
$db->getQuery(true);
$query->select('a.id AS value, a.title AS text');
$query->from('#__viewlevels AS a');
$query->group('a.id, a.title, a.ordering');
$query->order('a.ordering ASC');
$query->order($query->qn('title') .
' ASC');
$options =
$db->loadObjectList();
// If params is an array, push these options to the array
// If all levels is allowed, push it into the array.
return '<span class="' .
$this->id .
' ' .
$class .
'">' .
Documentation generated on Tue, 19 Nov 2013 14:53:17 +0100 by phpDocumentor 1.4.3