[ Index ]

PHP Cross Reference of Quick Form DataBase

title

Body

[close]

/objects/ -> qfdbobj_fieldset.php (source)

   1  <?php
   2  if (!defined('QFDB_SECURITY')) {
   3      die("You can't access this file directly...");
   4  }
   5  
   6  
   7  /**
   8   * Graphic QFDB Object: print FIELDSET (Beggin)
   9   *
  10   * @author Everaldo Wanderlei Uavniczak <everaldouav [at] gmail.com>
  11   * @since 0.1
  12   * @package quickformdb
  13   * @see http://www.qfdb.net/
  14   * @link http://w3schools.com/tags/tag_legend.asp
  15   * @link http://w3schools.com/tags/tag_fieldset.asp
  16   * @license BSD License <http://www.qfdb.net/bsd_license.txt>
  17   */
  18  
  19  
  20  
  21  class qfdbobj_fieldset {
  22  
  23      static function obj_struct(&$qfdb)
  24      {
  25          $qfdb->m['object'] = 'fieldset'; // string (fixed)
  26          $qfdb->m['status'] = '12345'; // string
  27          $qfdb->m['if'] = ''; // string
  28          $qfdb->m['alias'] = ''; // string
  29  
  30          $qfdb->m['others'] = '';  // string
  31  
  32          $qfdb->m['id'] = ''; // string
  33          $qfdb->m['style'] = ''; // string
  34          $qfdb->m['class'] = $qfdb->get_css_value('qfdb_fieldset'); // string
  35          $qfdb->m['title'] = ''; // string
  36  
  37          $qfdb->m['object_properties'] = count($qfdb->m) +2; // int
  38      } // end obj_struct()
  39  
  40  
  41  
  42      static function obj_html(&$qfdb)
  43      {
  44          $object = "\n\n".'<fieldset';
  45          if ($qfdb->m['style']) {
  46              $object .= ' style="'.$qfdb->m['style'].'"';
  47          }
  48          if ($qfdb->m['class']) {
  49              $object .= ' class="'.$qfdb->m['class'].'"';
  50          }
  51          if ($qfdb->m['title']) {
  52              $object .= ' title="'.$qfdb->m['title'].'"';
  53          }
  54          if ($qfdb->m['id']) {
  55              $object .= ' id="'.$qfdb->m['id'].'"';
  56          }
  57          $object .= $qfdb->m['others'].">\n";
  58          $qfdb->add_output('html', $object);
  59      } // end obj_html()
  60  
  61  
  62  
  63      static function obj_db(&$qfdb)
  64      {
  65          self::obj_html($qfdb);
  66      } // end obj_db()
  67  
  68  
  69  
  70      static function obj_debug(&$qfdb)
  71      {
  72      } // end obj_debug()
  73  
  74  
  75  
  76      static function obj_fixed(&$qfdb)
  77      {
  78          $qfdb->fix_others();
  79      } // end obj_fixed()
  80  
  81  } // end class


Generated: Fri Nov 14 17:48:13 2008 Cross-referenced by PHPXref 0.7