CC-4090: Make code style PSR compliant - part 4
-forms directory
This commit is contained in:
parent
481616a0d6
commit
b2327472e8
29 changed files with 505 additions and 519 deletions
|
@ -24,7 +24,6 @@ class Application_Form_AddShowStyle extends Zend_Form_SubForm
|
|||
array('stringLength', false, array(6, 6))
|
||||
));
|
||||
|
||||
|
||||
// Add show color input
|
||||
$this->addElement('text', 'add_show_color', array(
|
||||
'label' => 'Text Colour:',
|
||||
|
@ -39,22 +38,20 @@ class Application_Form_AddShowStyle extends Zend_Form_SubForm
|
|||
'class' => 'big'
|
||||
))));
|
||||
|
||||
$c->setValidators(array(
|
||||
'Hex',
|
||||
array('stringLength', false, array(6, 6))
|
||||
$c->setValidators(array(
|
||||
'Hex',
|
||||
array('stringLength', false, array(6, 6))
|
||||
));
|
||||
}
|
||||
|
||||
public function disable(){
|
||||
public function disable()
|
||||
{
|
||||
$elements = $this->getElements();
|
||||
foreach ($elements as $element)
|
||||
{
|
||||
if ($element->getType() != 'Zend_Form_Element_Hidden')
|
||||
{
|
||||
foreach ($elements as $element) {
|
||||
if ($element->getType() != 'Zend_Form_Element_Hidden') {
|
||||
$element->setAttrib('disabled','disabled');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue