]> jfr.im git - z_archive/KronOS.git/blobdiff - kosapps/default/users.php
Added ability for apps to define javascript -- static method scripts -- not core...
[z_archive/KronOS.git] / kosapps / default / users.php
diff --git a/kosapps/default/users.php b/kosapps/default/users.php
new file mode 100644 (file)
index 0000000..25a9a02
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+/*
+DOCS:
+       <script>wos.applib.loadscripts(<?php echo $this->aid() ?>);</script>
+can be used to trigger load JS from: public function scripts()
+
+scripts should return valid javascript code including at least:
+       wos.apps[<?php echo $this->aid() ?>].load = function(target){ appName.ctr = target; }
+or etc. Don't include script tags, it's loaded a la <script src="...">
+*/
+
+require_once('kosapps/common.php');
+
+class User_Manager extends KOS_App {
+       protected $iid;
+
+       public function appName() {
+               return "usermanager";
+       }
+       public function windowTitle() {
+               return "User Manager";
+       }
+       public function windowContents() {
+               return <<<EOF
+<em>User Manager!</em>
+EOF;
+       }
+
+}
+
+?>