Add configuration to allow an admin to set user default values.

This commit is contained in:
Andrew McMillan committed 2009-04-11 22:32:42 +12:00
1 parent 60a52972a6
commit a733f6d43a
2 files changed
+24 -2

No files matched your search

+11 -1
View File
@@ -9,7 +9,7 @@
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2
*/
require_once("User.php");
require("User.php");
require_once("classBrowser.php");
require_once("auth-functions.php");
@@ -30,8 +30,14 @@ class RSCDSUser extends User
* Constructor - nothing fancy as yet.
*/
function RSCDSUser( $id , $prefix = "") {
global $c;
$this->delete_collection_confirmation_required = null;
parent::User( $id, $prefix );
if ( $this->user_no == 0 && isset($c->template_usr) && is_array($c->template_usr) ) {
foreach( $c->template_usr AS $k => $v ) {
$this->Set($k,$v);
}
}
}
/**
@@ -78,6 +84,8 @@ class RSCDSUser extends User
return $html;
}
/**
* Render input file to import ics in calendar user
*
@@ -100,6 +108,7 @@ class RSCDSUser extends User
return $html;
}
/**
* Render the user's relationships to other users & resources
*
@@ -148,6 +157,7 @@ class RSCDSUser extends User
return $html;
}
/**
* Render the user's relationships to other users & resources
*