Source for file language.php

Documentation is available at language.php

  1. <?php
  2. /**
  3.  * @package    FrameworkOnFramework
  4.  * @subpackage form
  5.  * @copyright  Copyright (C) 2010 - 2012 Akeeba Ltd. All rights reserved.
  6.  * @license    GNU General Public License version 2 or later; see LICENSE.txt
  7.  */
  8. // Protect from unauthorized access
  9. defined('_JEXEC'or die;
  10.  
  11. /**
  12.  * Language field header
  13.  *
  14.  * @package  FrameworkOnFramework
  15.  * @since    2.0
  16.  */
  17. {
  18.     /**
  19.      * Method to get the filter options.
  20.      *
  21.      * @return  array  The filter option objects.
  22.      *
  23.      * @since   2.0
  24.      */
  25.     protected function getOptions()
  26.     {
  27.         // Initialize some field attributes.
  28.         $client = (string) $this->element['client'];
  29.  
  30.         if ($client != 'site' && $client != 'administrator')
  31.         {
  32.             $client 'site';
  33.         }
  34.  
  35.         // Merge any additional options in the XML definition.
  36.         $options array_merge(
  37.             parent::getOptions()JLanguageHelper::createLanguageList($this->valueconstant('JPATH_' strtoupper($client))truetrue)
  38.         );
  39.  
  40.         return $options;
  41.     }
  42. }

Documentation generated on Tue, 19 Nov 2013 15:06:30 +0100 by phpDocumentor 1.4.3