aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Module/Permcat.php
blob: 064c9cefb4518160611cf016b0fe60b71c38ec45 (plain) (tree)
1
2
3
4
5



                         
                         








                                               





                                                                      


         
 
 
<?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());

	}


}