RD_Sitemap
[ class tree: RD_Sitemap ] [ index: RD_Sitemap ] [ all elements ]

Source for file viewset.php

Documentation is available at viewset.php

  1. <?php
  2. /**
  3.  * Run Digital Sitemap
  4.  * @author Robert Deutz (email contact@rdbs.net / site www.rdbs.de)
  5.  * @version $Id$
  6.  * @package RD_Sitemap
  7.  * @copyright Copyright (C) 2005-2007 run-digital
  8.  * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  9.  *
  10.  *  This is free software
  11.  ***/
  12.  
  13.  
  14. class JElementViewset extends JElement
  15. {
  16.    /**
  17.     * Element name
  18.     *
  19.     * @access    protected
  20.     * @var        string 
  21.     */
  22.     var    $_name = 'Viewset';
  23.  
  24.     function fetchElement($name$value&$node$control_name)
  25.     {
  26.         $db &JFactory::getDBO();
  27.  
  28.         $query 'SELECT vs.id, vs.title AS text '
  29.         . ' FROM #__rd_sitemap_viewset AS vs'
  30.         . ' WHERE vs.published = 1'
  31.         . ' ORDER BY vs.title'
  32.         ;
  33.         $db->setQuery$query );
  34.         $options $db->loadObjectList);
  35.  
  36.         return JHTML::_('select.genericlist',  $options''.$control_name.'['.$name.']''class="inputbox"''id''text'$value$control_name.$name );
  37.     }
  38. }
  39. ?>

Documentation generated on Thu, 23 Aug 2007 16:30:33 +0200 by phpDocumentor 1.3.2