コード例 #1
0
ファイル: index.php プロジェクト: gudwin/extasy
 public function getData()
 {
     $data = ACLMisc::export();
     $data = $this->appendData($data);
     print json_encode($data);
     die;
 }
コード例 #2
0
ファイル: miscTest.php プロジェクト: gudwin/extasy
 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
ファイル: grant.php プロジェクト: gudwin/extasy
 protected function getAllGrantsMap()
 {
     $result = ACLMisc::export();
     $result = self::addCustomHtml($result);
     return $result;
 }