modResourceRepresents a web resource managed by the modX framework.
Located in /model/modx/modresource.class.php (line 7)
xPDOObject | --modAccessibleObject | --modAccessibleSimpleObject | --modResource
| Class | Description |
|---|---|
modDocument
|
|
modJSONRPCResource
|
Represents a MODx Resource that services JSON-RPC client requests. |
modStaticResource
|
A derivative of modResource that stores content on the filesystem. |
modSymLink
|
A modResource derivative the represents a symbolic link. |
modWebLink
|
A modResource derivative the represents a redirect link. |
modXMLRPCResource
|
Extends modResource to service XML-RPC client requests. |
string
$_cacheKey
= null (line 38)
The cache filename for the resource in the context.
string
$_content
= '' (line 15)
Represents the cacheable content for a resource.
Note that this is not the raw source content, but the content that is the result of processing cacheable tags within the raw source content.
string
$_contextKey
= null (line 28)
The context the resource is requested from.
Note that this is different than the context_key field that describes a primary context for the resource.
mixed
$_jscripts
= array() (line 44)
mixed
$_loadedjscripts
= array() (line 46)
string
$_output
= '' (line 20)
Represents the output the resource produces.
boolean
$_processed
= false (line 33)
Indicates if the resource has already been processed.
boolean
$_refreshCache
= true (line 43)
Indicates if the site cache should be refreshed when saving changes.
mixed
$_sjscripts
= array() (line 45)
Inherited from modAccessibleObject
modAccessibleObject::$_policies
Inherited from xPDOObject
xPDOObject::$container
xPDOObject::$fieldNames
xPDOObject::$xpdo
xPDOObject::$_aggregates
xPDOObject::$_alias
xPDOObject::$_cacheFlag
xPDOObject::$_class
xPDOObject::$_composites
xPDOObject::$_dirty
xPDOObject::$_fieldMeta
xPDOObject::$_fields
xPDOObject::$_lazy
xPDOObject::$_new
xPDOObject::$_options
xPDOObject::$_package
xPDOObject::$_pk
xPDOObject::$_pktype
xPDOObject::$_relatedObjects
xPDOObject::$_table
xPDOObject::$_tableMeta
xPDOObject::$_validated
xPDOObject::$_validationLoaded
xPDOObject::$_validationRules
xPDOObject::$_validator
Constructor __construct (line 48)
addLock (line 408)
Adds a lock on the Resource
addOne (line 246)
Adds an object related to this modResource by a foreign key relationship.
Adds legacy support for keeping the existing contentType field in sync when a modContentType is set using this function.
cleanAlias (line 262)
Transforms a string to form a valid URL representation.
duplicate (line 629)
findPolicy (line 476)
Loads the access control policies applicable to this resource.
getAliasPath (line 551)
Get the Resource's full alias path.
getCacheKey (line 152)
Returns the cache key for this instance in the current context.
getContent (line 89)
Gets the raw, unprocessed source content for a resource.
getLock (line 432)
Gets the lock on the Resource.
getMany (line 173)
Gets a collection of objects related by aggregate or composite relations.
Includes special handling for related objects with alias modTemplateVar, respecting framework security unless specific criteria are provided.
getProcessed (line 396)
Return whether or not the resource has been processed.
getTVValue (line 534)
Gets the value of a TV for the Resource.
hasChildren (line 518)
Checks to see if the Resource has children or not. Returns the number of children.
isDuplicateAlias (line 604)
Tests to see if an alias is a duplicate.
joinGroup (line 716)
Joins a Resource to a Resource Group
mergeKeywords (line 119)
Merge in Keywords into content.
mergeMetaTags (line 133)
Merge in META tags to content.
process (line 59)
Process a resource, transforming source content to output.
removeLock (line 454)
Removes all locks on a Resource.
save (line 382)
Persist new or changed modResource instances to the database container.
If the modResource is new, the createdon and createdby fields will be set using the current time and user authenticated in the context.
set (line 209)
Set a field value by the field key or name.
Additional logic added for the following fields: -alias: Applies modResource::cleanAlias() -contentType: Calls modResource::addOne() to sync contentType -content_type: Sets the contentType field appropriately
setContent (line 109)
Set the raw source content for this element.
Inherited From modAccessibleObject
modAccessibleObject::checkPolicy()
modAccessibleObject::findPolicy()
modAccessibleObject::getPolicies()
modAccessibleObject::load()
modAccessibleObject::loadCollection()
modAccessibleObject::remove()
modAccessibleObject::save()
modAccessibleObject::setPolicies()
modAccessibleObject::_loadCollectionInstance()
modAccessibleObject::_loadInstance()
Inherited From xPDOObject
xPDOObject::__construct()
xPDOObject::addMany()
xPDOObject::addOne()
xPDOObject::addValidationRule()
xPDOObject::encode()
xPDOObject::fromArray()
xPDOObject::fromJSON()
xPDOObject::get()
xPDOObject::getFieldName()
xPDOObject::getFKClass()
xPDOObject::getFKDefinition()
xPDOObject::getMany()
xPDOObject::getOne()
xPDOObject::getOption()
xPDOObject::getPK()
xPDOObject::getPKType()
xPDOObject::getPrimaryKey()
xPDOObject::getSelectColumns()
xPDOObject::getValidator()
xPDOObject::isDirty()
xPDOObject::isLazy()
xPDOObject::isNew()
xPDOObject::isValidated()
xPDOObject::load()
xPDOObject::loadCollection()
xPDOObject::loadCollectionGraph()
xPDOObject::remove()
xPDOObject::removeValidationRules()
xPDOObject::save()
xPDOObject::set()
xPDOObject::setDirty()
xPDOObject::setOption()
xPDOObject::toArray()
xPDOObject::toJSON()
xPDOObject::validate()
xPDOObject::_getAliases()
xPDOObject::_getDataType()
xPDOObject::_getPHPType()
xPDOObject::_getRelatedObjectsByFK()
xPDOObject::_initFields()
xPDOObject::_loadCollectionInstance()
xPDOObject::_loadFieldData()
xPDOObject::_loadInstance()
xPDOObject::_loadRows()
xPDOObject::_loadValidation()
xPDOObject::_saveRelatedObject()
xPDOObject::_saveRelatedObjects()
xPDOObject::_setRaw()
Documentation generated on Fri, 17 Jun 2011 10:03:45 -0600 by phpDocumentor 1.4.3