This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hotfix/7426' into develop
Forward port #7426
- Loading branch information
Showing
4 changed files
with
112 additions
and
57 deletions.
There are no files selected for viewing
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 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
39 changes: 39 additions & 0 deletions
39
tests/ZendTest/Form/TestAsset/InputFilterProviderFieldset.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
namespace ZendTest\Form\TestAsset; | ||
|
||
use Zend\Form\Fieldset; | ||
use Zend\InputFilter\InputFilterProviderInterface; | ||
|
||
class InputFilterProviderFieldset extends Fieldset implements InputFilterProviderInterface | ||
{ | ||
public function __construct($name = null, $options = array()) | ||
{ | ||
parent::__construct($name, $options); | ||
|
||
$this->add(array( | ||
'name' => 'foo', | ||
'options' => array( | ||
'label' => 'Foo' | ||
), | ||
)); | ||
|
||
$this->add(new BasicFieldset()); | ||
} | ||
|
||
public function getInputFilterSpecification() | ||
{ | ||
return array( | ||
'foo' => array( | ||
'required' => true, | ||
) | ||
); | ||
} | ||
} |
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