public function getData() { $data = ACLMisc::export(); $data = $this->appendData($data); print json_encode($data); die; }
public function testExport() { ACL::create('a/b/c'); ACL::create('a/b/d'); ACL::create('a/e'); $exported = ACLMisc::export(); $this->assertEquals(1, sizeof($exported)); $this->assertEquals(2, sizeof($exported[0]['children'])); $this->assertEquals(2, sizeof($exported[0]['children'][0]['children'])); }
protected function getAllGrantsMap() { $result = ACLMisc::export(); $result = self::addCustomHtml($result); return $result; }