Pimcore\Model\Object\ClassDefinition\Data\Multihref::synchronizeWithMasterDefinition PHP Method

synchronizeWithMasterDefinition() public method

public synchronizeWithMasterDefinition ( Data $masterDefinition )
$masterDefinition Pimcore\Model\Object\ClassDefinition\Data
    public function synchronizeWithMasterDefinition(Object\ClassDefinition\Data $masterDefinition)
    {
        $this->maxItems = $masterDefinition->maxItems;
        $this->assetUploadPath = $masterDefinition->assetUploadPath;
        $this->relationType = $masterDefinition->relationType;
        $this->objectsAllowed = $masterDefinition->objectsAllowed;
        $this->assetsAllowed = $masterDefinition->assetsAllowed;
        $this->assetTypes = $masterDefinition->assetTypes;
        $this->documentsAllowed = $masterDefinition->documentsAllowed;
        $this->documentTypes = $masterDefinition->documentTypes;
    }

Usage Example

Example #1
0
 /**
  * @param Object\ClassDefinition\Data $masterDefinition
  */
 public function synchronizeWithMasterDefinition(Object\ClassDefinition\Data $masterDefinition)
 {
     parent::synchronizeWithMasterDefinition($masterDefinition);
     $this->columns = $masterDefinition->columns;
 }