/** build a authentication item out of an (database) array - internal method, do not use * this method returns a authentication item out of a row form the database * * @param array array array with information about the authentication out of the database table "auth" * * @return object cs_item a authentication item */ function _buildItem($array) { include_once 'classes/cs_auth_item.php'; $item = new cs_auth_item(); $item->setUserID($array['user_id']); $item->setPasswordMD5($array['password_md5']); $item->setFirstname($array['firstname']); $item->setLastname($array['lastname']); $item->setEMail($array['email']); $item->setLanguage($array['language']); $item->setPortalID($array['commsy_id']); return $item; }