PHP Класс M1\Vars\Loader\AbstractLoader

С версии: 0.1.0
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$supported array The supported extensions

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

Свойство Тип Описание
$content mixed The content from the entity
$entity string The passed entity to be loaded

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

Метод Описание
__construct ( string $entity ) Construct the loader with the passed entity
getContent ( ) : mixed Returns the content
load ( ) : mixed The function what loads the content from the entity
setSupports ( array $supports ) Sets what the loader supports
supports ( ) : boolean Checks whether the loader supports the file extension

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

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

Construct the loader with the passed entity
public __construct ( string $entity )
$entity string The passed entity

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

Returns the content
public getContent ( ) : mixed
Результат mixed The content

load() абстрактный публичный Метод

The function what loads the content from the entity
abstract public load ( ) : mixed
Результат mixed

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

Sets what the loader supports
public setSupports ( array $supports )
$supports array Set the extensions the loader supports

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

Checks whether the loader supports the file extension
public supports ( ) : boolean
Результат boolean Does the loader support the file

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

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

The content from the entity
protected mixed $content
Результат mixed

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

The passed entity to be loaded
protected string $entity
Результат string

$supported публичное статическое свойство

The supported extensions
public static array $supported
Результат array