Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Radio and MultiCheckbox labels #4

Merged
merged 2 commits into from
Jul 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 22 additions & 23 deletions src/TwbsHelper/Form/Element/StaticElement.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
<?php
namespace TwbsHelper\Form\Element;

use Zend\Form\Element as ZendElement;

/**
* StaticElement
*
* @uses ZendElement
*/
class StaticElement extends ZendElement
{
/**
* Seed attributes
*
* @var array
* @access protected
*/
protected $attributes = [
'type' => 'static'
];
}

<?php
namespace TwbsHelper\Form\Element;

use Zend\Form\Element as ZendElement;

/**
* StaticElement
*
* @uses ZendElement
*/
class StaticElement extends ZendElement
{
/**
* Seed attributes
*
* @var array
* @access protected
*/
protected $attributes = [
'type' => 'static'
];
}
25 changes: 12 additions & 13 deletions src/TwbsHelper/Form/View/Helper/Factory/FormElementFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
use TwbsHelper\Options\ModuleOptions;

/**
* FormElementFactory
* FormElementFactory
* Factory to inject the ModuleOptions hard dependency
*
*
* @uses FactoryInterface
*/
class FormElementFactory implements FactoryInterface
{
/**
* createService
* createService
* Compatibility with ZF2 (>= 2.2) -> proxy to __invoke
*
* @param ServiceLocatorInterface $oServiceLocator
* @param mixed $sCanonicalName
* @param mixed $sRequestedName
*
* @param ServiceLocatorInterface $oServiceLocator
* @param mixed $sCanonicalName
* @param mixed $sRequestedName
* @access public
* @return void
*/
Expand All @@ -34,12 +34,12 @@ public function createService(ServiceLocatorInterface $oServiceLocator, $sCanoni


/**
* __invoke
* __invoke
* Compatibility with ZF3
*
* @param ContainerInterface $container
* @param mixed $requestedName
* @param array $options
*
* @param ContainerInterface $container
* @param mixed $requestedName
* @param array $options
* @access public
* @return void
*/
Expand All @@ -50,4 +50,3 @@ public function __invoke(ContainerInterface $oContainer, $sRequestedName, array
return new FormElement($oOptions);
}
}

Loading