| 1 | <?php |
||
| 20 | class SocialProfiles extends BaseForm |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Label for rendering purposes. |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $label = /*@translate*/ 'Social Profiles'; |
||
| 27 | |||
| 28 | protected $baseFieldset = array( |
||
| 29 | 'type' => 'Auth/SocialProfilesFieldset', |
||
| 30 | 'options' => array( |
||
| 31 | 'profiles' => array( |
||
| 32 | 'facebook' => 'Facebook', |
||
| 33 | 'xing' => 'Xing', |
||
| 34 | 'linkedin' => 'LinkedIn' |
||
| 35 | ), |
||
| 36 | 'renderFieldset' => true, |
||
| 37 | |||
| 38 | ), |
||
| 39 | ); |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var bool |
||
| 43 | */ |
||
| 44 | protected $useDefaultValidation = false; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritDoc} |
||
| 48 | * |
||
| 49 | * This method is a no-op, as we do not need a button fieldset. |
||
| 50 | * @see \Core\Form\BaseForm::addButtonsFieldset() |
||
| 51 | */ |
||
| 52 | protected function addButtonsFieldset() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritDoc} |
||
| 58 | */ |
||
| 59 | public function isValid() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param bool $bool |
||
| 66 | * @return SocialProfiles |
||
| 67 | */ |
||
| 68 | public function setUseDefaultValidation($bool) |
||
| 74 | } |
||
| 75 |