This repository has been archived on 2024-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
core/Zotlabs/Module/Permcat.php
2017-02-07 16:43:00 -08:00

25 lines
366 B
PHP

<?php
namespace Zotlabs\Module;
use \Zotlabs\Lib as Zlib;
class Permcat extends \Zotlabs\Web\Controller {
private $permcats = [];
public function init() {
if(! local_channel())
return;
$permcat = new Zlib\Permcat(local_channel());
if(argc() > 1)
json_return_and_die($permcat->fetch(argv(1)));
json_return_and_die($permcat->listing());
}
}