aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Permcat.php
blob: 0335c7bc6c82fa4d25c2d5c7185c42c0bafbbd41 (plain) (blame)
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
<?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());

	}


}