SearchTable Of ContentsPrevious topic< Class Phalcon\Annotations\Reflection Next topicClass Phalcon\Assets\Exception > This Page |
Class Phalcon\Assets\Collection¶implements Countable, Iterator, Traversable Represents a collection of resources // ArrayAccess, Methods¶public Phalcon\Assets\Collection add (Phalcon\Assets\Resource $resource) Adds a resource to the collection public Phalcon\Assets\Collection addCss (string $path, [boolean $local]) Adds a CSS resource to the collection public Phalcon\Assets\Collection addJs (string $path, [boolean $local]) Adds a Js resource to the collection public Phalcon\Assets\Resource [] getResources () Returns the resources as an array 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 setPrefix (string $prefix) Sets a common prefix for all the resources public string getPrefix () Returns the prefix public Phalcon\Assets\Collection setLocal (boolean $local) Sets if the collection uses local resources by default public boolean getLocal () Returns if the collection uses local resources by default |