/** * Set the realm for basic auth challenges * * @param String $realm the realm to display (optional) * @return String the currently defined realm */ public static function realm($realm = NULL) { if (!is_null($realm)) { self::$realm = $realm; } return self::$realm; }