function test_all1()
 {
     $res = Metadata::get('username', '**user.1');
     $this->assertEqual('arunoda', $res['**user.1']['username']);
     Metadata::delete('user%', '**user.%');
     $res = Metadata::get('username', '**user.1');
     $this->assertNull($res, "found {$res}");
 }
示例#2
0
 public function detete_user($user)
 {
     Metadata::delete("{$user}", "has.{$this->name}");
 }
示例#3
0
 public function delete()
 {
     Metadata::delete('%', "user.{$this->id}");
 }
示例#4
0
 public static function remove($role, $subject, $action)
 {
     $code = md5($role . $subject . $action);
     Metadata::delete('%', "perm.{$code}");
 }