protected static function alias($name) { $dbname = Config::param("db.alias.{$name}"); if (null === $dbname) { return $name; } return $dbname; }
protected static function cacheTime($owner) { $cachetime = Config::param("{$owner}.cache.life"); if (null === $cachetime || !is_integer($cachetime)) { $cachetime = 300; } //senconds return $cachetime; }