db(); if (IcingaHost::exists($host->host_name, $db)) { return array( 'Modify' => Url::fromPath( 'director/host/edit', array('name' => $host->host_name) ) ); } else { return array(); } } protected function db() { return Db::fromResourceName(Config::module('director')->get('db', 'resource')); } }