public load ( ) : Zend\Form\Element\Checkbox | ||
return | Zend\Form\Element\Checkbox |
public function load()
{
$boolean = new Element\Checkbox($this->getName());
$boolean->setLabel($this->getProperty()->getName());
$boolean->setAttribute('class', 'input-checkbox');
$boolean->setAttribute('id', 'boolean' . $this->getProperty()->getId());
$boolean->setValue($this->getProperty()->getValue());
return $boolean;
}
/** * Test * * @return void */ public function testLoad() { $this->assertInstanceOf('Zend\\Form\\Element\\Checkbox', $this->object->load()); }