[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ObjectDoc and a question about the change
> Are you keeping the latest version of your object docs here?
> http://vodka.linuxkb.org/~chardros/objectdoc.html
> Or is there something more recent? It's what I've been working with.
No. They are outdated. Dan made a new auto-object-documenter available at
/admin/objectviewer.php3 which displays objkect properties, actions, etc
As for object methods and functions, I've been mailing updates to the list, and discussing on
IRC. Dan is also working on an auto-doc system for those. Things with them though haven't
really changed from the doc you've been reading. Some new ones added, etc.
> I'm not quite sure how this is working. You're saying that I can just
> change $newuser->commit() to $newuser = $newuser->commit() and that will
> fix it? How does simply assigning the new object to itself change
> anything? Do I need to do anything at all with $newuser after that
> statement? How can I now check for the case when there's a duplicate
> handle or E-mail address? (It was check for a return of -1 before.)
It doesn't change anything. It just makes it operate the same as it used to, updating the
objects properties, etc. But now it is unable top return errors. So what I'm going to do,
is have the Reusult of the opperation stored in $object->status. So, if there's a dup email
addr, $newuser->status will be "Duplicate EmailAddr", etc. "Duplicate ObjectName" will
indicate dup names.
> Last but not least, why does
> http://dev.linuxkb.org:81/render.php3?type=4&op=2.10&oid=10&act=Create&si=History()
> now render this:?
> -------
> Error encountered (render halted): Number of objects given does not
> equal number of ext tables
> given, or does not equal number of actions given:
>
> Num_Of_Objects: 25
> Num_Of_Actions: 25
> Table_Type_Map_Entries: 19
> --------
Fixed. This was a bug in my code. Thanks for brinigng it to my attention.
--
Jason Pincin
Linux Knowledge Base Project Leader (http://www.linuxkb.org)
http://vodka.linuxkb.org/~chardros