public static function finalizeDataSourcePreparation(EnvironmentMetaModel $environment_metamodel, DataSourceMetaData $datasource) {
        if (!isset($datasource->parentName)) {
            return;
        }

        $parentDataSource = $environment_metamodel->getDataSource($datasource->parentName);

        ObjectHelper::mergeWith($datasource, $parentDataSource, TRUE, ObjectHelper::EXISTING_PROPERTY_RULE__SKIP_IF_PRESENT);
    }
    public function initializeTypeFrom($sourceType, $replace = FALSE) {
        if ($replace) {
            $this->type = $this->initiateType();
        }

        if (isset($sourceType)) {
            ObjectHelper::mergeWith($this->type, $sourceType, TRUE);
        }
    }
Beispiel #3
0
 public function initializeAssemblerFrom($sourceAssembler)
 {
     if (isset($sourceAssembler)) {
         if (!isset($this->assembler)) {
             $this->assembler = $this->initiateAssembler();
         }
         ObjectHelper::mergeWith($this->assembler, $sourceAssembler, TRUE);
     }
 }
Beispiel #4
0
 public function initializeTypeFrom($sourceType)
 {
     if (isset($sourceType)) {
         ObjectHelper::mergeWith($this->type, $sourceType, TRUE);
     }
 }
    public function initializeAliasesFrom($sourceAliases, $replace = FALSE) {
        if ($replace) {
            $this->aliases = NULL;
        }

        if (isset($sourceAliases)) {
            ObjectHelper::mergeWith($this->aliases, $sourceAliases, TRUE);
        }
    }
 public function initializeInstanceFrom($sourceDataSource) {
     // we need to support some unknown composite properties
     ObjectHelper::mergeWith($this, $sourceDataSource, TRUE);
 }
Beispiel #7
0
 public function initializeInstanceFrom($source)
 {
     ObjectHelper::mergeWith($this, $source);
 }