Revisited Metadata inheritance

7 views
Skip to first unread message

Agus Suhartono

unread,
Apr 28, 2015, 11:53:24 PM4/28/15
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