-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathmenu.php
More file actions
executable file
·38 lines (32 loc) · 818 Bytes
/
menu.php
File metadata and controls
executable file
·38 lines (32 loc) · 818 Bytes
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
<?php
/**
* @package Joomla.Plugin
* @subpackage Menu
*
* @copyright Copyright (C) 2016 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die( 'Restricted access' );
jimport('joomla.plugin.plugin');
/**
* Importer Plugin.
*
* @since 3.0
*/
class PlgAPIMenu extends ApiPlugin
{
/**
* Constructor
*
* @param string &$subject The name of the Plugin group.
* @param array $config Config params array.
*
* @since 3.0
*/
public function __construct(&$subject, $config = array())
{
parent::__construct($subject = 'api', $config = array());
ApiResource::addIncludePath(dirname(__FILE__) . '/menu');
$this->setResourceAccess('menus', 'public', 'get');
}
}