Пример #1
0
 public function getData()
 {
     $data = ACLMisc::export();
     $data = $this->appendData($data);
     print json_encode($data);
     die;
 }
Пример #2
0
 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']));
 }
Пример #3
0
 protected function getAllGrantsMap()
 {
     $result = ACLMisc::export();
     $result = self::addCustomHtml($result);
     return $result;
 }