for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* BB's Zend Framework 2 Components
*
* AdminModule
* @package [MyApplication]
* @package BB's Zend Framework 2 Components
* @package AdminModule
* @author Björn Bartels <[email protected]>
* @link https://gitlab.bjoernbartels.earth/groups/zf2
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @copyright copyright (c) 2016 Björn Bartels <[email protected]>
*/
namespace Admin\Form;
use Zend\Form\Form;
class AclForm extends Form
{
public function __construct($name = null)
// we want to ignore the name passed
parent::__construct('acl');
$this->setAttribute('method', 'post');
$this->add(
array(
'name' => 'acl_id',
'attributes' => array(
'type' => 'hidden',
),
)
);
'name' => 'aclroles_id',
'type' => 'select',
'options' => array(
'label' => 'role',
'name' => 'aclresources_id',
'label' => 'resource',
'name' => 'state',
'' => '---',
'allow' => 'allow',
'deny' => 'deny',
'label' => 'state',
'name' => 'reset',
'type' => 'reset',
'value' => 'reset',
'id' => 'resetbutton',
'label' => 'reset',
'name' => 'submit',
'type' => 'submit',
'value' => 'save',
'id' => 'submitbutton',
'label' => 'save',
}