PageRenderTime 198ms CodeModel.GetById 69ms app.highlight 1ms RepoModel.GetById 50ms app.codeStats 0ms

/administrator/components/com_banners/models/fields/bannerclient.php

https://bitbucket.org/eternaware/joomus
PHP | 43 lines | 12 code | 5 blank | 26 comment | 0 complexity | ff43111f82004b1c9703ad63a9668bcf MD5 | raw file
Possible License(s): LGPL-2.1
 1<?php
 2/**
 3 * @package     Joomla.Administrator
 4 * @subpackage  com_banners
 5 *
 6 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 7 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 8 */
 9
10defined('JPATH_BASE') or die;
11
12JFormHelper::loadFieldClass('list');
13
14require_once __DIR__ . '/../../helpers/banners.php';
15
16/**
17 * Bannerclient Field class for the Joomla Framework.
18 *
19 * @package     Joomla.Administrator
20 * @subpackage  com_banners
21 * @since       1.6
22 */
23class JFormFieldBannerClient extends JFormFieldList
24{
25	/**
26	 * The form field type.
27	 *
28	 * @var		string
29	 * @since	1.6
30	 */
31	protected $type = 'BannerClient';
32
33	/**
34	 * Method to get the field options.
35	 *
36	 * @return	array	The field option objects.
37	 * @since	1.6
38	 */
39	public function getOptions()
40	{
41		return BannersHelper::getClientOptions();
42	}
43}