PHP Class Pimcore\Model\Document\Tag\Image

Inheritance: extends Pimcore\Model\Document\Tag
Afficher le fichier Open project: pimcore/pimcore

Méthodes publiques

Свойство Type Description
$alt string The ALT text of the image
$cropHeight float
$cropLeft float
$cropPercent boolean
$cropTop float
$cropWidth float
$hotspots array
$id integer ID of the referenced image
$image Pimcore\Model\Asset\Image Contains the imageobject itself
$marker array

Méthodes publiques

Méthode Description
__sleep ( )
frontend ( ) : string
getAlt ( ) *
getCacheTags ( $ownerDocument, $tags = [] )
getCropHeight ( ) : float
getCropLeft ( ) : float
getCropPercent ( ) : boolean
getCropTop ( ) : float
getCropWidth ( ) : float
getData ( ) : mixed
getDataEditmode ( ) : array Converts the data so it's suitable for the editmode
getDataForResource ( )
getFromWebserviceImport ( Pimcore\Model\Webservice\Data\Document\Element $wsElement, $document = null, mixed $params = [], null $idMapper = null )
getHotspots ( ) : array
getId ( ) : integer
getImage ( ) : Image
getMarker ( ) : array
getSrc ( ) *
getText ( ) *
getThumbnail ( $conf, boolean $deferred = true ) : Thumbnail | string
getType ( ) : string
isEmpty ( ) : boolean
resolveDependencies ( ) : array
rewriteIds ( array $idMapping ) : void Rewrites id from source to target, $idMapping contains array( "document" => array( SOURCE_ID => TARGET_ID, SOURCE_ID => TARGET_ID ), "object" => array(.
setCropHeight ( $cropHeight )
setCropLeft ( $cropLeft )
setCropPercent ( $cropPercent )
setCropTop ( $cropTop )
setCropWidth ( $cropWidth )
setDataFromEditmode ( mixed $data )
setDataFromResource ( mixed $data )
setHotspots ( array $hotspots )
setId ( integer $id ) : Image
setImage ( Image $image ) : Image
setMarker ( array $marker )

Méthodes protégées

Méthode Description
applyCustomCropping ( $thumbConfig ) : mixed

Method Details

__sleep() public méthode

public __sleep ( )

applyCustomCropping() protected méthode

protected applyCustomCropping ( $thumbConfig ) : mixed
$thumbConfig
Résultat mixed

frontend() public méthode

See also: Document\Tag\TagInterface::frontend
public frontend ( ) : string
Résultat string

getAlt() public méthode

*
public getAlt ( )

getCacheTags() public méthode

public getCacheTags ( $ownerDocument, $tags = [] )
$ownerDocument

getCropHeight() public méthode

public getCropHeight ( ) : float
Résultat float

getCropLeft() public méthode

public getCropLeft ( ) : float
Résultat float

getCropPercent() public méthode

public getCropPercent ( ) : boolean
Résultat boolean

getCropTop() public méthode

public getCropTop ( ) : float
Résultat float

getCropWidth() public méthode

public getCropWidth ( ) : float
Résultat float

getData() public méthode

See also: Document\Tag\TagInterface::getData
public getData ( ) : mixed
Résultat mixed

getDataEditmode() public méthode

Converts the data so it's suitable for the editmode
public getDataEditmode ( ) : array
Résultat array

getDataForResource() public méthode

public getDataForResource ( )

getFromWebserviceImport() public méthode

public getFromWebserviceImport ( Pimcore\Model\Webservice\Data\Document\Element $wsElement, $document = null, mixed $params = [], null $idMapper = null )
$wsElement Pimcore\Model\Webservice\Data\Document\Element
$params mixed
$idMapper null

getHotspots() public méthode

public getHotspots ( ) : array
Résultat array

getId() public méthode

public getId ( ) : integer
Résultat integer

getImage() public méthode

public getImage ( ) : Image
Résultat Pimcore\Model\Asset\Image

getMarker() public méthode

public getMarker ( ) : array
Résultat array

getSrc() public méthode

*
public getSrc ( )

getText() public méthode

*
public getText ( )

getThumbnail() public méthode

public getThumbnail ( $conf, boolean $deferred = true ) : Thumbnail | string
$conf
$deferred boolean
Résultat Pimcore\Model\Asset\Image\Thumbnail | string

getType() public méthode

See also: Document\Tag\TagInterface::getType
public getType ( ) : string
Résultat string

isEmpty() public méthode

public isEmpty ( ) : boolean
Résultat boolean

resolveDependencies() public méthode

public resolveDependencies ( ) : array
Résultat array

rewriteIds() public méthode

..), "asset" => array(...) )
public rewriteIds ( array $idMapping ) : void
$idMapping array
Résultat void

setCropHeight() public méthode

public setCropHeight ( $cropHeight )
$cropHeight

setCropLeft() public méthode

public setCropLeft ( $cropLeft )
$cropLeft

setCropPercent() public méthode

public setCropPercent ( $cropPercent )
$cropPercent

setCropTop() public méthode

public setCropTop ( $cropTop )
$cropTop

setCropWidth() public méthode

public setCropWidth ( $cropWidth )
$cropWidth

setDataFromEditmode() public méthode

public setDataFromEditmode ( mixed $data )
$data mixed

setDataFromResource() public méthode

public setDataFromResource ( mixed $data )
$data mixed

setHotspots() public méthode

public setHotspots ( array $hotspots )
$hotspots array

setId() public méthode

public setId ( integer $id ) : Image
$id integer
Résultat Image

setImage() public méthode

public setImage ( Image $image ) : Image
$image Pimcore\Model\Asset\Image
Résultat Image

setMarker() public méthode

public setMarker ( array $marker )
$marker array

Property Details

$alt public_oe property

The ALT text of the image
public string $alt
Résultat string

$cropHeight public_oe property

public float $cropHeight
Résultat float

$cropLeft public_oe property

public float $cropLeft
Résultat float

$cropPercent public_oe property

public bool $cropPercent
Résultat boolean

$cropTop public_oe property

public float $cropTop
Résultat float

$cropWidth public_oe property

public float $cropWidth
Résultat float

$hotspots public_oe property

public array $hotspots
Résultat array

$id public_oe property

ID of the referenced image
public int $id
Résultat integer

$image public_oe property

Contains the imageobject itself
public Image,Pimcore\Model\Asset $image
Résultat Pimcore\Model\Asset\Image

$marker public_oe property

public array $marker
Résultat array