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

Show: inherited
Table of Contents

Package
modx  
Subpackage
manager.controllers  

\StaticResourceUpdateManagerController

Package: modx\manager\controllers

Loads the update resource page

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

Properties

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

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

Whether or not a failure message was sent by this controller.Inherited from: \modManagerController::$$isFailure\ResourceManagerController::$$isFailure\ResourceUpdateManagerController::$$isFailure
Default valuefalseDetails
Type
bool
Inherited_from
\modManagerController::$$isFailure  
Inherited_from
\ResourceManagerController::$$isFailure  
Inherited_from
\ResourceUpdateManagerController::$$isFailure  
Propertypublicbool  $loadBaseJavascript= 'true'
Propertypublicbool  $loadFooter= 'true'
Default valuetrueDetails
Type
bool
Inherited_from
\modManagerController::$$loadFooter  
Inherited_from
\ResourceManagerController::$$loadFooter  
Inherited_from
\ResourceUpdateManagerController::$$loadFooter  
Propertypublicbool  $loadHeader= 'true'
Default valuetrueDetails
Type
bool
Inherited_from
\modManagerController::$$loadHeader  
Inherited_from
\ResourceManagerController::$$loadHeader  
Inherited_from
\ResourceUpdateManagerController::$$loadHeader  
Propertypublicboolean  $locked= 'false'
inherited

Whether or not this Resource is locked for editingInherited from: \ResourceUpdateManagerController::$$locked
Default valuefalseDetails
Type
boolean
Inherited_from
\ResourceUpdateManagerController::$$locked  
Propertypublicstring  $lockedText= ''''
inherited

If the Resource is locked, the text on the locked button to showInherited from: \ResourceUpdateManagerController::$$lockedText
Default value''Details
Type
string
Inherited_from
\ResourceUpdateManagerController::$$lockedText  
Propertypublic\modX  $modx= ''
Details
Type
\modX
Inherited_from
\modManagerController::$$modx  
Inherited_from
\ResourceManagerController::$$modx  
Inherited_from
\ResourceUpdateManagerController::$$modx  
Propertypublicarray  $placeholders= 'array()'
Default valuearray()Details
Type
array
Inherited_from
\modManagerController::$$placeholders  
Inherited_from
\ResourceManagerController::$$placeholders  
Inherited_from
\ResourceUpdateManagerController::$$placeholders  
Propertypublicstring  $previewUrl= ''''
inherited

The URL of the resource on the front-endInherited from: \ResourceUpdateManagerController::$$previewUrl
Default value''Details
Type
string
Inherited_from
\ResourceUpdateManagerController::$$previewUrl  
Propertypublic\modResource  $resource= ''
Propertypublic  $resourceArray= 'array()'
Default valuearray()Details
Type
n/a
Inherited_from
\ResourceManagerController::$$resourceArray  
Inherited_from
\ResourceUpdateManagerController::$$resourceArray  
Propertypublicstring  $resourceClass= ''modDocument''
Default value'modDocument'Details
Type
string
Inherited_from
\ResourceManagerController::$$resourceClass  
Inherited_from
\ResourceUpdateManagerController::$$resourceClass  
Propertypublicarray  $rteFields= 'array()'
Default valuearray()Details
Type
array
Inherited_from
\ResourceManagerController::$$rteFields  
Inherited_from
\ResourceUpdateManagerController::$$rteFields  
Propertyprotectedstring  $ruleOutput= 'array()'
Default valuearray()Details
Type
string
Inherited_from
\modManagerController::$$ruleOutput  
Inherited_from
\ResourceManagerController::$$ruleOutput  
Inherited_from
\ResourceUpdateManagerController::$$ruleOutput  
Propertypublicarray  $scriptProperties= 'array()'
Default valuearray()Details
Type
array
Inherited_from
\modManagerController::$$scriptProperties  
Inherited_from
\ResourceManagerController::$$scriptProperties  
Inherited_from
\ResourceUpdateManagerController::$$scriptProperties  
Propertypublicarray  $templatesPaths= 'array()'
inherited

An array of possible paths to this controller's templates directory.Inherited from: \modManagerController::$$templatesPaths\ResourceManagerController::$$templatesPaths\ResourceUpdateManagerController::$$templatesPaths
Default valuearray()Details
Type
array
Inherited_from
\modManagerController::$$templatesPaths  
Inherited_from
\ResourceManagerController::$$templatesPaths  
Inherited_from
\ResourceUpdateManagerController::$$templatesPaths  
Propertyprotectedstring  $theme= ''default''
Default value'default'Details
Type
string
Inherited_from
\modManagerController::$$theme  
Inherited_from
\ResourceManagerController::$$theme  
Inherited_from
\ResourceUpdateManagerController::$$theme  
Propertyprotectedstring  $title= ''''
Default value''Details
Type
string
Inherited_from
\modManagerController::$$title  
Inherited_from
\ResourceManagerController::$$title  
Inherited_from
\ResourceUpdateManagerController::$$title  
Propertypublicarray  $tvCounts= 'array()'
Default valuearray()Details
Type
array
Inherited_from
\ResourceManagerController::$$tvCounts  
Inherited_from
\ResourceUpdateManagerController::$$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()\ResourceUpdateManagerController::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
methodpubliccheckForLocks( ) : bool
inherited

Check for locks on the Resource

Inherited from: \ResourceUpdateManagerController::checkForLocks()
Returns
Type Description
bool
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: \ResourceUpdateManagerController::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()\ResourceUpdateManagerController::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()\ResourceUpdateManagerController::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
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()\ResourceUpdateManagerController::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: \ResourceUpdateManagerController::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
methodpublicgetPreviewUrl( ) : string
inherited

Get url for resource for preview window

Inherited from: \ResourceUpdateManagerController::getPreviewUrl()
Returns
Type Description
string
methodpublicgetResource( ) : void
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()\ResourceUpdateManagerController::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()\ResourceUpdateManagerController::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()\ResourceUpdateManagerController::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()\ResourceUpdateManagerController::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()\ResourceUpdateManagerController::loadTemplatesPath()
Returns
Type Description
string
methodpublicloadWorkingContext( ) : \modContext | string
Returns
Type Description
\modContext | string
methodpublicprepareResource( ) : void | string

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

Returns
Type Description
void | string
methodpublicprocess( array $scriptProperties = array() ) : mixed
inherited

Process the controller, returning an array of placeholders to set.

Inherited from: \ResourceUpdateManagerController::process()
Parameters
Name Type Description
$scriptProperties array

A array of REQUEST parameters.

Returns
Type Description
mixed Either an error or output string, or an array of placeholders to set.
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()\ResourceUpdateManagerController::setContext()
Returns
Type Description
\modContext
methodpublicsetParent( ) : string
inherited

Get and set the parent for this resource

Inherited from: \ResourceManagerController::setParent()\ResourceUpdateManagerController::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.