Project

General

Profile

« Previous | Next » 

Revision 51836

Clear the component - leave only widget code

View differences:

controller.php
9 9
	// $configuration the configuration to use		
10 10
	public function __construct($configuration = array()) {
11 11
		parent :: __construct($configuration);
12
                $alerts = $this -> getModel('alerts');
13
		$claim = $this -> getModel('claim');
14
                $claimsearch = $this -> getModel('claimsearch');
15 12
		$search = $this -> getModel('search');
16
		$statistics = $this -> getModel('statistics');
17
		$redirect = $this -> getModel('redirect');
18
		$piwik = $this -> getModel('piwik');
19
		$this -> getView('advancedsearchdatasources', 'html') -> setModel($search);
20
		$this -> getView('advancedsearchorganizations', 'html') -> setModel($search);
21
		$this -> getView('advancedsearchprojects', 'html') -> setModel($search);
22
		$this -> getView('advancedsearchpublications', 'html') -> setModel($search);
23
                $this -> getView('advancedsearchdatasets', 'html') -> setModel($search);
24
		$this -> getView('alerts', 'html') -> setModel($alerts);
25
		$this -> getView('alerts', 'html') -> setModel($piwik);
26
		$this -> getView('article', 'html') -> setModel($search);
27
		$this -> getView('browsedatasets', 'html') -> setModel($search);
28
		$this -> getView('browsedatasources', 'html') -> setModel($search);
29
		$this -> getView('browseorganizations', 'html') -> setModel($search);
30
		$this -> getView('browseprojects', 'html') -> setModel($search);
31
		$this -> getView('browsepublications', 'html') -> setModel($search);
32
		$this -> getView('chart', 'html') -> setModel($statistics);
33
		$this -> getView('claim1', 'html') -> setModel($claim);
34
		$this -> getView('claim1', 'html') -> setModel($search);
35
		$this -> getView('claim2', 'html') -> setModel($claim);
36
		$this -> getView('claim2', 'html') -> setModel($search);
37
		$this -> getView('claim3', 'html') -> setModel($claim);
38
		$this -> getView('claim4', 'html') -> setModel($search);
39
		$this -> getView('claim4', 'html') -> setModel($claim);
40
		$this -> getView('claim4', 'html') -> setModel($piwik);
41
		$this -> getView('claims', 'html') -> setModel($claim);
42
		$this -> getView('claim2raw', 'raw') -> setModel($claim);
43
		$this -> getView('claim2raw', 'raw') -> setModel($search);
44
                $this -> getView('claim2raw', 'raw') -> setModel($claimsearch);
45
		$this -> getView('claiminline', 'html') -> setModel($claim);
46
		$this -> getView('claiminline', 'html') -> setModel($search);
47
        $this -> getView('claiminline2', 'html') -> setModel($claim);
48
		$this -> getView('claiminline2', 'html') -> setModel($search);
49
		$this -> getView('communities', 'raw') -> setModel($search);
50
        $this -> getView('communities', 'raw') -> setModel($claim);
51
        $this -> getView('data', 'raw') -> setModel($search);
52
		$this -> getView('dataset', 'html') -> setModel($search);
53
		$this -> getView('datasource', 'html') -> setModel($search);
54
		$this -> getView('emailpublication', 'raw') -> setModel($search);
55
		$this -> getView('emailpublication', 'raw') -> setModel($piwik);
56
		// view ingestion1 uses no model at all
57
		$this -> getView('ingestion2', 'html') -> setModel($search);
58
		$this -> getView('institutions', 'raw') -> setModel($search);
59
		$this -> getView('institutions', 'raw') -> setModel($piwik);
60
		$this -> getView('invenio', 'html') -> setModel($redirect);
61
		$this -> getView('invenio', 'html') -> setModel($piwik);
62
		$this -> getView('organization', 'html') -> setModel($search);
63
		$this -> getView('printpublication', 'raw') -> setModel($search);
64
		$this -> getView('printpublication', 'raw') -> setModel($piwik);
65
		$this -> getView('project', 'html') -> setModel($search);
66
		$this -> getView('projects', 'raw') -> setModel($search);
67
                $this -> getView('projectsraw', 'raw') -> setModel($search);
68
		$this -> getView('projectfundings', 'raw') -> setModel($search);
69
		$this -> getView('publications', 'raw') -> setModel($search);
70
		$this -> getView('repositories', 'html') -> setModel($search);
71
		$this -> getView('search', 'html') -> setModel($search);
72
		$this -> getView('searchdatasets', 'html') -> setModel($search);
73
		$this -> getView('searchdatasetsraw', 'raw') -> setModel($search);
74
		$this -> getView('searchdatasources', 'html') -> setModel($search);
75
		$this -> getView('searchdatasourcesraw', 'raw') -> setModel($search);
76
		$this -> getView('searchorganizations', 'html') -> setModel($search);
77
		$this -> getView('searchorganizationsraw', 'raw') -> setModel($search);
78
		$this -> getView('searchprojects', 'html') -> setModel($search);
79
		$this -> getView('searchprojectsraw', 'raw') -> setModel($search);
80
		$this -> getView('searchpublications', 'html') -> setModel($search);
81
		$this -> getView('searchpublicationsraw', 'raw') -> setModel($search);
82
		$this -> getView('statistics', 'html') -> setModel($statistics);
83
		$this -> getView('topics', 'raw') -> setModel($alerts);
84
		$this -> getView('validator', 'html') -> setModel($redirect);
85
		$this -> getView('validator', 'html') -> setModel($piwik);
13
 
14
                $this -> getView('data', 'raw') -> setModel($search);		 
86 15
		// view widget uses no model at all
87 16
	}
88 17
}

Also available in: Unified diff