Source for file published.php

Documentation is available at published.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.  * Field header for Published (enabled) columns
  13.  *
  14.  * @package  FrameworkOnFramework
  15.  * @since    2.0
  16.  */
  17. {
  18.     /**
  19.      * Create objects for the options
  20.      *
  21.      * @return  array  The array of option objects
  22.      */
  23.     protected function getOptions()
  24.     {
  25.         $config array(
  26.             'published'         => 1,
  27.             'unpublished'     => 1,
  28.             'archived'         => 0,
  29.             'trash'             => 0,
  30.             'all'             => 0,
  31.         );
  32.  
  33.         $stack array();
  34.  
  35.         if ($this->element['show_published'== 'false')
  36.         {
  37.             $config['published'0;
  38.         }
  39.  
  40.         if ($this->element['show_unpublished'== 'false')
  41.         {
  42.             $config['unpublished'0;
  43.         }
  44.  
  45.         if ($this->element['show_archived'== 'true')
  46.         {
  47.             $config['archived'1;
  48.         }
  49.  
  50.         if ($this->element['show_trash'== 'true')
  51.         {
  52.             $config['trash'1;
  53.         }
  54.  
  55.         if ($this->element['show_all'== 'true')
  56.         {
  57.             $config['all'1;
  58.         }
  59.  
  60.         $options JHtml::_('jgrid.publishedOptions'$config);
  61.  
  62.         reset($options);
  63.  
  64.         return $options;
  65.     }
  66. }

Documentation generated on Tue, 19 Nov 2013 15:11:21 +0100 by phpDocumentor 1.4.3