PHP Класс Laravelista\Ekko\Ekko

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$route
$url

Открытые методы

Метод Описание
__construct ( Router $route, UrlGenerator $url )
areActiveRoutes ( array $routeNames, string $output = "active" ) : boolean Compares given array of route names with current route name.
areActiveURLs ( array $urls, string $output = "active" ) : boolean Compares given array of URLs with current URL.
isActiveMatch ( string $string, string $output = "active" ) : boolean Detects if the given string is found in the current URL.
isActiveRoute ( string $routeName, string $output = "active" ) : boolean Compares given route name with current route name.
isActiveURL ( string $url, string $output = "active" ) : boolean Compares given URL with current URL.

Описание методов

__construct() публичный Метод

public __construct ( Router $route, UrlGenerator $url )
$route Illuminate\Routing\Router
$url Illuminate\Routing\UrlGenerator

areActiveRoutes() публичный Метод

Compares given array of route names with current route name.
public areActiveRoutes ( array $routeNames, string $output = "active" ) : boolean
$routeNames array
$output string
Результат boolean

areActiveURLs() публичный Метод

Compares given array of URLs with current URL.
public areActiveURLs ( array $urls, string $output = "active" ) : boolean
$urls array
$output string
Результат boolean

isActiveMatch() публичный Метод

Detects if the given string is found in the current URL.
public isActiveMatch ( string $string, string $output = "active" ) : boolean
$string string
$output string
Результат boolean

isActiveRoute() публичный Метод

Any section of the route name can be replaced with a * wildcard. Example: user.*
public isActiveRoute ( string $routeName, string $output = "active" ) : boolean
$routeName string
$output string
Результат boolean

isActiveURL() публичный Метод

Compares given URL with current URL.
public isActiveURL ( string $url, string $output = "active" ) : boolean
$url string
$output string
Результат boolean

Описание свойств

$route защищенное свойство

protected $route

$url защищенное свойство

protected $url