class PageTypeType extends Type (View source)

Properties

$error from ConcreteObject
protected $ptPublishTargetTypeID from Type
protected $ptPublishTargetTypeHandle from Type
protected $ptPublishTargetTypeName from Type
protected $pkgID from Type

Methods

loadError($error)

No description

isError()

No description

getError()

No description

setPropertiesFromArray($arr)

No description

static 
camelcase($file)

No description

static 
uncamelcase($string)

No description

configurePageTypePublishTarget(Type $pt, $post)

No description

from Type
from Type
from Type
getPackageID()

No description

from Type
getPackageHandle()

No description

from Type
getPackageObject()

No description

from Type
string
getPageTypePublishTargetTypeDisplayName(string $format = 'html')

Returns the display name for this instance (localized and escaped accordingly to $format)

from Type
validatePageTypeRequest(Request $request)

No description

static 
getByID($ptPublishTargetTypeID)

No description

from Type
static 
getByHandle($ptPublishTargetTypeHandle)

No description

from Type
static 
from Type
static 
add($ptPublishTargetTypeHandle, $ptPublishTargetTypeName, $pkg = false)

No description

from Type
delete()

No description

from Type
static 
getList()

No description

from Type
static 
getListByPackage($pkg)

No description

from Type
export($xml)

No description

from Type
static 
exportList($xml)

No description

from Type
hasOptionsForm()

No description

from Type
includeOptionsForm($pagetype = false, $siteType = false)

No description

from Type

Details

loadError($error)

Parameters

$error

isError()

getError()

setPropertiesFromArray($arr)

Parameters

$arr

static camelcase($file)

Parameters

$file

static uncamelcase($string)

Parameters

$string

configurePageTypePublishTarget(Type $pt, $post)

Parameters

Type $pt
$post

configurePageTypePublishTargetFromImport($txml)

Parameters

$txml

getPageTypePublishTargetTypeName()

getPageTypePublishTargetTypeHandle()

getPageTypePublishTargetTypeID()

getPackageID()

getPackageHandle()

getPackageObject()

string getPageTypePublishTargetTypeDisplayName(string $format = 'html')

Returns the display name for this instance (localized and escaped accordingly to $format)

Parameters

string $format = 'html' Escape the result in html format (if $format is 'html'). If $format is 'text' or any other value, the display name won't be escaped.

Return Value

string

validatePageTypeRequest(Request $request)

Parameters

Request $request

static getByID($ptPublishTargetTypeID)

Parameters

$ptPublishTargetTypeID

static getByHandle($ptPublishTargetTypeHandle)

Parameters

$ptPublishTargetTypeHandle

static importConfiguredPageTypePublishTarget($txml)

Parameters

$txml

static add($ptPublishTargetTypeHandle, $ptPublishTargetTypeName, $pkg = false)

Parameters

$ptPublishTargetTypeHandle
$ptPublishTargetTypeName
$pkg

delete()

static getList()

static getListByPackage($pkg)

Parameters

$pkg

export($xml)

Parameters

$xml

static exportList($xml)

Parameters

$xml

hasOptionsForm()

includeOptionsForm($pagetype = false, $siteType = false)

Parameters

$pagetype
$siteType