public static function masqueradeAttr($value, $paths) { $paths = func_get_args(); array_shift($paths); $session = Session::instance(); $masquerades = $session->get('bluebox.user.masquerades', array()); arr::set_array($masquerades, $value, $paths); $session->set('bluebox.user.masquerades', $masquerades); }