This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
'router' => array( | |
'routes' => array( | |
'option' => array( | |
'type' => 'Literal', | |
'options' => array( | |
'route' => '/option', | |
'defaults' => array( | |
'__NAMESPACE__' => 'AssetManagement\Controller', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->add(array( | |
'name' => 'security', | |
'type' => 'Zend\Form\Element\Csrf' | |
)); | |
$this->add(array( | |
'name' => 'submit', | |
'attributes' => array( | |
'type' => 'submit', | |
'value' => 'Go', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->add(array( | |
'name' => 'security', | |
'type' => 'Zend\Form\Element\Csrf' | |
)); | |
$this->add(array( | |
'name' => 'submit', | |
'attributes' => array( | |
'type' => 'submit', | |
'value' => 'Go', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Zebreco\Form; | |
use Zend\ServiceManager\FactoryInterface; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
use Zebreco\Entity\Ticket; | |
use DoctrineORMModule\Stdlib\Hydrator\DoctrineEntity as ClassMethods; | |
class TicketCreateFactory implements FactoryInterface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace My\Form\Element; | |
use Zend\Form\Element\Select as SelectElement; | |
class DepartmentSelect extends SelectElement | |
{ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace MyNamespace\Service; | |
use Zend\EventManager\EventManagerAwareInterface; | |
use Zend\EventManager\EventManagerInterface; | |
use Zend\ServiceManager\ServiceManagerAwareInterface; | |
use Zend\ServiceManager\ServiceManager; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\EntityRepository; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Kennzahlen\Service; | |
class Steuerwert extends DoctrineEntityService | |
{ | |
/** | |
* @return \Doctrine\ORM\EntityRepository | |
*/ | |
public function getEntityRepository() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Haushaltportal\Form\Element; | |
use DoctrineModule\Form\Element\Proxy as BaseProxy; | |
class Proxy extends BaseProxy | |
{ | |
/** | |
* @var string | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->add(array( | |
'name' => 'someName', | |
'type' => 'MyNamespace\Form\Element\EntitySelect', | |
'attributes' => array( | |
'required' => true | |
), | |
'options' => array( | |
'label' => 'Select element Label', | |
'empty_option' => '--- Choose Entity ---', | |
'object_manager' => $this->getEntityManager(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Foo | |
{ | |
protected $labelCallable; | |
public function setLabelCallable($labelCallable) | |
{ | |
$this->labelCallable = $labelCallable; | |
} |
OlderNewer