Skip to content
Browse files

improved docs

  • Loading branch information...
1 parent 4eac6ae commit 852bd44eb6c1206bbdbc43922e8490895ad5d132 @kaviththiranga committed Dec 15, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 docs/manual/en-US/chapters/packages/media.md
View
14 docs/manual/en-US/chapters/packages/media.md
@@ -6,3 +6,17 @@ The *Media* package is designed to compile and compress assets such as `Javascri
### Abstract Classes
+#### JMediaCollection
+
+Abstract class `JMediaCollection` contains functions to combine several files into a single file. It is extended by concrete classes such as `JMediaCollectionCss` and
+`JMediaCollectionJs` which contains implementations of combine functions for a particular file type.
+
+Example : How to obtain a `JMediaCollectionCss` object for css files.
+
+```php
+ // Options
+ $options = array('type' => 'css', 'FILE_COMMENTS' => true);
+
+ $collection = JMediaCollection::getInstance($options);
+```
+

0 comments on commit 852bd44

Please sign in to comment.
Something went wrong with that request. Please try again.