Object model

From ReservesDirect: Open Source EReserves System

Home :: Features :: Screenshots :: Demo (http://www.reservesdirect.org/demo/index.html) :: Documentation :: Downloads :: Support :: Blog (http://www.reservesdirect.org/blog) :: Join Us!
ReservesDirect Documentation:   Contents | Library staff handbook | System administrator handbook | Developer handbook


Table of contents

course

Attributes

  • courseAliasID (int)
  • courseID (int)
  • courseNo (int)
  • department (string)
  • departID (int)
  • name (string)
  • notes (array)
  • section (int)

Methods

  • Insert Methods Here

user

Attributes

  • dfltRole (int)
  • email (string)
  • firstName (string)
  • lastLogin (date)
  • lastName (string)
  • notes (array)
  • userID (int)
  • userName (string)

Methods

  • createUser($userName, $firstName="", $lastName="", $email="", $dfltRole=0) void
    • Inserts a new user record into the users table of the database
    • Returns an error code if user already exists in the database
  • destroy() void
  • getDefaultRole() int
  • getEmail()
  • getFirstName()
  • getLastLogin()
  • getLastName()
  • getLibraries()
  • getName()
  • getNotes() void
  • getUserByID(int $userID) void
  • getUserByUserName(string $userName)
  • getUserClass()
  • getUserID()
  • getUsername()
  • isSpecialUser()
  • setDefaultRole(int $dfltRole) void
  • setEmail(string $email)
  • setFirstName(string $firstName) void
  • setLastLogin() void
  • setLastName(string $lastName) void
  • setNote($noteID=NULL, string $type, string $noteText) void
  • setUserName(string $userName) void
  • user($userID = NULL) void

Child Classes

  • student
    • custodian
    • proxy
      • instructor
        • staff
          • admin