コード例 #1
0
ファイル: RadioField.php プロジェクト: gamespree/simplon_form
 /**
  * @param $value
  * @return AbstractElement|CheckboxField
  */
 public function setValue($value)
 {
     if ($value !== FALSE) {
         parent::setValue($value);
         $this->setChecked();
     }
     return $this;
 }
コード例 #2
0
ファイル: TextField.php プロジェクト: Newman101/WellCommerce
 /**
  * {@inheritdoc}
  */
 public function prepareAttributesCollection(AttributeCollection $collection)
 {
     parent::prepareAttributesCollection($collection);
     $collection->add(new Attribute('sSize', $this->getOption('size')));
     $collection->add(new Attribute('sSuffix', $this->getOption('suffix')));
 }