just a box
[01] -------------------------------------------------------------------------------- [02] --- Tweet Orders v.0.3.0 [03] --------------------------------------------------------------------------------
[05] --> initiates the engine... [06] You can specify the path as argument there "./" is the main directory! [07] $tweet = new tweet();
[09] --> sets the var "loc" to the value "main" [10] The second argument is optional and toogles the append mode (true|false(default)) [11] $tweet->set("loc","main",false);
[13] --> returns the saved var "loc" and put it into $myLoc (in modules and includes..) [14] (If you haven't set the var it returns false) [15] $myLoc = $this->get("loc"); [16] --> returns the saved var "loc" and put it into $myLoc (in the main script files..) [17] $myLoc = $tweet->get("loc");
[19] --> includes "bar.top.php" in the given location [20] Possible: [21] "before_all", "before_html", [22] "in_body_top", "in_body_bottom", [23] "after_body", "after_html" [24] $tweet->inc("in_body_top","bar.top.php");
[26] --> adds input to the output stack of tweet (HTML Code or whatever u want) [27] (This is your content!) [28] The second argument is optional, possible values are (true|false(default)) [29] => if yes your input is parsed through htmlspecialchars() [30] $tweet->input("<div class='cBox'><p>TEST1</p>\n<p>TEST2</p></div>");
[32] --> requires modules you want to use ("mod.mysql.php") [33] (the second argument is optional and it is the parameter, [34] it depens on the module you want. Seperate with a semicolon (;)) [35] Modules: mod.mysql.php => lockstack=(yes|no);clearStack=(yes|no);debug=(yes|no) [36] $tweet->module("module/mod.mysql.php","debug=yes");
[38] --> below php 5 you need this function to output your code etc, since php 5 you [39] don't need it, just finish you script and the __destruct function 'll do the rest [40] $tweet->finish();
© 2009/2010 by Wolfgang Vogl