function getContent() { $this->gatekeeper(); $apps = \IdnoPlugins\OAuth2\Application::get(['owner' => \Idno\Core\site()->session()->currentUserUUID()], array(), 99999, 0); // TODO: make this more complete / efficient $t = \Idno\Core\site()->template(); $t->body = $t->__(array('applications' => $apps))->draw('account/oauth2'); $t->title = 'Manage OAuth2 Applications'; $t->drawPage(); }