function wrap($mixed, $domain, $lifetime = 0) { isset($this->domains[$domain]) or backend_error('bad_method', 'Unknown domain: ' . $domain); $expire_at = $lifetime ? @time() + $lifetime : 0; return security::wrap($mixed, $this->domains[$domain], $expire_at); }