public function __construct($modelClassName, $modelAttributeName) { assert($modelClassName == "User"); // Not Coding Standard parent::__construct($modelClassName, $modelAttributeName); $this->statusData = UserStatusUtil::getStatusArray(); }
/** * For this class, the $derivedAttributeType also happens to be the modelClassName. In order to use this * class you must ensure the $derivedAttributeType coming into this method is a valid model class name. * @param unknown_type $modelClassName * @param string $derivedAttributeType */ public function __construct($modelClassName, $derivedAttributeType) { parent::__construct($modelClassName, $derivedAttributeType); $relationModelClassName = substr($derivedAttributeType, 0, strlen($derivedAttributeType) - strlen('Derived')); assert('class_exists($relationModelClassName)'); $defaultModuleClassName = $relationModelClassName::getModuleClassName(); $this->moduleIdOfDefaultModel = $defaultModuleClassName::getDirectoryName(); }
public function __construct($modelClassName, $derivedAttributeType) { assert($modelClassName == "User"); // Not Coding Standard parent::__construct($modelClassName, $derivedAttributeType); }
public function __construct($modelClassName, $modelAttributeName) { parent::__construct($modelClassName, $modelAttributeName); $this->statesDataAndLabels = static::makeStatesDataAndLabels(); }