manager/controllers/default/resource/staticresource/create.class.php

Show: inherited
Table of Contents

Package
modx  
Subpackage
manager.controllers  

\StaticResourceCreateManagerController

Package: modx\manager\controllers

Loads the create resource page

Parent(s)
\ResourceCreateManagerController < \ResourceManagerController < \modManagerController

Properties

Propertypublic  $canCreate= 'true'
Default valuetrueDetails
Type
n/a
Inherited_from
\ResourceManagerController::$$canCreate  
Inherited_from
\ResourceCreateManagerController::$$canCreate  
Propertypublic  $canDelete= 'true'
Default valuetrueDetails
Type
n/a
Inherited_from
\ResourceManagerController::$$canDelete  
Inherited_from
\ResourceCreateManagerController::$$canDelete  
Propertypublic  $canDuplicate= 'true'
Default valuetrueDetails
Type
n/a
Inherited_from
\ResourceManagerController::$$canDuplicate  
Inherited_from
\ResourceCreateManagerController::$$canDuplicate  
Propertypublic  $canEdit= 'true'
Default valuetrueDetails
Type
n/a
Inherited_from
\ResourceManagerController::$$canEdit  
Inherited_from
\ResourceCreateManagerController::$$canEdit  
Propertypublic  $canPublish= 'true'
Default valuetrueDetails
Type
n/a
Inherited_from
\ResourceManagerController::$$canPublish  
Inherited_from
\ResourceCreateManagerController::$$canPublish  
Propertypublic  $canSave= 'true'
Default valuetrueDetails
Type
n/a
Inherited_from
\ResourceManagerController::$$canSave  
Inherited_from
\ResourceCreateManagerController::$$canSave  
Propertypublicarray  $config= 'array()'
inherited

A configuration array of options related to this controller's action object.Inherited from: \modManagerController::$$config\ResourceManagerController::$$config\ResourceCreateManagerController::$$config
Default valuearray()Details
Type
array
Inherited_from
\modManagerController::$$config  
Inherited_from
\ResourceManagerController::$$config  
Inherited_from
\ResourceCreateManagerController::$$config  
Propertypublicstring  $content= ''''
Default value''Details
Type
string
Inherited_from
\modManagerController::$$content  
Inherited_from
\ResourceManagerController::$$content  
Inherited_from
\ResourceCreateManagerController::$$content  
Propertypublicarray  $controllersPaths= ''
Propertypublic  $ctx= ''web''
Default value'web'Details
Type
n/a
Inherited_from
\ResourceManagerController::$$ctx  
Inherited_from
\ResourceCreateManagerController::$$ctx  
Propertyprotectedstring  $failureMessage= ''''
Default value''Details
Type
string
Inherited_from
\modManagerController::$$failureMessage  
Inherited_from
\ResourceManagerController::$$failureMessage  
Inherited_from
\ResourceCreateManagerController::$$failureMessage  
Propertypublicarray  $head= 'array('css' => array(),'js' => array(),'html' => array(),'lastjs' => array())'
inherited

An array of css/js/html to load into the HEAD of the pageInherited from: \modManagerController::$$head\ResourceManagerController::$$head\ResourceCreateManagerController::$$head
Default valuearray('css' => array(),'js' => array(),'html' => array(),'lastjs' => array())Details
Type
array
Inherited_from
\modManagerController::$$head  
Inherited_from
\ResourceManagerController::$$head  
Inherited_from
\ResourceCreateManagerController::$$head  
Propertyprotectedbool  $isFailure= 'false'
inherited

Whether or not a failure message was sent by this controller.Inherited from: \modManagerController::$$isFailure\ResourceManagerController::$$isFailure\ResourceCreateManagerController::$$isFailure
Default valuefalseDetails
Type
bool
Inherited_from
\modManagerController::$$isFailure  
Inherited_from
\ResourceManagerController::$$isFailure  
Inherited_from
\ResourceCreateManagerController::$$isFailure  
Propertypublicbool  $loadBaseJavascript= 'true'
Propertypublicbool  $loadFooter= 'true'
Default valuetrueDetails
Type
bool
Inherited_from
\modManagerController::$$loadFooter  
Inherited_from
\ResourceManagerController::$$loadFooter  
Inherited_from
\ResourceCreateManagerController::$$loadFooter  
Propertypublicbool  $loadHeader= 'true'
Default valuetrueDetails
Type
bool
Inherited_from
\modManagerController::$$loadHeader  
Inherited_from
\ResourceManagerController::$$loadHeader  
Inherited_from
\ResourceCreateManagerController::$$loadHeader  
Propertypublic\modX  $modx= ''
Details
Type
\modX
Inherited_from
\modManagerController::$$modx  
Inherited_from
\ResourceManagerController::$$modx  
Inherited_from
\ResourceCreateManagerController::$$modx  
Propertypublicarray  $placeholders= 'array()'
Default valuearray()Details
Type
array
Inherited_from
\modManagerController::$$placeholders  
Inherited_from
\ResourceManagerController::$$placeholders  
Inherited_from
\ResourceCreateManagerController::$$placeholders  
Propertypublic  $resourceArray= 'array()'
Default valuearray()Details
Type
n/a
Inherited_from
\ResourceManagerController::$$resourceArray  
Inherited_from
\ResourceCreateManagerController::$$resourceArray  
Propertypublicstring  $resourceClass= ''modDocument''
Default value'modDocument'Details
Type
string
Inherited_from
\ResourceManagerController::$$resourceClass  
Inherited_from
\ResourceCreateManagerController::$$resourceClass  
Propertypublicarray  $rteFields= 'array()'
Default valuearray()Details
Type
array
Inherited_from
\ResourceManagerController::$$rteFields  
Inherited_from
\ResourceCreateManagerController::$$rteFields  
Propertyprotectedstring  $ruleOutput= 'array()'
Default valuearray()Details
Type
string
Inherited_from
\modManagerController::$$ruleOutput  
Inherited_from
\ResourceManagerController::$$ruleOutput  
Inherited_from
\ResourceCreateManagerController::$$ruleOutput  
Propertypublicarray  $scriptProperties= 'array()'
Default valuearray()Details
Type
array
Inherited_from
\modManagerController::$$scriptProperties  
Inherited_from
\ResourceManagerController::$$scriptProperties  
Inherited_from
\ResourceCreateManagerController::$$scriptProperties  
Propertypublicarray  $templatesPaths= 'array()'
inherited

An array of possible paths to this controller's templates directory.Inherited from: \modManagerController::$$templatesPaths\ResourceManagerController::$$templatesPaths\ResourceCreateManagerController::$$templatesPaths
Default valuearray()Details
Type
array
Inherited_from
\modManagerController::$$templatesPaths  
Inherited_from
\ResourceManagerController::$$templatesPaths  
Inherited_from
\ResourceCreateManagerController::$$templatesPaths  
Propertyprotectedstring  $theme= ''default''
Default value'default'Details
Type
string
Inherited_from
\modManagerController::$$theme  
Inherited_from
\ResourceManagerController::$$theme  
Inherited_from
\ResourceCreateManagerController::$$theme  
Propertyprotectedstring  $title= ''''
Default value''Details
Type
string
Inherited_from
\modManagerController::$$title  
Inherited_from
\ResourceManagerController::$$title  
Inherited_from
\ResourceCreateManagerController::$$title  
Propertypublicarray  $tvCounts= 'array()'
Default valuearray()Details
Type
array
Inherited_from
\ResourceManagerController::$$tvCounts  
Inherited_from
\ResourceCreateManagerController::$$tvCounts  

Methods

methodpublic__construct( \modX $modx, array $config = array() ) : void
Parameters
Name Type Description
$modx \modX

A reference to the modX object.

$config array

A configuration array of options related to this controller's action object.

methodprivate_postfixVersionToScript( string $str, string $version ) : string
Parameters
Name Type Description
$str string

The script tag to append the version to

$version string

The version to append

Returns
Type Description
string The adjusted script tag
Details
Access
private  
methodprivate_prepareHead( ) : void
methodprivate_prepareVersionPostfix( ) : string
Returns
Type Description
string The parsed version string
Details
Access
private  
methodpublicaddCss( string $script ) : void
inherited

Add a external CSS file to the head of the page

Inherited from: \modManagerController::addCss()\ResourceManagerController::addCss()\ResourceCreateManagerController::addCss()
Parameters
Name Type Description
$script string
methodpublicaddHtml( string $script ) : void
Parameters
Name Type Description
$script string
methodpublicaddJavascript( string $script ) : void
Parameters
Name Type Description
$script string
methodpublicaddLastJavascript( string $script ) : void
Parameters
Name Type Description
$script string
methodpublicaddLexiconTopic( string $topic ) : string
Parameters
Name Type Description
$topic string
Returns
Type Description
string
methodpubliccheckFormCustomizationRules( \xPDOObject $obj = null, bool $forParent = false ) : bool
Parameters
Name Type Description
$obj \xPDOObject

If passed, will validate against for rules with constraints.

$forParent bool
Returns
Type Description
bool
methodpubliccheckPermissions( ) : bool
inherited

Check for any permissions or requirements to load page

Inherited from: \ResourceCreateManagerController::checkPermissions()
Returns
Type Description
bool
methodpublicfailure( string $message ) : void
inherited

Set a failure on this controller. This will return the error message.

Inherited from: \modManagerController::failure()\ResourceManagerController::failure()\ResourceCreateManagerController::failure()
Parameters
Name Type Description
$message string
methodpublicfetchTemplate( string $tpl ) : string
Parameters
Name Type Description
$tpl string

The path to the template

Returns
Type Description
string The output of the template
methodpublicfireOnRenderEvent( ) : string
Returns
Type Description
string
methodpublicfireOnTVFormRender( ) : mixed
Returns
Type Description
mixed
methodpublicfirePostRenderEvents( ) : void
methodpublicfirePreRenderEvents( ) : array | bool | string
Returns
Type Description
array | bool | string
methodpublicgetControllersPaths( bool $coreOnly = false ) : array
inherited

Get the path to this controller's directory. Override this to point to a custom directory.

Inherited from: \modManagerController::getControllersPaths()\ResourceManagerController::getControllersPaths()\ResourceCreateManagerController::getControllersPaths()
Parameters
Name Type Description
$coreOnly bool

Ensure that it grabs the path from the core namespace only.

Returns
Type Description
array
methodpublicgetDefaultState( ) : array | mixed | string
Returns
Type Description
array | mixed | string
methodpublicgetDefaultTemplate( ) : int
inherited

Return the default template for this resource

Inherited from: \ResourceCreateManagerController::getDefaultTemplate()
Returns
Type Description
int
methodpublicgetFooter( ) : string
Returns
Type Description
string
methodpublicgetHeader( ) : string
Returns
Type Description
string
methodpublicgetInstance( \modX $modx, string $className, array $config = array() ) : \modManagerController
staticinherited

Return the appropriate Resource controller class based on the class_key request parameter

Inherited from: \ResourceManagerController::getInstance()\ResourceCreateManagerController::getInstance()
Parameters
Name Type Description
$modx \modX

A reference to the modX instance

$className string

The controller class name that is attempting to be loaded

$config array

An array of configuration options for the action

Returns
Type Description
\modManagerController The proper controller class
Details
Static
 
methodpublicgetLanguageTopics( ) : array
Returns
Type Description
array
methodpublicgetPageTitle( ) : string
inherited

Return the pagetitle

Inherited from: \ResourceCreateManagerController::getPageTitle()
Returns
Type Description
string
methodpublicgetPlaceholder( string $k, mixed $default = null ) : mixed
Parameters
Name Type Description
$k string
$default mixed
Returns
Type Description
mixed
methodpublicgetPlaceholders( ) : array
Returns
Type Description
array
methodpublicgetTemplateFile( ) : string

Return the location of the template file

Returns
Type Description
string
methodpublicgetTemplatesPaths( bool $coreOnly = false ) : array | string
inherited

Get an array of possible paths to this controller's template's directory.

Inherited from: \modManagerController::getTemplatesPaths()\ResourceManagerController::getTemplatesPaths()\ResourceCreateManagerController::getTemplatesPaths()

Override this to point to a custom directory.

Parameters
Name Type Description
$coreOnly bool

Ensure that it grabs the path from the core namespace only.

Returns
Type Description
array | string
methodpublicinitialize( ) : void
inherited

Can be used to provide custom methods prior to processing

Inherited from: \modManagerController::initialize()\ResourceManagerController::initialize()\ResourceCreateManagerController::initialize()
methodpublicloadController(  $controller, bool $coreOnly = false ) : mixed | string
Parameters
Name Type Description
$controller
$coreOnly bool
Returns
Type Description
mixed | string
methodpublicloadControllersPath( ) : array
inherited

Load an array of possible paths to this controller's directory. Only override this if you want to override default behavior; otherwise, overriding getControllersPath is preferred.

Inherited from: \modManagerController::loadControllersPath()\ResourceManagerController::loadControllersPath()\ResourceCreateManagerController::loadControllersPath()
Returns
Type Description
array
methodpublicloadCustomCssJs( ) : void

Register custom CSS/JS for the page

methodpublicloadRichTextEditor( ) : void
methodpublicloadTVs( array $reloadData = array() ) : string
inherited

Load the TVs for the Resource

Inherited from: \ResourceManagerController::loadTVs()\ResourceCreateManagerController::loadTVs()
Parameters
Name Type Description
$reloadData array

resource data passed if reloading

Returns
Type Description
string The TV editing form
methodpublicloadTemplatesPath( ) : string
inherited

Load the path to this controller's template's directory. Only override this if you want to override default behavior; otherwise, overriding getTemplatesPath is preferred.

Inherited from: \modManagerController::loadTemplatesPath()\ResourceManagerController::loadTemplatesPath()\ResourceCreateManagerController::loadTemplatesPath()
Returns
Type Description
string
methodpublicloadWorkingContext( ) : \modContext | string
Returns
Type Description
\modContext | string
methodpublicprepareResource( ) : void
inherited

Used to set values on the resource record sent to the template for derivative classes

Inherited from: \ResourceManagerController::prepareResource()\ResourceCreateManagerController::prepareResource()
methodpublicprocess( array $scriptProperties = array() ) : mixed
inherited

Custom logic code here for setting placeholders, etc

Inherited from: \ResourceCreateManagerController::process()
Parameters
Name Type Description
$scriptProperties array
Returns
Type Description
mixed
methodpublicregisterBaseScripts( ) : void
Details
Access
public  
methodpublicregisterCssJs( ) : void
methodpublicrender( ) : string
Returns
Type Description
string
methodpublicsetContext( ) : \modContext
inherited

Get and set the context for this resource

Inherited from: \ResourceManagerController::setContext()\ResourceCreateManagerController::setContext()
Returns
Type Description
\modContext
methodpublicsetParent( ) : string
inherited

Get and set the parent for this resource

Inherited from: \ResourceManagerController::setParent()\ResourceCreateManagerController::setParent()
Returns
Type Description
string The pagetitle of the parent
methodpublicsetPermissions( ) : void
methodpublicsetPlaceholder( string $k, mixed $v ) : void
Parameters
Name Type Description
$k string

The key of the placeholder

$v mixed

The value of the placeholder

methodpublicsetPlaceholders( array $keys ) : void
Parameters
Name Type Description
$keys array
methodpublicsetProperties( array $properties ) : void
Parameters
Name Type Description
$properties array
methodpublicsetProperty( string $key, mixed $value ) : void
Parameters
Name Type Description
$key string
$value mixed
methodpublicsetResourceToken( ) : void
methodpublicsetTemplatePaths( array $paths ) : void
Parameters
Name Type Description
$paths array
Documentation was generated by DocBlox 0.18.1.