Exemple #1
0
 public function setDisabled($bool)
 {
     parent::setDisabled($bool);
     $this->fieldAmount->setDisabled($bool);
     $this->fieldCurrency->setDisabled($bool);
     return $this;
 }
 public function setDisabled($bool)
 {
     parent::setDisabled($bool);
     $this->fieldLatitude->setDisabled($bool);
     $this->fieldLongditude->setDisabled($bool);
     return $this;
 }
 public function setDisabled($disabled)
 {
     parent::setDisabled($disabled);
     foreach ($this->getChildren() as $child) {
         $child->setDisabled($disabled);
     }
     return $this;
 }
 public function testDisabled()
 {
     $field = new FormField('MyField');
     $field->setDisabled(true);
     $this->assertContains('disabled="disabled"', $field->getAttributesHTML());
     $field->setDisabled(false);
     $this->assertNotContains('disabled="disabled"', $field->getAttributesHTML());
 }
 function setDisabled($bool)
 {
     parent::setDisabled($bool);
     $this->dateField->setDisabled($bool);
     $this->timeField->setDisabled($bool);
     if ($this->timezoneField) {
         $this->timezoneField->setDisabled($bool);
     }
     return $this;
 }