<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to DStyles object</title><link>https://sourceforge.net/p/dstyles/wiki/DStyles%2520object/</link><description>Recent changes to DStyles object</description><atom:link href="https://sourceforge.net/p/dstyles/wiki/DStyles%20object/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 01 Sep 2013 11:10:48 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dstyles/wiki/DStyles%20object/feed" rel="self" type="application/rss+xml"/><item><title>DStyles object modified by Donator</title><link>https://sourceforge.net/p/dstyles/wiki/DStyles%2520object/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -18,8 +18,30 @@
 These 3 parameters are:
 $obj = *new DStyles* ( **$folder**, **$styleName**, **$defaultExt** );

-   Parameter    |    Type    |        Constant        |    Description
---------------- | ---------- | ---------------------- | -----------------
-**$folder**     |  *String*  | DSTYLES_DEFAULT_DIR    | Set directory that contains Your style or styles. If You pass only this parameter, then (by default) whole directory is Your style folder.
-**$styleName**  |  *String*  | DSTYLES_DEFAULT_STYLE  | Set style to be used. Styles are folders placed in *$folder* path. To pass this argument You need to pass $folder parameter first.
-**$defaultExt** |  *String*  | DSTYLES_DEFAULT_EXT    | Set template file extension. Be aware, that script does not care about extension validity, so if You want, for example, get index.html file, You need to pass **$defaultExt** = **'.html'** value.
+   Parameter    |    Type    |        Constant        |    Default    |    Description
+--------------- | ---------- | ---------------------- | ------------- | -----------------
+**$folder**     |  *String*  | DSTYLES_DEFAULT_DIR    | ./ | Set directory that contains Your style or styles. If You pass only this parameter, then (by default) whole directory is Your style folder.
+**$styleName**  |  *String*  | DSTYLES_DEFAULT_STYLE  | *Empty* | Set style to be used. Styles are folders placed in *$folder* path. To pass this argument You need to pass $folder parameter first.
+**$defaultExt** |  *String*  | DSTYLES_DEFAULT_EXT    | .html | Set template file extension. Be aware, that script does not care about extension validity, so if You want, for example, get index.html file, You need to pass **$defaultExt** = **'.html'** value.
+
+Additionally, You can set any of this value independently, using special methods. For more see [functions](DStyles functions) page.
+
+Examples
+--------
+
+~~~~~~~~~~
+get('index');    // Search for file: myStyles/index.html
+
+// Example #2: set styles folder and style
+$obj2 = new DStyles('myStyles', 'style1');
+$obj2-&gt;get('index');    // Search for file: myStyles/style1/index.html
+
+// Example #3: set default styles folder, style and extension
+$obj3 = new DStyles(DSTYLES_DEFAULT_DIR, 'myOtherStyle', '.tpl');
+$obj3-&gt;get('index');    // Search for file: ./myOtherStyle/index.ypl
+?&gt;
+~~~~~~~~~~
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Donator</dc:creator><pubDate>Sun, 01 Sep 2013 11:10:48 -0000</pubDate><guid>https://sourceforge.netdd15564b639107c22ff5b84413c4e957a0642d73</guid></item><item><title>DStyles object modified by Donator</title><link>https://sourceforge.net/p/dstyles/wiki/DStyles%2520object/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -16,10 +16,10 @@
 DStyles Object takes 3 optional parameters. If omitted, default values are used. You can specify taht default values, see more at [DStyles constants].

 These 3 parameters are:
-$obj = new DStyles(**$folder**, **$styleName**, **$defaultExt**);
+$obj = *new DStyles* ( **$folder**, **$styleName**, **$defaultExt** );

-    Parameter   |    Type    |    Constant
---------------- | ---------- | -------------
-**$folder**     |  *String*  |
-**$styleName**  |  *String*  |
-**$defaultExt** |  *String*  |
+   Parameter    |    Type    |        Constant        |    Description
+--------------- | ---------- | ---------------------- | -----------------
+**$folder**     |  *String*  | DSTYLES_DEFAULT_DIR    | Set directory that contains Your style or styles. If You pass only this parameter, then (by default) whole directory is Your style folder.
+**$styleName**  |  *String*  | DSTYLES_DEFAULT_STYLE  | Set style to be used. Styles are folders placed in *$folder* path. To pass this argument You need to pass $folder parameter first.
+**$defaultExt** |  *String*  | DSTYLES_DEFAULT_EXT    | Set template file extension. Be aware, that script does not care about extension validity, so if You want, for example, get index.html file, You need to pass **$defaultExt** = **'.html'** value.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Donator</dc:creator><pubDate>Sun, 01 Sep 2013 11:00:13 -0000</pubDate><guid>https://sourceforge.netb4bdf1c3a90123dd890dbd75cb8b49e9d12a21a7</guid></item><item><title>DStyles object modified by Donator</title><link>https://sourceforge.net/p/dstyles/wiki/DStyles%2520object/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="dstyles-object"&gt;DStyles Object&lt;/h1&gt;
&lt;p&gt;To create DStyles Object simply use following code:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="c1"&gt;// Creating an object&lt;/span&gt;
&lt;span class="nv"&gt;$obj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;DStyles&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// or&lt;/span&gt;
&lt;span class="nv"&gt;$obj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;DStyles&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="cp"&gt;?&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;DStyles Object takes 3 optional parameters. If omitted, default values are used. You can specify taht default values, see more at &lt;a class="alink" href="/p/dstyles/wiki/DStyles%20constants/"&gt;[DStyles constants]&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;These 3 parameters are:&lt;br /&gt;
$obj = new DStyles(&lt;strong&gt;$folder&lt;/strong&gt;, &lt;strong&gt;$styleName&lt;/strong&gt;, &lt;strong&gt;$defaultExt&lt;/strong&gt;);&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;Parameter&lt;/span&gt;   &lt;span class="o"&gt;|&lt;/span&gt;    &lt;span class="n"&gt;Type&lt;/span&gt;    &lt;span class="o"&gt;|&lt;/span&gt;    &lt;span class="n"&gt;Constant&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;--------------- | ---------- | -------------&lt;br /&gt;
&lt;strong&gt;$folder&lt;/strong&gt;     |  &lt;em&gt;String&lt;/em&gt;  |&lt;br /&gt;
&lt;strong&gt;$styleName&lt;/strong&gt;  |  &lt;em&gt;String&lt;/em&gt;  |&lt;br /&gt;
&lt;strong&gt;$defaultExt&lt;/strong&gt; |  &lt;em&gt;String&lt;/em&gt;  |&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Donator</dc:creator><pubDate>Sun, 01 Sep 2013 10:45:20 -0000</pubDate><guid>https://sourceforge.neta9fd48f6da3da9a69f9aacb50f2cf679e366b133</guid></item></channel></rss>