Class to represent a content-item placement object.
More...
|
| __construct (string $documentTarget, ?int $displayWidth=null, ?int $displayHeight=null, ?string $windowTarget=null, ?string $windowFeatures=null, ?string $url=null, ?string $html=null) |
| Class constructor.
|
|
object null | toJsonldObject () |
| Generate the JSON-LD object representation of the placement.
|
|
object null | toJsonObject () |
| Generate the JSON object representation of the placement.
|
|
|
static Placement null | fromJsonObject (object $item, ?string $documentTarget=null) |
| Generate the Placement object from an item.
|
|
|
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 | $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 |
( |
string | $documentTarget, |
|
|
?int | $displayWidth = null, |
|
|
?int | $displayHeight = null, |
|
|
?string | $windowTarget = null, |
|
|
?string | $windowFeatures = null, |
|
|
?string | $url = null, |
|
|
?string | $html = null ) |
Class constructor.
- Parameters
-
string | $documentTarget | Location to open content in |
int | null | $displayWidth | Width of item location (optional) |
int | null | $displayHeight | Height of item location (optional) |
string | null | $windowTarget | Name of window target (optional) |
string | null | $windowFeatures | List of window features (optional) |
string | null | $url | URL for iframe src (optional) |
string | null | $html | HTML to be embedded (optional) |
◆ fromJsonObject()
static Placement null fromJsonObject |
( |
object | $item, |
|
|
?string | $documentTarget = null ) |
|
static |
Generate the Placement object from an item.
- Parameters
-
object | $item | JSON object of item |
string | null | $documentTarget | Destination of placement to be generated (optional) |
- Returns
- Placement|null The Placement object
◆ toJsonldObject()
object null toJsonldObject |
( |
| ) |
|
Generate the JSON-LD object representation of the placement.
- Returns
- object|null JSON object
◆ toJsonObject()
object null toJsonObject |
( |
| ) |
|
Generate the JSON object representation of the placement.
- Returns
- object|null JSON object