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}"); }
public function detete_user($user) { Metadata::delete("{$user}", "has.{$this->name}"); }
public function delete() { Metadata::delete('%', "user.{$this->id}"); }
public static function remove($role, $subject, $action) { $code = md5($role . $subject . $action); Metadata::delete('%', "perm.{$code}"); }