Groups
Groups
Sign in
Groups
Groups
Openbiz Users
Conversations
About
Send feedback
Help
Revisited Metadata inheritance
7 views
Skip to first unread message
Agus Suhartono
unread,
Apr 28, 2015, 11:53:24 PM
4/28/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openbiz-cubi
Hi
currently, openbiz.php support metadata inheritance for Form and BizData
but them hard-coded
there are method that can change it without hardcoded
1. name convention for XML and Metapnject variable
$varname = getVarNameByConvention($xmlPropertyName)
$this->$varname = $xmlPropertyValue
2. use array for object property
$varname = getVarNameByConvention($xmlPropertyName)
$this->_properties[$varname] = $xmlPropertyValue
with this approach, we can set properties value (also inheritance code) in iteration
regards
agus suhartono
Reply all
Reply to author
Forward
0 new messages