public function setReadonly($bool)
 {
     parent::setReadonly($bool);
     $this->fieldAmount->setReadonly($bool);
     $this->fieldCurrency->setReadonly($bool);
     return $this;
 }
 public function setReadonly($readonly)
 {
     parent::setReadonly($readonly);
     foreach ($this->getChildren() as $child) {
         $child->setReadonly($readonly);
     }
     return $this;
 }
 public function testReadonly()
 {
     $field = new FormField('MyField');
     $field->setReadonly(true);
     $this->assertContains('readonly="readonly"', $field->getAttributesHTML());
     $field->setReadonly(false);
     $this->assertNotContains('readonly="readonly"', $field->getAttributesHTML());
 }
 public function setReadonly($bool)
 {
     parent::setReadonly($bool);
     $this->dateField->setReadonly($bool);
     $this->timeField->setReadonly($bool);
     if ($this->timezoneField) {
         $this->timezoneField->setReadonly($bool);
     }
     return $this;
 }