Class Type

Concrete\Core\Foundation\Object
Extended by Concrete\Core\Page\Type\Type implements Concrete\Core\Permission\ObjectInterface
Namespace: Concrete\Core\Page\Type
Located at src/Page/Type/Type.php

Methods summary

public
public
public
# getPageTypeDisplayName( $format = 'html' )
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
protected
public
# publish( Page $c )
public
public
public static
# getByDefaultsPage( Page $c )
public
public
public static
# importTargets( $node )
public static
# import( $node )
public static
# importContent( $node )
public
# export( $nxml )
public static
# exportList( $xml )
public
public
public
# duplicate( $ptHandle, $ptName )
public static static|mixed|null
# add( array $data, boolean|Package $pkg = false )

Add a page type.

public
# update( $data )
protected
public static
# getList( $includeInternal = false )
protected static
# returnList( $ptIDs )
public static
public static
public static
# getListByPackage( Package $pkg )
public static
# getListByDefaultPageTemplate( $templateOrTemplateID )
public static
# getByID( $ptID )
public static
# getByHandle( $ptHandle )
public
# delete( )
public
public
public
# addPageTypeComposerFormLayoutSet( $ptComposerFormLayoutSetName, $ptComposerFormLayoutSetDescription )
public
# canPublishPageTypeBeneathPage( Concrete\Core\Page\Page $page )

Returns true if pages of the current type are allowed beneath the passed parent page.

public Concrete\Core\Page\Type\Validator\ValidatorInterface|null
public
# createDraft( PageTemplate $pt, $u = false )
public
# renderComposerOutputForm( $page = null, $targetPage = null )

Properties summary

protected integer $ptDraftVersionsToSave
# 10
protected integer $ptDefaultPageTemplateID
# 0

Properties inherited from Concrete\Core\Foundation\Object

$error