2013-11-17 17:54:15 +01:00
|
|
|
<?php
|
|
|
|
App::uses('AppModel', 'Model');
|
|
|
|
|
|
|
|
class ThreatLevel extends AppModel {
|
|
|
|
|
|
|
|
public $validate = array(
|
|
|
|
'name' => array(
|
2015-10-18 20:51:37 +02:00
|
|
|
'valueNotEmpty' => array(
|
|
|
|
'rule' => array('valueNotEmpty'),
|
2013-11-17 17:54:15 +01:00
|
|
|
'required' => true
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'description' => array(
|
2015-10-18 20:51:37 +02:00
|
|
|
'valueNotEmpty' => array(
|
|
|
|
'rule' => array('valueNotEmpty'),
|
2013-11-17 17:54:15 +01:00
|
|
|
),
|
|
|
|
),
|
|
|
|
'form_description' => array(
|
2015-10-18 20:51:37 +02:00
|
|
|
'valueNotEmpty' => array(
|
|
|
|
'rule' => array('valueNotEmpty'),
|
2013-11-17 17:54:15 +01:00
|
|
|
'required' => true
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* hasMany associations
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
/*public $hasMany = array(
|
|
|
|
'Event' => array(
|
|
|
|
'className' => 'Event',
|
|
|
|
'foreignKey' => 'threat_level_id',
|
|
|
|
'dependent' => false,
|
|
|
|
)
|
|
|
|
);*/
|
|
|
|
|
|
|
|
}
|