PHP Class RainLab\Pages\Controllers\Index

Author: Alexey Bobkov, Samuel Georges
Inheritance: extends Backend\Classes\Controller, use trait Backend\Traits\InspectableContainer
Datei anzeigen Open project: rainlab/pages-plugin

Public Properties

Property Type Description
$requiredPermissions

Protected Properties

Property Type Description
$theme

Public Methods

Method Description
__construct ( ) Constructor.
index ( )
index_onOpen ( )
onCreateObject ( )
onDelete ( )
onDeleteObjects ( )
onGetInspectorConfiguration ( )
onGetMenuItemTypeInfo ( )
onGetSnippetNames ( )
onOpenConcurrencyResolveForm ( )
onSave ( )
onUpdatePageLayout ( )

Protected Methods

Method Description
addPagePlaceholders ( $formWidget, $page )
addPageSyntaxFields ( $formWidget, $page )
bindFormWidgetToController ( )
convertLineEndings ( string $markup ) : string Replaces Windows style (/r/n) line endings with unix style (/n) line endings.
createObject ( $type )
fillObjectFromPost ( $type )
getContentTemplateList ( ) : October\Rain\Database\Collection Returns a list of content files
getTabTitle ( $type, $object )
loadObject ( $type, $path, $ignoreNotFound = false )
makeObjectFormWidget ( $type, $object, $alias = null )
pushObjectForm ( $type, $object )
resolveTypeClassName ( $type )
validateRequestTheme ( )

Method Details

__construct() public method

Constructor.
public __construct ( )

addPagePlaceholders() protected method

protected addPagePlaceholders ( $formWidget, $page )

addPageSyntaxFields() protected method

protected addPageSyntaxFields ( $formWidget, $page )

bindFormWidgetToController() protected method

convertLineEndings() protected method

Replaces Windows style (/r/n) line endings with unix style (/n) line endings.
protected convertLineEndings ( string $markup ) : string
$markup string The markup to convert to unix style endings
return string

createObject() protected method

protected createObject ( $type )

fillObjectFromPost() protected method

protected fillObjectFromPost ( $type )

getContentTemplateList() protected method

Returns a list of content files
protected getContentTemplateList ( ) : October\Rain\Database\Collection
return October\Rain\Database\Collection

getTabTitle() protected method

protected getTabTitle ( $type, $object )

index() public method

public index ( )

index_onOpen() public method

public index_onOpen ( )

loadObject() protected method

protected loadObject ( $type, $path, $ignoreNotFound = false )

makeObjectFormWidget() protected method

protected makeObjectFormWidget ( $type, $object, $alias = null )

onCreateObject() public method

public onCreateObject ( )

onDelete() public method

public onDelete ( )

onDeleteObjects() public method

public onDeleteObjects ( )

onGetInspectorConfiguration() public method

onGetMenuItemTypeInfo() public method

onGetSnippetNames() public method

public onGetSnippetNames ( )

onOpenConcurrencyResolveForm() public method

onSave() public method

public onSave ( )

onUpdatePageLayout() public method

public onUpdatePageLayout ( )

pushObjectForm() protected method

protected pushObjectForm ( $type, $object )

resolveTypeClassName() protected method

protected resolveTypeClassName ( $type )

validateRequestTheme() protected method

protected validateRequestTheme ( )

Property Details

$requiredPermissions public_oe property

public $requiredPermissions

$theme protected_oe property

protected $theme