Logo Search packages:      
Sourcecode: bamboo version File versions

UserStore.php

<?php

#########################################################
# UserStoreFactory

class UserStoreFactory {
      function create($configstr) {
            $directory = dirname(__FILE__) . "/userstores";
            $args = explode(',',$configstr,2);
            $class = ucfirst($args[0]) . "UserStore";
            $file = "$directory/$class.php";
            if (!is_file($file))
                  die(_("Could not find user storage backend") . ": " . $args[0]);
            require_once($file);
            return new $class(trim($args[1]));
      }
}

#########################################################
# UserStore

class UserStore {

function newUser($user) {}

function setPassword($user,$password) {}

// returns a list of usernames
function getUsernames() {}

function authenticate($user,$pass,&$error) {
      $error = 'No user backend set';
      return false;
}

}

return;
?>


Generated by  Doxygen 1.6.0   Back to index