Re: Extending a Class
| From: | Justin Patrin | Date: | Fri, 14 Oct 2005 17:07:19 +0000 |
| Subject: | Re: Extending a Class | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21477@lists.php.net to get a copy of this message | ||
On 10/14/05, Mark Steudel <mark@netriver.net> wrote:
> I found a class to extend QuickForm, but I don't think I'm setting it up
> right to extend it.
>
> // fckeditor.php
> Here's the top of it:
>
Add this:
require_once('HTML/QuickForm/element.php');
> /**
> * Custom HTML_Quickform elementtype voor FCKEditor textarea
> *
> * This elementtype buidls an FCK Editor instance for
> PEAR::HTML_Quick_websitform
> * class
> *
> * @author Jordi Backx
> */
> class HTML_Quickform_fckeditor extends HTML_Quickform_element <-- I tried
> doing HTML_QuickForm::HTML_Quickform
> {
> /**
> * Path to FCK class
> *
> * @var string Path to PHP FCK class
> * @access private
> */
> var $_sFckBasePath = NULL;
> .
> .
> .
>
> Am I doing this right? Or do I need to add this to the actual QuickForm
> files?
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Justin Patrin