-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Issue #89 feat: Category plugin enhancements - Update get single category api - Update get category list api * Issue #89 feat: Fix return types
- Loading branch information
1 parent
927d3dd
commit 2d69766
Showing
5 changed files
with
307 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,36 @@ | ||
<?php | ||
/** | ||
* @package API plugins | ||
* @copyright Copyright (C) 2009 2014 Techjoomla, Tekdi Technologies Pvt. Ltd. All rights reserved. | ||
* @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html> | ||
* @link http://www.techjoomla.com | ||
*/ | ||
* @package API | ||
* @subpackage com_api | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2019 Techjoomla, Tekdi Technologies Pvt. Ltd. All rights reserved. | ||
* @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html> | ||
*/ | ||
|
||
defined('_JEXEC') or die( 'Restricted access' ); | ||
// No direct access. | ||
defined('_JEXEC') or die('Restricted access'); | ||
|
||
jimport('joomla.plugin.plugin'); | ||
|
||
class plgAPICategories extends ApiPlugin | ||
/** | ||
* Category API plugin class | ||
* | ||
* @package API | ||
* @since 1.6.0 | ||
*/ | ||
class PlgAPICategories extends ApiPlugin | ||
{ | ||
/** | ||
* Constructor. | ||
* | ||
* @param object &$subject The object to observe. | ||
* @param array $config An optional associative array of configuration settings. | ||
* | ||
* @since 1.6.0 | ||
*/ | ||
public function __construct(&$subject, $config = array()) | ||
{ | ||
parent::__construct($subject, $config = array()); | ||
|
||
ApiResource::addIncludePath(dirname(__FILE__).'/categories'); | ||
ApiResource::addIncludePath(dirname(__FILE__) . '/categories'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.