Where can I find the complete API or javadoc on Delegate cla

A place for users and developers of the Xataface to discuss and receive support.

Postby rbchen » Wed Apr 04, 2007 4:25 pm

I noticed that some of the methods are not documented such as %field%__default() and %field%__display(). I found them very useful to provide a user freendly UI. Is there a place I can find all the supported methods for both the Table and Application Delegate Classes?

Thanks,
Raymond
rbchen
 
Posts: 21
Joined: Wed Dec 31, 1969 5:00 pm

Postby fcc » Wed Apr 04, 2007 9:30 pm

This might be of use to you:

http://dataface.weblite.ca
fcc
 
Posts: 7
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Thu Apr 05, 2007 10:57 am

I apologize for the scanty documentation of delegate class methods... The idea is that they should all be documented here (http://framework.weblite.ca/documentation/manual/delegate_classes) but unfortunately I haven't had time to get around to it...

Here's a quick list of some methods you can implement (off the top of my head)

%fieldname%__htmlValue(&$record) : for the html value of a field (used in 'view' tab)

%fieldname%__permissions(&$record) : field specific permissions (overrides permissions in getPermissions() for that field)

%fieldname%__display(&$record) : customize display (used anywhere the field is displayed in the app)

field__%fieldname%(&$record) : a calculated field

block__%blockname%() : Inserts content into a {block} or {slot} tag in the UI.

beforeSave(&$record) : called before a record is saved
afterSave(&$record) : called after a record is saved
beforeInsert(&$record): called before record is inserted
afterInsert(&$record): called after record is inserted
beforeUpdate(&$record): called before record is updated
afterUpdate(&$record): called after record is updated

.. there are more triggers too for after actions are performed.

getTitle(&$record) : gets the title of a record

titleColumn() : gets the name of the column that should be treated as the title column for the table

There are more methods than this but these are the main ones.

Best regards



Steve

--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby rbchen » Thu Apr 05, 2007 2:16 pm

Thanks Steve!

Raymond
rbchen
 
Posts: 21
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 32 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved