Class to represent a content-item placement object.
More...
|
| | __construct ($documentTarget, $displayWidth=null, $displayHeight=null, $windowTarget=null, $windowFeatures=null, $url=null, $html=null) |
| | Class constructor.
|
| |
| object | toJsonldObject () |
| | Generate the JSON-LD object representation of the placement.
|
| |
| object | toJsonObject () |
| | Generate the JSON object representation of the placement.
|
| |
|
|
const | TYPE_EMBED = 'embed' |
| | Embed placement type.
|
| |
|
const | TYPE_IFRAME = 'iframe' |
| | iFrame placement type.
|
| |
|
const | TYPE_FRAME = 'frame' |
| | Frame placement type.
|
| |
|
const | TYPE_WINDOW = 'window' |
| | Window placement type.
|
| |
|
const | TYPE_POPUP = 'popup' |
| | Popup placement type.
|
| |
|
const | TYPE_OVERLAY = 'overlay' |
| | Overlay placement type.
|
| |
| string null | $documentTarget = null |
| | Location to open content in.
|
| |
Class to represent a content-item placement object.
- Author
- Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
- Copyright
- SPV Software Products
- Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3
◆ __construct()
| __construct |
( |
|
$documentTarget, |
|
|
|
$displayWidth = null, |
|
|
|
$displayHeight = null, |
|
|
|
$windowTarget = null, |
|
|
|
$windowFeatures = null, |
|
|
|
$url = null, |
|
|
|
$html = null |
|
) |
| |
Class constructor.
- Parameters
-
| string | $documentTarget | Location to open content in |
| int | $displayWidth | Width of item location (optional) |
| int | $displayHeight | Height of item location (optional) |
| string | $windowTarget | Name of window target (optional) |
| string | $windowFeatures | List of window features (optional) |
| string | $url | URL for iframe src (optional) |
| string | $html | HTML to be embedded (optional) |
◆ fromJsonObject()
| static Placement fromJsonObject |
( |
|
$item, |
|
|
|
$documentTarget = null |
|
) |
| |
|
static |
Generate the Placement object from an item.
- Parameters
-
| object | $item | JSON object of item |
| string | $documentTarget | Destination of placement to be generated (optional) |
- Returns
- Placement
◆ toJsonldObject()
| object toJsonldObject |
( |
| ) |
|
Generate the JSON-LD object representation of the placement.
- Returns
- object
◆ toJsonObject()
Generate the JSON object representation of the placement.
- Returns
- object
◆ $documentTarget
| string null $documentTarget = null |
The documentation for this class was generated from the following file: