Contentserv PHP API

CSSystemMetaData extends CSMetaData
in package

This class describes the CSPlugin or CSModule meta data

Tags
since

CS15.1

Table of Contents

META_DATA_EXIF  = 8
META_DATA_IPTC  = 32
META_DATA_MODULE  = 2
META_DATA_PLUGIN  = 1
META_DATA_WIDGET  = 4
META_DATA_XML  = 64
META_DATA_XMP  = 16
META_INFO_API_VERSION  = 'apiVersion'
META_INFO_AUTHOR  = 'author'
META_INFO_DESCRIPTION  = 'description'
META_INFO_KEYWORDS  = 'keywords'
META_INFO_TITLE  = 'title'
META_INFO_VERSION  = 'version'
META_INFO_WEBSITE  = 'website'
addData()  : mixed
Adds the metadata.
addMeta()  : void
Adds a Meta data to the plugin
getApiVersion()  : string
Gets the the api Version of the plugin
getAuthor()  : string
Gets the the author of the plugin
getClass()  : CSFileMetaData
Returns the current classname of the class.
getData()  : array<string|int, mixed>
Returns the metadata for the provided keys. If passed null, returns all the metadata
getDescription()  : string
Gets the the description of the plugin
getInstance()  : static
Get self instance
getKeywords()  : string
Gets the the keywords of the plugin
getMeta()  : string
Returns a Meta data for a given key
getMetas()  : array<string|int, mixed>
Returns all Meta datas as an array
getSupportedTypeNames()  : array<string|int, mixed>
Returns suported metadata type names
getTitle()  : string
Gets the the default title of the plugin
getType()  : int
Returns the metadata type from defined constants
getVersion()  : string
Gets the the version of the plugin
getWebsite()  : string
Gets the the website of the plugin
isSupportedType()  : int
Checks whether the type is supported or not using bitwise operator
removeData()  : mixed
Removes the metadata
resetData()  : mixed
Resets or deletes the complete metadata
setApiVersion()  : void
Documents the api Version of the plugin
setAuthor()  : void
Documents the author of the plugin
setData()  : mixed
Sets the metadata.
setDescription()  : void
Describes the plugin
setKeywords()  : void
Keyword to search for the plugin
setTitle()  : void
Documents the default title of the plugin
setVersion()  : void
Version of the plugin
setWebsite()  : void
Documents the website with more information about the plugin

Constants

META_DATA_EXIF

public mixed META_DATA_EXIF = 8
Tags

META_DATA_IPTC

public mixed META_DATA_IPTC = 32
Tags

META_DATA_MODULE

public mixed META_DATA_MODULE = 2
Tags

META_DATA_PLUGIN

public mixed META_DATA_PLUGIN = 1
Tags

META_DATA_WIDGET

public mixed META_DATA_WIDGET = 4
Tags

META_DATA_XML

public mixed META_DATA_XML = 64
Tags

META_DATA_XMP

public mixed META_DATA_XMP = 16
Tags

META_INFO_API_VERSION

public mixed META_INFO_API_VERSION = 'apiVersion'
Tags

META_INFO_DESCRIPTION

public mixed META_INFO_DESCRIPTION = 'description'
Tags

Methods

addData()

Adds the metadata.

public final addData(array<string|int, mixed> $aData) : mixed
Parameters
$aData : array<string|int, mixed>

Array of metadata properties with its values

Tags
Return values
mixed

addMeta()

Adds a Meta data to the plugin

public addMeta(string $sKey, string $sValue) : void
Parameters
$sKey : string

the key of the meta data

$sValue : string

the value of the meta data

Tags
access

public

Return values
void

getApiVersion()

Gets the the api Version of the plugin

public getApiVersion() : string
Tags
access

public

Return values
string

api Version

getAuthor()

Gets the the author of the plugin

public getAuthor() : string
Tags
access

public

Return values
string

name of the author

getData()

Returns the metadata for the provided keys. If passed null, returns all the metadata

public final getData([array<string|int, mixed>|null $aKeys = null ]) : array<string|int, mixed>
Parameters
$aKeys : array<string|int, mixed>|null = null

array of keys

Tags
throws
CSMetaDataException
Return values
array<string|int, mixed>

of metadata values for provided keys

getDescription()

Gets the the description of the plugin

public getDescription() : string
Tags
access

public

Return values
string

description

getInstance()

Get self instance

public final static getInstance(int $sMetaDataType) : static
Parameters
$sMetaDataType : int
Tags
Return values
static

getKeywords()

Gets the the keywords of the plugin

public getKeywords() : string
Tags
access

public

Return values
string

keywords

getMeta()

Returns a Meta data for a given key

public getMeta(string $sKey) : string
Parameters
$sKey : string

the key of the meta data

Tags
access

public

Return values
string

the value of the meta data

getMetas()

Returns all Meta datas as an array

public getMetas() : array<string|int, mixed>
Tags
access

public

Return values
array<string|int, mixed>

the the meta datas

getTitle()

Gets the the default title of the plugin

public getTitle() : string
Tags
access

public

Return values
string

title of the plugin

getType()

Returns the metadata type from defined constants

public final getType() : int
Tags
Return values
int

getVersion()

Gets the the version of the plugin

public getVersion() : string
Tags
access

public

Return values
string

version

getWebsite()

Gets the the website of the plugin

public getWebsite() : string
Tags
access

public

Return values
string

website

isSupportedType()

Checks whether the type is supported or not using bitwise operator

public final isSupportedType(int $iType) : int
Parameters
$iType : int

integer for the respective type define above in constants

Tags
Return values
int

Returns 0 if not supported

removeData()

Removes the metadata

public final removeData(array<string|int, mixed> $aKeys) : mixed
Parameters
$aKeys : array<string|int, mixed>

array of properties that needs to be removed

Tags
Return values
mixed

resetData()

Resets or deletes the complete metadata

public final resetData() : mixed
Tags
Return values
mixed

setApiVersion()

Documents the api Version of the plugin

public setApiVersion(mixed $apiVersion) : void
Parameters
$apiVersion : mixed
Tags
access

public

Return values
void

setAuthor()

Documents the author of the plugin

public setAuthor(mixed $author) : void
Parameters
$author : mixed
Tags
access

public

Return values
void

setData()

Sets the metadata.

public final setData(array<string|int, mixed> $aData) : mixed
Parameters
$aData : array<string|int, mixed>

Array of metadata properties with its values

Tags
Return values
mixed

setDescription()

Describes the plugin

public setDescription(string $description) : void
Parameters
$description : string

description of the plugin

Tags
access

public

Return values
void

setKeywords()

Keyword to search for the plugin

public setKeywords(string $keywords) : void
Parameters
$keywords : string

keywords of the plugin

Tags
access

public

Return values
void

setTitle()

Documents the default title of the plugin

public setTitle(string $title) : void
Parameters
$title : string

title of the plugin

Tags
access

public

Return values
void

setVersion()

Version of the plugin

public setVersion(string $version) : void
Parameters
$version : string

version string of the plugin

Tags
access

public

Return values
void

setWebsite()

Documents the website with more information about the plugin

public setWebsite(mixed $website) : void
Parameters
$website : mixed
Tags
access

public

Return values
void

        

Search results