Add some files for posterity
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 5 Jan 2009 03:17:52 +0000 (19:17 -0800)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 5 Jan 2009 03:17:52 +0000 (19:17 -0800)
* docs/BSDbAbstracter.php
* docs/printertest.php

docs/BSDbAbstracter.php [new file with mode: 0644]
docs/printertest.php [new file with mode: 0644]

diff --git a/docs/BSDbAbstracter.php b/docs/BSDbAbstracter.php
new file mode 100644 (file)
index 0000000..c40c995
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+
+// $db->query("SELECT f.*, m.userid, m.email FROM foo AS f LEFT JOIN members AS m WHERE ??? ORDER BY m.userid ASC GROUP BY m.userid LIMIT 10, 100");
+$db    ->select(array('f' => '*', 'm' => array('userid', 'email')))
+       ->from(array(TABLE_PREFIX . 'foo' => 'f'))
+       ->join('left', 'members', 'm')
+       ->where(array(
+               
+       ))
+       ->orderBy('userid', 'asc', 'm')
+       ->groupBy('userid', 'm')
+       ->limit(10, 100);
+       
+
+//        $db->query("SELECT * FROM users WHERE userid = 4");
+$simple = $db->select('*')->from('users')->where(array('userid' => 4));
+
+//        $db->query("INSERT INTO posts (userid, email) VALUES (4, 'robert@sesek.com')");
+$insert = $db->insert(TABLE_PREFIX . 'posts', array(
+       'userid'        => 4,
+       'email'         => 'robert@sesek.com'
+));
+
+?>
diff --git a/docs/printertest.php b/docs/printertest.php
new file mode 100644 (file)
index 0000000..c0c63a8
--- /dev/null
@@ -0,0 +1,57 @@
+<?php
+
+error_reporting(E_ALL);
+
+define('ISSO_MT_START', microtime());
+define('ISSO', getcwd());
+
+require_once ISSO . '/App.php';
+require_once ISSO . '/Printer.php';
+require_once ISSO . '/Functions.php';
+
+$xml = <<<XML
+<navigation>
+       
+       <tabs>
+               <tab key="tab1" target="tab1.php">This is Tab One</tab>
+               <tab key="tab2" target="tab2.php">Tab 2</tab>
+               <tab key="tab3" target="tab3.php">3</tab>
+       </tabs>
+       
+       <links>
+               <link target="toplink1.php">Top Link 1</link>
+               <link target="toplink2.php">Top Link 2</link>
+       </links>
+       
+       <sections>
+               <section key="beginning" name="Beginning Section">
+                       <link key="first" target="firstlink.php">First Link</link>
+                       <link key="second" target="secondlink.php">Second Link</link>
+               </section>
+               
+               <section key="ending" name="Last Section">
+                       <link key="third" target="thirdlink.php">Third Link</link>
+               </section>
+               
+               <section inherits="beginning,ending" key="combined" name="Combined View">
+                       <link key="fifth" target="fifthlink.php">This is the fifth link</link>
+               </section>
+       </sections>
+       
+</navigation>
+
+XML;
+
+$navigator = new BSPrinterNavigation($xml);
+
+$navigator->addFocus('tab2');
+$navigator->addSection('combined');
+
+BSApp::set_debug(true);
+BSPrinter::set_stylesheet('printer.css.php');
+BSPrinter::set_realm('Printer Test');
+
+BSPrinterRootPage::make('Title')->setNavigator($navigator)
+                                                               ->paint();
+
+?>