Sledgehammer Framework

Sledgehammer

Namespaces

Core
Graphics
Mvc
Orm

Table of Contents

image()  : Image
Shorthand for creating an Image object.
imagecreatefrombmp()  : resource
Create a GD resource from a BMP file.
component_to_string()  : string
Geeft de uitvoer van een component als string.
is_valid_component()  : bool
Check if $component is compatible with the Component interface, otherwise report notices.
implode_xml_parameters()  : string
Zet een array om naar xml/html parameters; array('x' => 'y') wordt ' x="y"'.
explode_xml_parameters()  : array<string|int, mixed>
Zet een string met parameters om naar een array.
merge_headers()  : array<string|int, mixed>
Merge the results from the $component->getHeaders().
append_class_to_parameters()  : mixed
Stel de $parameters['class'] in of voegt de $class toe aan de $parameters['class'].
tidy_id()  : mixed
ID and NAME must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
getRepository()  : DefaultRepository|Repository
Get a Repository by ID This allows instances to reference a Repository by id instead of a full php reference. Keeping the (var_)dump clean.

Functions

image()

Shorthand for creating an Image object.

image(string $filename) : Image
Parameters
$filename : string
Return values
Image

imagecreatefrombmp()

Create a GD resource from a BMP file.

imagecreatefrombmp(string $filename) : resource
Parameters
$filename : string
Tags
link
http://php.net/gd
Return values
resource

gd

component_to_string()

Geeft de uitvoer van een component als string.

component_to_string(Component $component) : string

(Uitvoer zoals emails en header() worden niet afgevangen).

Parameters
$component : Component
Return values
string

is_valid_component()

Check if $component is compatible with the Component interface, otherwise report notices.

is_valid_component([Component &$component = '__UNDEFINED__' ]) : bool
Parameters
$component : Component = '__UNDEFINED__'
Return values
bool

implode_xml_parameters()

Zet een array om naar xml/html parameters; array('x' => 'y') wordt ' x="y"'.

implode_xml_parameters(array<string|int, mixed> $parameterArray[, string $charset = 'UTF-8' ]) : string
Parameters
$parameterArray : array<string|int, mixed>
$charset : string = 'UTF-8'

De charset van de parameters (voor htmlentities). Standaard wordt de charset van het actieve document gebruikt.

Return values
string

explode_xml_parameters()

Zet een string met parameters om naar een array.

explode_xml_parameters(string $parameterString) : array<string|int, mixed>

' x="y"' wordt array('x' => 'y').

Parameters
$parameterString : string
Return values
array<string|int, mixed>

merge_headers()

Merge the results from the $component->getHeaders().

merge_headers(array<string|int, mixed> $headers, array<string|int, mixed>|Component $component) : array<string|int, mixed>

The headers from the $component overwrites the values in $headers.

Parameters
$headers : array<string|int, mixed>
$component : array<string|int, mixed>|Component

A component or header array

Return values
array<string|int, mixed>

append_class_to_parameters()

Stel de $parameters['class'] in of voegt de $class toe aan de $parameters['class'].

append_class_to_parameters(string $class, array<string|int, mixed> &$parameters) : mixed
Parameters
$class : string
$parameters : array<string|int, mixed>
Return values
mixed

tidy_id()

ID and NAME must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").

tidy_id(mixed $cdata) : mixed
Parameters
$cdata : mixed
Return values
mixed

getRepository()

Get a Repository by ID This allows instances to reference a Repository by id instead of a full php reference. Keeping the (var_)dump clean.

getRepository([string $id = 'default' ]) : DefaultRepository|Repository
Parameters
$id : string = 'default'
Return values
DefaultRepository|Repository

Search results