+ function getkeyDirectory()
+ {
+ $d = HTML_FlexyFramework::get()->Pman['storedir'].'/key';
+ if(!file_exists($d)) {
+ $oldumask = umask(0);
+ mkdir($d, 0775, true);
+ umask($oldumask);
+ }
+ return $d;
+ }
+
+ // FIXME - this needs to go in beforeInsert/beforeUpdate
+ // should not be sending this the values..
+ function initSetting($a)