Documentation

Table Of Contents

Previous topic

< Class Phalcon\Annotations\Reflection

Next topic

Class Phalcon\Assets\Exception >

This Page

Class Phalcon\Assets\Collection

implements Countable, Iterator, Traversable

Methods

public getPrefix ()

...

public getLocal ()

...

public getResources ()

...

public getCodes ()

...

public getPosition ()

...

public getFilters ()

...

public getAttributes ()

...

public getJoin ()

...

public getTargetUri ()

...

public getTargetPath ()

...

public getTargetLocal ()

...

public getSourcePath ()

...

public Phalcon\Assets\Collection add (unknown $resource)

Adds a resource to the collection

public Phalcon\Assets\Collection addInline (unknown $code)

Adds a inline code to the collection

public Phalcon\Assets\Collection addCss (unknown $path, [unknown $local], [unknown $filter], [unknown $attributes])

Adds a CSS resource to the collection

public Phalcon\Assets\Collection addInlineCss (unknown $content, [unknown $filter], [unknown $attributes])

Adds a inline CSS to the collection

public Phalcon\Assets\Collection addJs (unknown $path, [unknown $local], [unknown $filter], [unknown $attributes])

Adds a javascript resource to the collection

public Phalcon\Assets\Collection addInlineJs (unknown $content, [unknown $filter], [unknown $attributes])

Adds a inline javascript to the collection

public int count ()

Returns the number of elements in the form

public rewind ()

Rewinds the internal iterator

public Phalcon\Assets\Resource current ()

Returns the current resource in the iterator

public int key ()

Returns the current position/key in the iterator

public next ()

Moves the internal iteration pointer to the next position

public boolean valid ()

Check if the current element in the iterator is valid

public Phalcon\Assets\Collection setTargetPath (string $targetPath)

Sets the target path of the file for the filtered/join output

public Phalcon\Assets\Collection setSourcePath (string $sourcePath)

Sets a base source path for all the resources in this collection

public Phalcon\Assets\Collection setTargetUri (string $targetUri)

Sets a target uri for the generated HTML

public Phalcon\Assets\Collection setPrefix (string $prefix)

Sets a common prefix for all the resources

public Phalcon\Assets\Collection setLocal (boolean $local)

Sets if the collection uses local resources by default

public $this setAttributes (array $attributes)

Sets extra HTML attributes

public Phalcon\Assets\Collection setFilters (array $filters)

Sets an array of filters in the collection

public Phalcon\Assets\Collection setTargetLocal (boolean $targetLocal)

Sets the target local

public Phalcon\Assets\Collection join (unknown $join)

Sets if all filtered resources in the collection must be joined in a single result file

public string getRealTargetPath (unknown $basePath)

Returns the complete location where the joined/filtered collection must be written

public Phalcon\Assets\Collection addFilter (unknown $filter)

Adds a filter to the collection

public __construct ()

...

Follow along: