Documentation

MediaPlaceholder extends Media
in package

Placeholder us used for media objects that are embedded via URL

Table of Contents

$attachment_uuid  : string
CEO attachment UUID
$base_name  : string
Base base_name
$ceo_id  : int
Internal CEO ID
$click_through  : string
click through url
$content  : string
content
$created_at  : datetime
Created timestamp
$defaultUrl  : mixed
$extension  : string
extension
$height  : int
height
$id  : int
internal id
$metadata  : object
Metadata object
$modified_at  : datetime
Last modified timestamp
$normalized_tags  : mixed
Normalized tags
$preview_extension  : string
The preview file's extension
$published_at  : datetime
Published timestamp
$resourceUrl  : mixed
$seo_description  : string
SEO description
$seo_image  : string
SEO image url
$seo_title  : string
SEO title
$source  : string
source
$ssts_id  : int
SSTS id
$ssts_path  : string
SSTS path
$status  : bool
Publication status
$svg_preview  : string
Generated SGV preview
$title  : string
title
$transcoded  : int
Transcoded status
$type  : string
type
$uuid  : string
CEO UUID
$weight  : int
Weight
$width  : int
width
$adapter  : mixed
$parentGallery  : mixed
afterFetch()  : mixed
afterSave()  : mixed
beforeSave()  : mixed
buildUrl()  : mixed
create()  : mixed
delete()  : mixed
find()  : ResultSet
Allows to query a set of records that match the specified conditions
findFirst()  : ResultSet
Allows to query the first record that match the specified conditions
getAdapter()  : mixed
getAltData()  : string
Cascade alt data
getCanonicalUrl()  : mixed
getCustomUrl()  : string
Emulate getCustomUrl
getFriendlyUrl()  : string
Emulate getFriendlyUrl
getHeightFromWidth()  : mixed
getIsPublished()  : mixed
getMetadata()  : mixed
getOriginalName()  : mixed
getOriginalUrl()  : mixed
getParentGallery()  : mixed
getPreviewName()  : mixed
getPreviewStyle()  : mixed
getPreviewSvg()  : mixed
getResultsetClass()  : mixed
getSearchDate()  : DateTime
Determine the display time
getSearchPreview()  : string
Determine the preview text
getSearchPreviewUrl()  : mixed
Determine the preview image, if there is one FALSE otherwise
getSearchTitle()  : string
Determine the search title for an item
getSearchType()  : string
Determine the model type
getSearchUrl()  : string
Determine the canonical url
getSeoDescription()  : string
Determine SEO description
getSeoImage()  : string
Determine SEO image
getSeoTitle()  : string
Determine the SEO title for an item
getSource()  : mixed
getWidthFromHeight()  : mixed
hasProperty()  : bool
Determine if the model has a public property.
initialize()  : mixed
isGalleryMember()  : mixed
save()  : mixed
setRelated()  : self
Phalcon has this bug where if you enumerate a relation then try to set it via the magic setter, it won't save.
toArray()  : mixed
toCompat()  : object
Returns a base CEO model as a Gryphon compatible one.
update()  : mixed
wherePublished()  : mixed
toArrayRelated()  : mixed
getMediaBucket()  : mixed

Properties

$attachment_uuid

CEO attachment UUID

public string $attachment_uuid

$base_name

Base base_name

public string $base_name

$ceo_id

Internal CEO ID

public int $ceo_id

$click_through

click through url

public string $click_through

$content

content

public string $content

$created_at

Created timestamp

public datetime $created_at

$extension

extension

public string $extension

$height

height

public int $height

$id

internal id

public int $id

$metadata

Metadata object

public object $metadata

$modified_at

Last modified timestamp

public datetime $modified_at

$normalized_tags

Normalized tags

public mixed $normalized_tags

$preview_extension

The preview file's extension

public string $preview_extension

$published_at

Published timestamp

public datetime $published_at

$seo_description

SEO description

public string $seo_description

$seo_image

SEO image url

public string $seo_image

$seo_title

SEO title

public string $seo_title

$source

source

public string $source

$ssts_id

SSTS id

public int $ssts_id

$ssts_path

SSTS path

public string $ssts_path

$status

Publication status

public bool $status

$svg_preview

Generated SGV preview

public string $svg_preview

$title

title

public string $title

$transcoded

Transcoded status

public int $transcoded

$type

type

public string $type

$uuid

CEO UUID

public string $uuid

$weight

Weight

public int $weight

$width

width

public int $width

$adapter

protected mixed $adapter

$parentGallery

protected mixed $parentGallery

Methods

afterFetch()

public afterFetch() : mixed
Return values
mixed

afterSave()

public afterSave() : mixed
Return values
mixed

beforeSave()

public beforeSave() : mixed
Return values
mixed

buildUrl()

public buildUrl(mixed $path[, mixed $opts = [] ]) : mixed
Parameters
$path : mixed
$opts : mixed = []
Return values
mixed

create()

public create([mixed $data = null ][, mixed $whiteList = null ]) : mixed
Parameters
$data : mixed = null
$whiteList : mixed = null
Return values
mixed

find()

Allows to query a set of records that match the specified conditions

public static find([mixed $parameters = null ]) : ResultSet
Parameters
$parameters : mixed = null
Return values
ResultSet

findFirst()

Allows to query the first record that match the specified conditions

public static findFirst([mixed $parameters = null ]) : ResultSet
Parameters
$parameters : mixed = null
Return values
ResultSet

getAdapter()

public getAdapter() : mixed
Return values
mixed

getAltData()

Cascade alt data

public getAltData() : string
  • alt-tag
  • title
  • caption
Return values
string

getCanonicalUrl()

public getCanonicalUrl() : mixed
Return values
mixed

getCustomUrl()

Emulate getCustomUrl

public getCustomUrl([mixed $params = [] ]) : string
Parameters
$params : mixed = []
Return values
string

getFriendlyUrl()

Emulate getFriendlyUrl

public getFriendlyUrl() : string
Return values
string

getHeightFromWidth()

public getHeightFromWidth(mixed $width) : mixed
Parameters
$width : mixed
Return values
mixed

getIsPublished()

public getIsPublished() : mixed
Return values
mixed

getMetadata()

public getMetadata(mixed $k) : mixed
Parameters
$k : mixed
Return values
mixed

getOriginalName()

public getOriginalName() : mixed
Return values
mixed

getOriginalUrl()

public getOriginalUrl() : mixed
Return values
mixed

getParentGallery()

public getParentGallery() : mixed
Return values
mixed

getPreviewName()

public getPreviewName() : mixed
Return values
mixed

getPreviewStyle()

public getPreviewStyle([mixed $args = [] ]) : mixed
Parameters
$args : mixed = []
Return values
mixed

getPreviewSvg()

public getPreviewSvg() : mixed
Return values
mixed

getResultsetClass()

public getResultsetClass() : mixed
Return values
mixed

getSearchDate()

Determine the display time

public getSearchDate() : DateTime
Return values
DateTime

Carbon

getSearchPreview()

Determine the preview text

public getSearchPreview() : string
Return values
string

getSearchPreviewUrl()

Determine the preview image, if there is one FALSE otherwise

public getSearchPreviewUrl() : mixed
Return values
mixed

STRING or BOOLEAN

getSearchTitle()

Determine the search title for an item

public getSearchTitle() : string
Return values
string

getSearchType()

Determine the model type

public getSearchType() : string
Return values
string

getSearchUrl()

Determine the canonical url

public getSearchUrl() : string
Return values
string

getSeoDescription()

Determine SEO description

public getSeoDescription() : string
Return values
string

getSeoImage()

Determine SEO image

public getSeoImage() : string
Return values
string

getSeoTitle()

Determine the SEO title for an item

public getSeoTitle() : string
Return values
string

getSource()

public getSource() : mixed
Return values
mixed

getWidthFromHeight()

public getWidthFromHeight(mixed $height) : mixed
Parameters
$height : mixed
Return values
mixed

hasProperty()

Determine if the model has a public property.

public hasProperty(string $str) : bool

Useful in determining valid sorting options on the front end.

Parameters
$str : string

Property

Return values
bool

initialize()

public initialize() : mixed
Return values
mixed

isGalleryMember()

public isGalleryMember() : mixed
Return values
mixed

save()

public save([mixed $data = null ][, mixed $whiteList = null ]) : mixed
Parameters
$data : mixed = null
$whiteList : mixed = null
Return values
mixed

setRelated()

Phalcon has this bug where if you enumerate a relation then try to set it via the magic setter, it won't save.

public setRelated(string $relation[, mixed $value = [] ]) : self

I think it has something to do with implicit transactions, but I'm not entirely sure...

Parameters
$relation : string
$value : mixed = []
Return values
self

toArray()

public toArray([mixed $props = null ]) : mixed
Parameters
$props : mixed = null
Return values
mixed

toCompat()

Returns a base CEO model as a Gryphon compatible one.

public toCompat([mixed $useKlass = null ]) : object
{% set article = fetch('article').order('published_at desc').find() %}
{{ article[0].toCompat().url }}
Parameters
$useKlass : mixed = null
Return values
object

update()

public update([mixed $data = null ][, mixed $whiteList = null ]) : mixed
Parameters
$data : mixed = null
$whiteList : mixed = null
Return values
mixed

wherePublished()

public wherePublished() : mixed
Return values
mixed

toArrayRelated()

protected toArrayRelated(mixed $ops, mixed $array) : mixed
Parameters
$ops : mixed
$array : mixed
Return values
mixed

getMediaBucket()

private getMediaBucket() : mixed
Return values
mixed

Search results