PHP Class Plank\Mediable\UrlGenerators\BaseUrlGenerator

Author: Sean Fraser ([email protected])
Inheritance: implements Plank\Mediable\UrlGenerators\UrlGeneratorInterface
Datei anzeigen Open project: plank/laravel-mediable Class Usage Examples

Protected Properties

Property Type Description
$config Illuminate\Contracts\Config\Repository Configuration Repository.
$media Plank\Mediable\Media Media instance being linked.

Public Methods

Method Description
__construct ( Illuminate\Contracts\Config\Repository $config ) Constructor.
isPubliclyAccessible ( )
setMedia ( Media $media ) Set the media being operated on.

Protected Methods

Method Description
getDiskConfig ( string $key, mixed $default = null ) : mixed Get a config value for the current disk.

Method Details

__construct() public method

Constructor.
public __construct ( Illuminate\Contracts\Config\Repository $config )
$config Illuminate\Contracts\Config\Repository

getDiskConfig() protected method

Get a config value for the current disk.
protected getDiskConfig ( string $key, mixed $default = null ) : mixed
$key string
$default mixed
return mixed

isPubliclyAccessible() public method

setMedia() public method

Set the media being operated on.
public setMedia ( Media $media )
$media Plank\Mediable\Media

Property Details

$config protected_oe property

Configuration Repository.
protected Repository,Illuminate\Contracts\Config $config
return Illuminate\Contracts\Config\Repository

$media protected_oe property

Media instance being linked.
protected Media,Plank\Mediable $media
return Plank\Mediable\Media