MISP/app/Model/WarninglistType.php

24 lines
434 B
PHP
Raw Normal View History

2016-04-21 22:58:49 +02:00
<?php
App::uses('AppModel', 'Model');
class WarninglistType extends AppModel{
public $useTable = 'warninglist_types';
public $recursive = -1;
public $actsAs = array(
'Containable',
);
public $validate = array(
'type' => array(
'rule' => array('valueNotEmpty'),
)
2016-06-04 01:10:45 +02:00
);
2016-04-21 22:58:49 +02:00
public $belongsTo = array(
'Warninglist'
);
2016-04-21 22:58:49 +02:00
public function beforeValidate($options = array()) {
parent::beforeValidate();
return true;
}
}