Sorry
After the above you get
<code>
$this->registerRule('checkBoxExpl','function','getCheckBoxExplanationRule');
$this->registerRule('checkRadioExpl','function','getRadioExplanationRule');
$this->addRule('incLocation','Please add explanation as
required','checkRadioExpl',getExplFlds(getReferences($db,'Location')));
$this->addRule('incType','Please add explanation as
required','checkBoxExpl',getExplFlds(getReferences($db,'Type')));
$this->addRule('incContFactorType','Please add explanation as
required','checkBoxExpl',getExplFlds(getReferences($db,'ContFact')));
$this->addRule('incInjuryNature','Please add explanation as
required','checkBoxExpl',getExplFlds(getReferences($db,'InjuryNature')));
$this->addRule('incBodyPart','Please add explanation as
required','checkBoxExpl',getExplFlds(getReferences($db,'BodyPart')));
$this->addRule('incReferral','Please add explanation as
required','checkBoxExpl',getExplFlds(getReferences($db,'Referral')));
$this->addRule('incOtherServices','Please add explanation as
required','checkBoxExpl',getExplFlds(getReferences($db,'Service')));
$this->addRule('incTreating','Please add explanation as
required','checkBoxExpl',getExplFlds(getReferences($db,'Treating')));
</code>
I assumed that you'd believe me on that one :-)
Sorry,
Barry
On Thu, 2003-11-20 at 18:17, Alexey Borzov wrote:
>
Hi!
>
>
Barry Steele wrote:
>
> Now I want to call it from a page in qfc, I used the following
>
>
>
> // <code>
>
> require_once "misc.php";
>
>
>
> class IncidentPage extends HTML_QuickForm_Page
>
> {
>
> function buildForm()
>
> {
>
> // blah - build fields
>
>
>
>
>
> $this->registerRule('checkBoxExpl','function','getCheckBoxExplanationRule');
>
>
>
>
>
> $this->registerRule('checkRadioExpl','function','getRadioExplanationRule');
>
> }
>
> }
>
> // </code>
>
>
>
> This is wrong because it never gets called - should I include all of
>
> these functions in a parent form and sub-class that into QFC?
>
>
I don't see any addRule() calls here. How do you expect the methods to be
>
called?
hpfm
Barry Steele
hpfm solutions pty ltd
mob: 0413947980
fax: 0299817727
mailto:: barry@xxxxxxxx
--
PEAR General Mailing List (
http://pear.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: QFC - Register Rule
Hi!
Barry Steele wrote:
Now I want to call it from a page in qfc, I used the following
// <code>
require_once "misc.php";
class IncidentPage extends HTML_QuickForm_Page
{
function buildForm()
{
// blah - build fields
$this->registerRule('checkBoxExpl','function','getCheckBoxExplanationRule');
$this->registerRule('checkRadioExpl','function','getRadioExplanationRule');
}
}
// </code>
This is wrong because it never gets called - should I include all of
these functions in a parent form and sub-class that into QFC?
I don't see any addRule() calls here. How do you expect the methods to be
called?
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Next Message by Date:
click to view message preview
Installing the log package
Hi,
I'm having trouble installing the Pear "log" package. I have been able to
install several other packages sucessfully - DB, Mail_Mime, Net_Socket -
but when I try to install Log, the response is:
downloading http://pear.php.net/get/Log ...
...done: 24,249 bytes
Relation 'has' with requirement '' is not supported
Dependencies failed
I tried downloading the package and installing it with:
pear install Log-1.8.0.tgz
But that didn't work either.
Can anyone tell me what I need to do to get Log installed?
Thanks
Shane
http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Previous Message by Thread:
click to view message preview
Re: QFC - Register Rule
Hi!
Barry Steele wrote:
Now I want to call it from a page in qfc, I used the following
// <code>
require_once "misc.php";
class IncidentPage extends HTML_QuickForm_Page
{
function buildForm()
{
// blah - build fields
$this->registerRule('checkBoxExpl','function','getCheckBoxExplanationRule');
$this->registerRule('checkRadioExpl','function','getRadioExplanationRule');
}
}
// </code>
This is wrong because it never gets called - should I include all of
these functions in a parent form and sub-class that into QFC?
I don't see any addRule() calls here. How do you expect the methods to be
called?
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Next Message by Thread:
click to view message preview
Re: QFC - Register Rule
Hi!
Barry Steele wrote:
I assumed that you'd believe me on that one :-)
Well, you should always first try the *obvious* solutions. ;]
I don't see any problems with [this part of] your code... Please try adding
PEAR::setErrorHandling(PEAR_ERROR_DIE);
at the top of the script. Also try doing some output in your validation
functions to test whether they are actually being called.
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php