/**
  * Get the object instance defined in the object reference
  *
  * @param string $objName the object name list in the ObjectReference part
  * @return BizDataObj object instance
  */
 public function getRefObject($objName)
 {
     // see if there is such object in the ObjReferences
     $objRef = $this->objReferences->get($objName);
     if (!$objRef) {
         return null;
     }
     // apply association on the object
     // $assc = $this->EvaluateExpression($objRef->association);
     // get the object instance
     $obj = Openbiz::getObject($objName);
     $obj->setAssociation($objRef, $this);
     return $obj;
 }
Example #2
0
 public function __construct(&$xmlArr, $childClassName, $parentObj = null)
 {
     parent::__construct($xmlArr, $childClassName, $parentObj);
     $this->formName = $parentObj->objectName;
 }
Example #3
0
 /**
  * Merge with another BizRecord object. Used in metedata inheritance.
  *
  * @param BizRecord $anotherMIObj to be merged BizRecord object
  * @return void
  */
 public function merge(&$anotherMIObj)
 {
     parent::merge($anotherMIObj);
     $this->_initSetup();
 }