ElementPosition
in package
implements
ContentPositionInterface
Class ElementPosition
This class represents the position of an element
Tags
Interfaces, Classes and Traits
- ContentPositionInterface
- Interface ContentPositionInterface
Table of Contents
- BOXES = 'boxes'
- Boxes position
- FOOTER = 'footer'
- Footer position
- HEADER = 'header'
- Header position
- OTHER = 'other'
- Other position
- START = 'start'
- Start position
- STYLEEDIT = 'styleedit'
- Stlyeedit position
- WITHDRAWAL = 'withdrawal'
- Withdrawal position
- $position : string
- Element position
- createForBoxes() : ElementPosition
- Create instance for boxes position
- createForFooter() : ElementPosition
- Create instance for footer position
- createForHeader() : ElementPosition
- Create instance for header position
- createForOther() : ElementPosition
- Create instance for other position
- createForStart() : ElementPosition
- Create instance for start position
- createForStyleEdit() : ElementPosition
- createForWithdrawal() : ElementPosition
- Create instance for withdrawal position
- createFromString() : ElementPosition
- Create instance from a position string
- position() : string
- Return the position
- __construct() : mixed
- ElementPosition constructor
Constants
BOXES
Boxes position
public
mixed
BOXES
= 'boxes'
FOOTER
Footer position
public
mixed
FOOTER
= 'footer'
HEADER
Header position
public
mixed
HEADER
= 'header'
OTHER
Other position
public
mixed
OTHER
= 'other'
START
Start position
public
mixed
START
= 'start'
STYLEEDIT
Stlyeedit position
public
mixed
STYLEEDIT
= 'styleedit'
WITHDRAWAL
Withdrawal position
public
mixed
WITHDRAWAL
= 'withdrawal'
Properties
$position
Element position
protected
string
$position
Methods
createForBoxes()
Create instance for boxes position
public
static createForBoxes() : ElementPosition
Return values
ElementPosition —createForFooter()
Create instance for footer position
public
static createForFooter() : ElementPosition
Return values
ElementPosition —createForHeader()
Create instance for header position
public
static createForHeader() : ElementPosition
Return values
ElementPosition —createForOther()
Create instance for other position
public
static createForOther() : ElementPosition
Return values
ElementPosition —createForStart()
Create instance for start position
public
static createForStart() : ElementPosition
Return values
ElementPosition —createForStyleEdit()
public
static createForStyleEdit() : ElementPosition
Return values
ElementPosition —createForWithdrawal()
Create instance for withdrawal position
public
static createForWithdrawal() : ElementPosition
Return values
ElementPosition —createFromString()
Create instance from a position string
public
static createFromString(string $position) : ElementPosition
Parameters
- $position : string
-
Position as string
Return values
ElementPosition —position()
Return the position
public
position() : string
Return values
string —__construct()
ElementPosition constructor
protected
__construct(string $position) : mixed
Parameters
- $position : string
-
Element position