mirror of https://github.com/MISP/MISP
23 lines
494 B
PHP
23 lines
494 B
PHP
<?php
|
|
App::uses('AppModel', 'Model');
|
|
|
|
class News extends AppModel
|
|
{
|
|
public $actsAs = array('AuditLog', 'Containable');
|
|
|
|
public $validate = array(
|
|
'message' => array(
|
|
'valueNotEmpty' => array(
|
|
'rule' => array('valueNotEmpty'),
|
|
),
|
|
),
|
|
'title' => array(
|
|
'valueNotEmpty' => array(
|
|
'rule' => array('valueNotEmpty'),
|
|
),
|
|
)
|
|
);
|
|
|
|
public $belongsTo = 'User';
|
|
}
|