Rev 6750 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
declare(strict_types=1);
namespace LeadersLinked\Form\AccountSetting;
use Laminas\Form\Form;
use Laminas\Db\Adapter\AdapterInterface;
use LeadersLinked\Mapper\IndustryMapper;
use LeadersLinked\Mapper\CompanySizeMapper;
class NotificationSettingForm extends Form
{
/**
*
* @param AdapterInterface $adapter
*/
public function __construct()
{
parent::__construct();
$this->setInputFilter(new NotificationSettingFilter());
$this->add([
'name' => 'receive_connection_request',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'receive_connection_request',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
$this->add([
'name' => 'accept_my_request_connection',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'accept_my_request_connection',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
$this->add([
'name' => 'receive_invitation_group',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'receive_invitation_group',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
$this->add([
'name' => 'accept_my_request_join_group',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'accept_my_request_join_group',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
$this->add([
'name' => 'receive_request_join_my_group',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'receive_request_join_my_group',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
$this->add([
'name' => 'receive_invitation_company',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'receive_invitation_company',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
$this->add([
'name' => 'like_my_feed',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'like_my_feed',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
$this->add([
'name' => 'comment_my_feed',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'comment_my_feed',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
$this->add([
'name' => 'share_my_feed',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'share_my_feed',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
$this->add([
'name' => 'receive_inmail',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'receive_inmail',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
$this->add([
'name' => 'receive_invitation_meeting',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'receive_invitation_meeting',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
$this->add([
'name' => 'receive_reminder_meeting',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'receive_reminder_meeting',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
$this->add([
'name' => 'receive_records_available_meeting',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'receive_records_available_meeting',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\UserNotificationSetting::NO,
'checked_value'=> \LeadersLinked\Model\UserNotificationSetting::YES,
]
]);
}
}