# Image

class Image extends Base

Special image group, that supports additional parameters inside of the params array.

## Constants

RELATIONS_KEY_NAME |

## Properties

protected string | $_name |  | from Base
protected | $_classes |  | from Base
protected array | $_children |  | from Base
protected array | $_relation_types |  |

## Methods

string
getName()

Returns the name.

from Base
boolean
setName(string $name)

Sets the name.

from Base
array
getClasses()

Returns all declared classes.

from Base
addChildren(mixed $children)

Adds a children to the group.

from Base
array
getChildrens()

Returns all children as array.

from Base
boolean
hasChildren()

Returns if the Group has children.

from Base
__construct(array $params)

Creates the instance, parses the params and will look for relation types.

array
getRelations()

Returns the relations.

## Details

###
in Base at line 30
`final string getName()`

Returns the name.

#### Return Value

string |

###
in Base at line 41
`final boolean setName(string $name)`

Sets the name.

#### Parameters

string | $name |

#### Return Value

boolean |

###
in Base at line 57
`array getClasses()`

Returns all declared classes.

We need this way, because the autoloader will try to include the class file if we use "class_exists" or similar functions.

#### Return Value

array |

###
in Base at line 31
`addChildren(mixed $children)`

Adds a children to the group.

#### Parameters

mixed | $children | A children of a group.

###
in Base at line 41
`array getChildrens()`

Returns all children as array.

#### Return Value

array | Returns the full array with childrens, stored in this group.

###
in Base at line 52
`boolean hasChildren()`

Returns if the Group has children.

#### Return Value

boolean | If the group has children it will be TRUE, otherwhise FALSE.

###
at line 37
`__construct(array $params)`

Creates the instance, parses the params and will look for relation types.

If there is the entry with the key "relationTypes" inside of this array, all relations will be extracted and saved in the relationtypes array.

#### Parameters

array | $params | The features array entry of the image feature as reference.

###
at line 51
`array getRelations()`

Returns the relations.

#### Return Value

array |