Rev 195 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
<?phpdeclare(strict_types=1);namespace LeadersLinked\Form\AbuseReport;use Laminas\Form\Form;use LeadersLinked\Model\AbuseReport;class CreateForm extends Form{/****/public function __construct(){parent::__construct();$this->setInputFilter(new CreateFilter());$this->add(['name' => 'reason','type' => \Laminas\Form\Element\Select::class,'options' => ['value_options' => [AbuseReport::REASON_ADDICTION => 'LABEL_ABUSE_REPORT_REASON_ADDICTION',AbuseReport::REASON_DISCRIMINATION => 'LABEL_ABUSE_REPORT_REASON_DISCRIMINATION',AbuseReport::REASON_OFENSIVE => 'LABEL_ABUSE_REPORT_REASON_OFENSIVE',AbuseReport::REASON_SEXUALITY => 'LABEL_ABUSE_REPORT_REASON_SEXUALITY',AbuseReport::REASON_TERRORISM => 'LABEL_ABUSE_REPORT_REASON_TERRORISM',AbuseReport::READON_OTHER => 'LABEL_ABUSE_REPORT_REASON_OTHER',],],'attributes' => ['id' => 'reason',]]);$this->add(['name' => 'block_user','type' => \Laminas\Form\Element\Select::class,'options' => ['value_options' => ['y' => 'LABEL_YES','n' => 'LABEL_NO'],],'attributes' => ['id' => 'block_user',]]);$this->add(['name' => 'comment','type' => \Laminas\Form\Element\Textarea::class,'attributes' => ['id' => 'comment','maxlength' => 500]]);}}