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