Property | Type | Description | |
---|---|---|---|
$supported | array | The supported extensions |
Property | Type | Description | |
---|---|---|---|
$content | mixed | The content from the entity | |
$entity | string | The passed entity to be loaded |
Method | Description | |
---|---|---|
__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 |
public __construct ( string $entity ) | ||
$entity | string | The passed entity |
public getContent ( ) : mixed | ||
return | mixed | The content |
public setSupports ( array $supports ) | ||
$supports | array | Set the extensions the loader supports |
public static array $supported | ||
return | array |