function toArray($collectHidden = false)
    {
        include_once 'HTML/QuickForm/Renderer/Array.php';
        $renderer = new HTML_QuickForm_Renderer_Array($collectHidden); //Moodle: PHP 5.3 compatibility
        $this->accept($renderer);
        return $renderer->toArray();
     }
function toArray($collectHidden = false)
    {
        include_once 'HTML/QuickForm/Renderer/Array.php';
        $renderer = new HTML_QuickForm_Renderer_Array($collectHidden); //Moodle: PHP 5.3 compatibility
        $this->accept($renderer);
        return $renderer->toArray();
     }
function toArray ( $ collectHidden = false ) { include_once 'HTML/QuickForm/Renderer/Array.php' ; $ renderer = new HTML_QuickForm_Renderer_Array ( $ collectHidden ) ; //Moodle: PHP 5.3 compatibility $ this -> accept ( $ renderer ) ; return $ renderer -> toArray ( ) ; }
Returns the form's contents in an array.

The description of the array structure is in HTML_QuickForm_Renderer_Array docs

@since     2.0
@access    public
@param     bool      Whether to collect hidden elements (passed to the Renderer's constructor)
@return    array of form contents
Returns the form s contents in an array .