forked from PushOCCRP/Push-Joomla-REST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
controller.php
48 lines (43 loc) · 1.1 KB
/
controller.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* @package Joomla.Administrator
* @subpackage com_push
*
* @copyright Copyright (C) 2015 International Center For Journalists
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
/**
* Push Component Controller
*
* @since 0.0.1
*/
class PushController extends JControllerLegacy
{
function articles() {
$view = $this->getView( 'articles', 'json' );
$view->setLayout( 'default' );
$view->display();
}
function category_articles() {
$view = $this->getView( 'category_articles', 'json' );
$view->setLayout( 'default' );
$view->display();
}
function categories() {
$view = $this->getView( 'categories', 'json' );
$view->setLayout( 'default' );
$view->display();
}
function url_lookup() {
$view = $this->getView( 'urllookup', 'json');
$view->setLayout( 'default' );
$view->display();
}
function article() {
$view = $this->getView( 'article', 'json');
$view->setLayout( 'default' );
$view->display();
}
}