Skip to content

Commit

Permalink
Merge pull request #4 from rolandoisidoro/fix-radio-checkbox-labels
Browse files Browse the repository at this point in the history
Fix Radio and MultiCheckbox labels
  • Loading branch information
neilime authored Jul 8, 2018
2 parents ae34dcc + b805632 commit eb2e7a9
Show file tree
Hide file tree
Showing 25 changed files with 2,324 additions and 2,335 deletions.
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

0 comments on commit eb2e7a9

Please sign in to comment.