Ability to load kDBItem class object from hash

0 views
Skip to first unread message

Alexander Obuhovich

unread,
Feb 22, 2010, 3:10:32 AM2/22/10
to In-Portal Development
Hi, I think, that we should add LoadFromHash (or something similar) method to kDBItem class. This method will allow use to simulate actual Load method, but data will be retrieved from given field set and not from database. This is not just call of SetDBFieldsFromHash as it might seem. Such method also calls OnBefore/OnAfter events and sets original field values and item ID. This method could be useful during import operations.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
load_item_from_hash.patch

Alexander Obuhovich

unread,
Mar 14, 2010, 9:51:23 AM3/14/10
to In-Portal Development
Ping.

Alexander Obuhovich

unread,
Mar 14, 2010, 3:46:38 PM3/14/10
to In-Portal Development
Reply all
Reply to author
Forward
0 new messages