| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace MGModule\DNSManager2\models\custom\excludenotification;
- use MGModule\DNSManager2 as main;
- /**
- * Log class
- *
- * @Table(name=excludenotification)
- */
- class ExcludeNotification extends main\mgLibs\models\orm{
- /**
- * ID field
- *
- * @Column(id)
- * @var int
- */
- public $id;
-
- /**
- *
- * @Column(int)
- * @var string
- */
- public $type;
-
- /**
- *
- * @Column(int)
- * @var int
- */
- public $relid;
-
- public function setType($type) {
- if(!ExcludeNotificationTypeEnum::isValidValue($type))
- throw new Exception ("Wrong type provided");
- $this->type = $type;
- }
-
- public function save($data = array()) {
- if(!ExcludeNotificationTypeEnum::isValidValue($this->type)) {
- throw new \Exception('Invalid Exclude Notification Type');
- }
- parent::save($data);
- }
- }
|