Update attribute_group.php

Make it class extension friendly, especially for method addAttributeGroup