public function getElement() { $element = new DojoForm(); $element->setAttribs(array('name' => 'foo', 'style' => 'width: 300px; height: 500px;', 'class' => 'someclass', 'dijitParams' => array('labelAttr' => 'foobar', 'typeAttr' => 'barbaz'))); return $element; }