ResourcesService

Type
Class
Namespace
Craft
Inherits
Craft\ResourcesService » Craft\BaseApplicationComponent » CApplicationComponent (opens new window) » CComponent (opens new window)
Implements
IApplicationComponent
Since
1.0

Class ResourcesService

See also http://craftcms.com

View source (opens new window)

# Public Properties

Property Description
$behaviors (opens new window) array (opens new window) – The behaviors that should be attached to this component.
$dateParam

# $dateParam

Signature

public  $dateParam = null

# Public Methods

Method Description
__call() (opens new window) Calls the named method which is not a class method.
__get() (opens new window) Returns a property value, an event handler list or a behavior based on its name.
__isset() (opens new window) Checks if a property value is null.
__set() (opens new window) Sets value of a component property.
__unset() (opens new window) Sets a component property to be null.
asa() (opens new window) Returns the named behavior object.
attachBehavior() (opens new window) Attaches a behavior to this component.
attachBehaviors() (opens new window) Attaches a list of behaviors to the component.
attachEventHandler() (opens new window) Attaches an event handler to an event.
cacheResourcePath() Caches a file system path for a given resource.
canGetProperty() (opens new window) Determines whether a property can be read.
canSetProperty() (opens new window) Determines whether a property can be set.
detachBehavior() (opens new window) Detaches a behavior from the component.
detachBehaviors() (opens new window) Detaches all behaviors from the component.
detachEventHandler() (opens new window) Detaches an existing event handler.
disableBehavior() (opens new window) Disables an attached behavior.
disableBehaviors() (opens new window) Disables all behaviors attached to this component.
enableBehavior() (opens new window) Enables an attached behavior.
enableBehaviors() (opens new window) Enables all behaviors attached to this component.
evaluateExpression() (opens new window) Evaluates a PHP expression or callback under the context of this component.
getCachedResourcePath() Returns the cached file system path for a given resource, if we have it.
getEventHandlers() (opens new window) Returns the list of attached event handlers for an event.
getIsInitialized() (opens new window) Checks if this application component has been initialized.
getResourcePath() Resolves a resource path to the actual file system path, or returns false if the resource cannot be found.
hasEvent() (opens new window) Determines whether an event is defined.
hasEventHandler() (opens new window) Checks whether the named event has attached handlers.
hasProperty() (opens new window) Determines whether a property is defined.
init() (opens new window) Initializes the application component.
isInitialized() Checks if this application component has been initialized yet, or not.
raiseEvent() (opens new window) Raises an event.
sendResource() Sends a resource back to the browser.

# cacheResourcePath()

Caches a file system path for a given resource.

View source (opens new window)

Arguments

Returns

null (opens new window)

Signature

public null cacheResourcePath ( $path, $realPath )

# getCachedResourcePath()

Returns the cached file system path for a given resource, if we have it.

View source (opens new window)

Arguments

Returns

string (opens new window), null (opens new window)

Signature

public string, null getCachedResourcePath ( $path )

# getResourcePath()

Resolves a resource path to the actual file system path, or returns false if the resource cannot be found.

View source (opens new window)

Arguments

Returns

string (opens new window)

Throws

Signature

public string getResourcePath ( $path )

# sendResource()

Sends a resource back to the browser.

View source (opens new window)

Arguments

Returns

null (opens new window)

Throws

Signature

public null sendResource ( $path )