ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\Init\Provider\StartUpMetaBarProvider Class Reference

Class StartUpMetaBarProvider. More...

+ Inheritance diagram for ILIAS\Init\Provider\StartUpMetaBarProvider:
+ Collaboration diagram for ILIAS\Init\Provider\StartUpMetaBarProvider:

Private Member Functions

 isUserLoggedIn ()
 
 isUserOnLoginPage ()
 
 appendUrlParameterString (string $existing_url, string $addition)
 
 getBaseURL ()
 

Additional Inherited Members

- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MetaBar\Provider\AbstractStaticMetaBarProvider
 __construct (Container $dic)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MetaBar\Provider\StaticMetaBarProvider
 getMetaBarItems ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MetaBar\Provider\MetaBarProviderInterface
 getProviderNameForPresentation ()
 
- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\MetaBar\Provider\AbstractStaticMetaBarProvider
 $dic
 
 $if
 
 $meta_bar
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Detailed Description

Member Function Documentation

◆ appendUrlParameterString()

ILIAS\Init\Provider\StartUpMetaBarProvider::appendUrlParameterString ( string  $existing_url,
string  $addition 
)
private

Definition at line 113 of file StartUpMetaBarProvider.php.

References $url.

113  : string
114  {
115  $url = (is_int(strpos($existing_url, "?")))
116  ? $existing_url . "&" . $addition
117  : $existing_url . "?" . $addition;
118 
119  $url = str_replace("?&", "?", $url);
120 
121  return $url;
122  }
$url

◆ getBaseURL()

ILIAS\Init\Provider\StartUpMetaBarProvider::getBaseURL ( )
private

Definition at line 125 of file StartUpMetaBarProvider.php.

References $_SERVER, and $base.

125  : string
126  {
127  $base = substr($_SERVER["REQUEST_URI"], strrpos($_SERVER["REQUEST_URI"], "/") + 1);
128 
129  return preg_replace("/&*lang=[a-z]{2}&*/", "", $base);
130  }
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
$base
Definition: index.php:4

◆ isUserLoggedIn()

ILIAS\Init\Provider\StartUpMetaBarProvider::isUserLoggedIn ( )
private

Definition at line 99 of file StartUpMetaBarProvider.php.

99  : bool
100  {
101  return (!$this->dic->user()->isAnonymous() && $this->dic->user()->getId() != 0);
102  }

◆ isUserOnLoginPage()

ILIAS\Init\Provider\StartUpMetaBarProvider::isUserOnLoginPage ( )
private

Definition at line 105 of file StartUpMetaBarProvider.php.

References $_SERVER, and Vendor\Package\$b.

105  : bool
106  {
107  $b = preg_match("%^.*/login.php$%", $_SERVER["SCRIPT_NAME"]) === 1;
108 
109  return $b;
110  }
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10

The documentation for this class was generated from the following file: