mirror of https://github.com/MISP/MISP
chg: remove redundant className attributes
parent
90c28602c3
commit
b4b9a35de3
|
@ -17,7 +17,6 @@ class NewsController extends AppController {
|
|||
);
|
||||
|
||||
public function index() {
|
||||
$this->News->bindModel(array('belongsTo' => array('User' => array('className' => 'User'))));
|
||||
$this->paginate['contain'] = array('User' => array('fields' => array('User.email')));
|
||||
$newsItems = $this->paginate();
|
||||
$this->loadModel('User');
|
||||
|
|
|
@ -19,18 +19,14 @@ class EventDelegation extends AppModel {
|
|||
);
|
||||
|
||||
public $belongsTo = array(
|
||||
'Event' => array(
|
||||
'className' => 'Event',
|
||||
),
|
||||
'Event',
|
||||
'Org' => array(
|
||||
'className' => 'Organisation',
|
||||
),
|
||||
'RequesterOrg' => array(
|
||||
'className' => 'Organisation'
|
||||
),
|
||||
'SharingGroup' => array(
|
||||
'className' => 'SharingGroup'
|
||||
)
|
||||
'SharingGroup'
|
||||
);
|
||||
|
||||
public function attachTagToEvent($event_id, $tag_id) {
|
||||
|
|
|
@ -19,12 +19,8 @@ class EventTag extends AppModel {
|
|||
);
|
||||
|
||||
public $belongsTo = array(
|
||||
'Event' => array(
|
||||
'className' => 'Event',
|
||||
),
|
||||
'Tag' => array(
|
||||
'className' => 'Tag',
|
||||
),
|
||||
'Event',
|
||||
'Tag'
|
||||
);
|
||||
|
||||
// take an array of tag names to be included and an array with tagnames to be excluded and find all event IDs that fit the criteria
|
||||
|
|
|
@ -18,9 +18,5 @@ class News extends AppModel {
|
|||
)
|
||||
);
|
||||
|
||||
public $belongsTo = array(
|
||||
'User' => array(
|
||||
'className' => 'User',
|
||||
)
|
||||
);
|
||||
public $belongsTo = 'User';
|
||||
}
|
||||
|
|
|
@ -19,12 +19,8 @@ class ServerTag extends AppModel {
|
|||
);
|
||||
|
||||
public $belongsTo = array(
|
||||
'Server' => array(
|
||||
'className' => 'Server',
|
||||
),
|
||||
'Tag' => array(
|
||||
'className' => 'Tag',
|
||||
),
|
||||
'Server',
|
||||
'Tag'
|
||||
);
|
||||
|
||||
public function attachTagToServer($server_id, $tag_id) {
|
||||
|
|
|
@ -19,12 +19,8 @@ class Sighting extends AppModel {
|
|||
);
|
||||
|
||||
public $belongsTo = array(
|
||||
'Attribute' => array(
|
||||
'className' => 'Attribute',
|
||||
),
|
||||
'Event' => array(
|
||||
'className' => 'Event',
|
||||
),
|
||||
'Attribute',
|
||||
'Event',
|
||||
'Organisation' => array(
|
||||
'className' => 'Organisation',
|
||||
'foreignKey' => 'org_id'
|
||||
|
|
Loading…
Reference in New Issue