|
@@ 1931-1935 (lines=5) @@
|
| 1928 |
|
if ($lengthMin && $lengthMin > 0) { |
| 1929 |
|
$options['min'] = $lengthMin; |
| 1930 |
|
} |
| 1931 |
|
if ($lengthMax && $lengthMax > $lengthMin) { |
| 1932 |
|
$options['max'] = $lengthMax; |
| 1933 |
|
$element->setAttribute('maxlength', $lengthMax); |
| 1934 |
|
$options['messages'] = array(\Zend\Validator\StringLength::TOO_LONG => sprintf($this->getServiceLocator()->get('translator')->translate('This field contains more than %s characters', 'playgroundgame'), $lengthMax)); |
| 1935 |
|
} |
| 1936 |
|
|
| 1937 |
|
$validators = array( |
| 1938 |
|
array( |
|
@@ 1988-1992 (lines=5) @@
|
| 1985 |
|
if ($lengthMin && $lengthMin > 0) { |
| 1986 |
|
$options['min'] = $lengthMin; |
| 1987 |
|
} |
| 1988 |
|
if ($lengthMax && $lengthMax > $lengthMin) { |
| 1989 |
|
$options['max'] = $lengthMax; |
| 1990 |
|
$element->setAttribute('maxlength', $lengthMax); |
| 1991 |
|
$options['messages'] = array(\Zend\Validator\StringLength::TOO_LONG => sprintf($this->getServiceLocator()->get('translator')->translate('This field contains more than %s characters', 'playgroundgame'), $lengthMax)); |
| 1992 |
|
} |
| 1993 |
|
$inputFilter->add($factory->createInput(array( |
| 1994 |
|
'name' => $name, |
| 1995 |
|
'required' => $required, |
|
@@ 2034-2038 (lines=5) @@
|
| 2031 |
|
if ($lengthMin && $lengthMin > 0) { |
| 2032 |
|
$options['min'] = $lengthMin; |
| 2033 |
|
} |
| 2034 |
|
if ($lengthMax && $lengthMax > $lengthMin) { |
| 2035 |
|
$options['max'] = $lengthMax; |
| 2036 |
|
$element->setAttribute('maxlength', $lengthMax); |
| 2037 |
|
$options['messages'] = array(\Zend\Validator\StringLength::TOO_LONG => sprintf($this->getServiceLocator()->get('translator')->translate('This field contains more than %s characters', 'playgroundgame'), $lengthMax)); |
| 2038 |
|
} |
| 2039 |
|
$inputFilter->add($factory->createInput(array( |
| 2040 |
|
'name' => $name, |
| 2041 |
|
'required' => $required, |
|
@@ 2081-2085 (lines=5) @@
|
| 2078 |
|
if ($lengthMin && $lengthMin > 0) { |
| 2079 |
|
$options['min'] = $lengthMin; |
| 2080 |
|
} |
| 2081 |
|
if ($lengthMax && $lengthMax > $lengthMin) { |
| 2082 |
|
$options['max'] = $lengthMax; |
| 2083 |
|
$element->setAttribute('maxlength', $lengthMax); |
| 2084 |
|
$options['messages'] = array(\Zend\Validator\StringLength::TOO_LONG => sprintf($this->getServiceLocator()->get('translator')->translate('This field contains more than %s characters', 'playgroundgame'), $lengthMax)); |
| 2085 |
|
} |
| 2086 |
|
$inputFilter->add($factory->createInput(array( |
| 2087 |
|
'name' => $name, |
| 2088 |
|
'required' => $required, |