|
@@ 2040-2044 (lines=5) @@
|
| 2037 |
|
if ($lengthMin && $lengthMin > 0) { |
| 2038 |
|
$options['min'] = $lengthMin; |
| 2039 |
|
} |
| 2040 |
|
if ($lengthMax && $lengthMax > $lengthMin) { |
| 2041 |
|
$options['max'] = $lengthMax; |
| 2042 |
|
$element->setAttribute('maxlength', $lengthMax); |
| 2043 |
|
$options['messages'] = array( |
| 2044 |
|
\Zend\Validator\StringLength::TOO_LONG => sprintf( |
| 2045 |
|
$this->getServiceLocator()->get('translator')->translate( |
| 2046 |
|
'This field contains more than %s characters', |
| 2047 |
|
'playgroundgame' |
|
@@ 2115-2119 (lines=5) @@
|
| 2112 |
|
if ($lengthMin && $lengthMin > 0) { |
| 2113 |
|
$options['min'] = $lengthMin; |
| 2114 |
|
} |
| 2115 |
|
if ($lengthMax && $lengthMax > $lengthMin) { |
| 2116 |
|
$options['max'] = $lengthMax; |
| 2117 |
|
$element->setAttribute('maxlength', $lengthMax); |
| 2118 |
|
$options['messages'] = array( |
| 2119 |
|
\Zend\Validator\StringLength::TOO_LONG => sprintf( |
| 2120 |
|
$this->getServiceLocator()->get('translator')->translate( |
| 2121 |
|
'This field contains more than %s characters', |
| 2122 |
|
'playgroundgame' |
|
@@ 2169-2173 (lines=5) @@
|
| 2166 |
|
if ($lengthMin && $lengthMin > 0) { |
| 2167 |
|
$options['min'] = $lengthMin; |
| 2168 |
|
} |
| 2169 |
|
if ($lengthMax && $lengthMax > $lengthMin) { |
| 2170 |
|
$options['max'] = $lengthMax; |
| 2171 |
|
$element->setAttribute('maxlength', $lengthMax); |
| 2172 |
|
$options['messages'] = array( |
| 2173 |
|
\Zend\Validator\StringLength::TOO_LONG => sprintf( |
| 2174 |
|
$this->getServiceLocator()->get('translator')->translate( |
| 2175 |
|
'This field contains more than %s characters', |
| 2176 |
|
'playgroundgame' |
|
@@ 2224-2228 (lines=5) @@
|
| 2221 |
|
if ($lengthMin && $lengthMin > 0) { |
| 2222 |
|
$options['min'] = $lengthMin; |
| 2223 |
|
} |
| 2224 |
|
if ($lengthMax && $lengthMax > $lengthMin) { |
| 2225 |
|
$options['max'] = $lengthMax; |
| 2226 |
|
$element->setAttribute('maxlength', $lengthMax); |
| 2227 |
|
$options['messages'] = array( |
| 2228 |
|
\Zend\Validator\StringLength::TOO_LONG => sprintf( |
| 2229 |
|
$this->getServiceLocator()->get('translator')->translate( |
| 2230 |
|
'This field contains more than %s characters', |
| 2231 |
|
'playgroundgame' |