<?php/************************************************************************ QuestionnaireFrame.phpThis file was generated on Mon Jun 23 2008 at 10:16:50**************************************************************************/require_once 'GenericControl.php';/** * class QuestionnaireFrame * Represents a frame containing a number of grouped controls */class QuestionnaireFrame{ /** Aggregations: */ /** Compositions: */ /*** Attributes: ***/ /** * The frame's title * @access private */ private $title; /** * Array of controls to be shown within the frame * @access private */ private $controls; private $page; /** * Produces the HTML representation of the object * * @return string * @access public */ public function getHtml( ) { $html = "<fieldset><legend>$this->title</legend>"; foreach($this->controls as $control) { $html .= $control->getHtml(); } $html .= "</fieldset>"; return $html; } // end of member function getHtml /** * Add a control to the frame * * @param GenericControl newControl * @return bool * @access public */ public function addControl( $newControl ) { $this->controls[] = $newControl; return true; } // end of member function addControl public function __construct( $parentPage, $frameTitle ) { $this->page = $parentPage; $this->title = $frameTitle; $this->controls = array(); }} // end of QuestionnaireFrame?>