Jump to content


davidtran

Member Since 22 Dec 2011
Offline Last Active Sep 04 2012 01:30 AM
-----

Topics I've Started

Question on RequiredAttributesValidViewUtil class

19 January 2012 - 04:09 PM

Hi, everybody

I am learning Zurmo, in order to understand fully of zurmo, I have evaluate class RequiredAttributesValidViewUtil and write test case for it.

Now, I stucked with this function resolveToSetAsMissingRequiredAttributesByModelClassName($modelClassName, $attributeName)

I just don't really understand this function,


$designerRules = DesignerRulesFactory::createDesignerRulesByView($viewClassName);

$attributesLayoutAdapter = AttributesLayoutAdapterUtil::
makeByViewAndModelAndDesignerRules($viewClassName,
$modelClassName,
$designerRules);

what does it return if I set $modelClassName = "ContactsModule"

Thank you