/** * @param string $modelClassName * @param string $modelAttributeName */ public function __construct($modelClassName, $modelAttributeName) { parent::__construct($modelClassName, $modelAttributeName); assert('is_subclass_of($modelClassName, "Item") || $modelClassName == "Item"'); assert('$modelClassName::isRelation($modelAttributeName)'); $relationModelClassName = $modelClassName::getRelationModelClassName($modelAttributeName); $defaultModuleClassName = $relationModelClassName::getModuleClassName(); $this->moduleIdOfDefaultModel = $defaultModuleClassName::getDirectoryName(); }
public function __construct($modelClassName, $modelAttributeName) { parent::__construct($modelClassName, $modelAttributeName); $this->data = CustomFieldDataModelUtil::getDataByModelClassNameAndAttributeName($modelClassName, $modelAttributeName); }