modElementRepresents an element of source content managed by MODx.
These elements are defined by some type of source content that when processed will provide output or some type of logical result based on mutable properties.
This class creates an instance of a modElement object. This should not be called directly, but rather extended for derivative modElement classes.
Located in /model/modx/modelement.class.php (line 37)
xPDOObject | --modAccessibleObject | --modAccessibleSimpleObject | --modElement
| Class | Description |
|---|---|
modChunk
|
Represents a chunk of static HTML content. |
modScript
|
An element representing executable PHP script content. |
modTemplate
|
Represents a content element that serves as a resource template. |
modTemplateVar
|
Represents a template variable element. |
boolean
$_cacheable
= true (line 86)
string
$_content
= '' (line 55)
The source content of the element.
array
$_filters
= array('input' => null, 'output' => null) (line 96)
array
$_invalidCharacters
= array('!','@','#','$','%','^','&','*',
string
$_output
= '' (line 61)
The output of the element.
boolean
$_processed
= false (line 91)
array
$_properties
= null (line 43)
The property value array for the element.
string
$_propertyString
= '' (line 49)
The string representation of the element properties.
boolean
$_result
= true (line 69)
The boolean result of the element.
This is typically only applicable to elements that use PHP source content.
string
$_tag
= null (line 75)
The tag signature of the element instance.
string
$_token
= '' (line 81)
The character token which helps identify the element class in tag string.
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
addPropertySet (line 567)
Add a property set to this element, making it available for use.
cache (line 263)
Cache the current output of this element instance by tag signature.
filterInput (line 315)
Apply an input filter to an element.
This is called by default in modElement::process() after the element properties have been parsed.
filterOutput (line 331)
Apply an output filter to an element.
Call this method in your {modElement::process()} implementation when it is appropriate, typically once all processing has been completed, but before any caching takes place.
findPolicy (line 343)
Loads the access control policies applicable to this element.
get (line 130)
Overrides xPDOObject::get to handle when retrieving the properties field for an Element.
getContent (line 388)
Gets the raw, unprocessed source content for this element.
getInputFilter (line 274)
Get an input filter instance configured for this Element.
getOutputFilter (line 293)
Get an output filter instance configured for this Element.
getProperties (line 422)
Get the properties for this element instance for processing.
getPropertySet (line 453)
Gets a named property set related to this element instance.
If a setName parameter is not provided, this function will attempt to extract a setName from the element name using the @ symbol to delimit the name of the property set.
Here is an example of an element tag using the @ modifier to specify a property set name: [[ElementName@PropertySetName:FilterCommand=`FilterModifier`? &PropertyKey1=`PropertyValue1` &PropertyKey2=`PropertyValue2` ]]
getTag (line 173)
Constructs a valid tag representation of the element.
getToken (line 209)
Accessor method for the token class var.
isCacheable (line 617)
Indicates if the element is cacheable.
process (line 243)
Process the element source content to produce a result.
remove (line 161)
Overrides xPDOObject::remove to remove all Property Sets that are related to this object.
removePropertySet (line 597)
Remove a property set from this element, making it unavailable for use.
set (line 111)
Overrides xPDOObject::set to strip invalid characters from element names.
{@inheritDoc}
setCacheable (line 628)
Sets the runtime cacheability of the element.
setContent (line 410)
Set the raw source content for this element.
setProperties (line 491)
Set default properties for this element instance.
setTag (line 227)
Setter method for the tag class var.
setToken (line 218)
Setter method for the token class var.
toPlaceholders (line 641)
Turns associative arrays into placeholders in the scope of 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:33 -0600 by phpDocumentor 1.4.3