diff --git a/lam/lib/baseModule.inc b/lam/lib/baseModule.inc new file mode 100644 index 00000000..8d81882b --- /dev/null +++ b/lam/lib/baseModule.inc @@ -0,0 +1,93 @@ +scope = $scope; + $this->meta = $this->get_metaData(); + } + + /** + * Dummy function, meta data is provided by sub classes. + * + * @return array empty array + */ + function get_metaData() { + return array(); + } + + /** + * Returns the account type of this module (user, group, host) + * + * @return string account type + */ + function get_scope() { + return $this->scope; + } + + /** + * Returns true if this module is enough to provide a sensible account. + * + * There is no relation to the name of this class. + * + * @return boolean true if base module + */ + function is_base_module() { + if ($this->meta['is_base'] == true) return true; + else return false; + } + +// TODO implement missing interface +} + + + +?> \ No newline at end of file