oops, sorry, I'll try again (and copy/paste as well)...
<class>
<name>inventory_item</name>
<variable>
<name>notes</name>
<type>text</type>
<optional>1</optional>
</variable>
<variable>
<name>mandatory</name>
<type>boolean</type>
</variable>
<variable>
<name>shared</name>
<type>boolean</type>
</variable>
<variable>
<name>calculation</name>
<type>text</type>
<optional>1</optional>
</variable>
<variable>
<name>sort</name>
<type>integer</type>
<optional>1</optional>
</variable>
<variable>
<name>description</name>
<type>text</type>
<optional>1</optional>
</variable>
<variable>
<name>grams</name>
<type>integer</type>
<optional>1</optional>
</variable>
<variable>
<name>item</name>
<class>item</class>
</variable>
<variable>
<name>inventory</name>
<class>inventory</class>
</variable>
<function>
<name>save</name>
<type>persist</type>
</function>
<function>
<name>delete</name>
<type>delete</type>
</function>
<function>
<name>validate</name>
<type>validate</type>
<parameters>
<errorcode>
<argument>errorcode</argument>
</errorcode>
</parameters>
</function>
<function>
<name>set_inventory</name>
<type>setreference</type>
<parameters>
<variable>inventory</variable>
<reference>
<argument>inventory</argument>
</reference>
</parameters>
</function>
<function>
<name>set_item</name>
<type>setreference</type>
<parameters>
<variable>item</variable>
<reference>
<argument>item</argument>
</reference>
</parameters>
</function>
<function>
<name>get_inventory</name>
<type>getreference</type>
<parameters>
<variable>inventory</variable>
</parameters>
</function>
<function>
<name>get_item</name>
<type>getreference</type>
<parameters>
<variable>item</variable>
</parameters>
</function>
</class>
On 20/09/2008, at 8:42 AM, Manuel Lemos wrote:
> Hello,
>
> on 09/19/2008 07:24 PM Nik Sands said the following:
> > Hi Manuel,
> >
> > Thanks for looking at this for me. The class definition is attached
> > to this email.
> >
> > The '?' is not getting replaced by a value, or by NULL, which is the
> > problem.
>
> It seems not file was attached to the message. Can you paste the class
> definition so I can try to reproduce your problem?
>
> --
>
> Regards,
> Manuel Lemos
>
> Find and post PHP jobs
> http://www.phpclasses.org/jobs/
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>
>
========================================================
NIK SANDS - Systems Administrator, IT Services, University of
Tasmania, Australia
Phone: +61-3-63243732 (BH)
AIM / iChat: brassnix
========================================================
NIXANZ - http://nixanz.com/
Like to help out as a beta tester? Let me know which application
you'd like to test.
[Non-text portions of this message have been removed]