There was an error while loading. Please reload this page.
Specifies that a resource file is needed. Note this above a class to force the resouce to be automatically searched and added the resulting output.
@attribute[Resource('myownscript.js')] @attribute[Resource('ineed/thisstyle.css')]
Extends: WdfAttribute
Subclasses: ExternalResourceAttribute
Will collect all Resource attributes from a given classname Will also step down the inheritance graph to collect Resources from there.
Definition: public static function Collect($classname)
public static function Collect($classname)
Returns: array Array of resource attributes
array
Parameters:
object|string $classname
Resolves this resource to a URL Will call resFile() to do so, so result will be callable from the current location.
Definition: public function Resolve()
public function Resolve()
Returns: string URL to resource
string
Resolves an array of ResourceAttributes Calls ResourceAttribute::Resolve() for each and returns an array of resolved URLs
Definition: public static function ResolveAll($array_of_res_attr)
public static function ResolveAll($array_of_res_attr)
Returns: array An array of URLs to the resources
array $array_of_res_attr