/** * Inherit from parent object. Name, Package, Class cannot be inherited * * @return void */ protected function inheritParentObj() { if (!$this->m_InheritFrom) { return; } $parentObj = BizSystem::getObject($this->m_InheritFrom); $this->m_Description = $this->m_Description ? $this->m_Description : $parentObj->m_Description; $this->m_SearchRule = $this->m_SearchRule ? $this->m_SearchRule : $parentObj->m_SearchRule; $this->m_BaseSearchRule = $this->m_SearchRule; $this->m_SortRule = $this->m_SortRule ? $this->m_SortRule : $parentObj->m_SortRule; $this->m_BaseSortRule = $this->m_SortRule; $this->m_OtherSQLRule = $this->m_OtherSQLRule ? $this->m_OtherSQLRule : $parentObj->m_OtherSQLRule; $this->m_AccessRule = $this->m_AccessRule ? $this->m_AccessRule : $parentObj->m_AccessRule; $this->m_UpdateCondition = $this->m_UpdateCondition ? $this->m_UpdateCondition : $parentObj->m_UpdateCondition; $this->m_DeleteCondition = $this->m_DeleteCondition ? $this->m_DeleteCondition : $parentObj->m_DeleteCondition; $this->m_Database = $this->m_Database ? $this->m_Database : $parentObj->m_Database; $this->m_MainTable = $this->m_MainTable ? $this->m_MainTable : $parentObj->m_MainTable; $this->m_IdGeneration = $this->m_IdGeneration ? $this->m_IdGeneration : $parentObj->m_IdGeneration; $this->m_Stateless = $this->m_Stateless ? $this->m_Stateless : $parentObj->m_Stateless; $this->m_BizRecord->merge($parentObj->m_BizRecord); foreach ($this->m_BizRecord as $field) { $field->adjustBizObjName($this->m_Name); } $this->m_TableJoins->merge($parentObj->m_TableJoins); $this->m_ObjReferences->merge($parentObj->m_ObjReferences); $this->m_Parameters->merge($parentObj->m_Parameters); }
/** * 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(); }