MISP/app/Model/News.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';
}