> For the complete documentation index, see [llms.txt](https://docs.clipbucket.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clipbucket.com/fundamentals/basic-understandings/user-class-and-functions.md).

# User Class & Functions

```
//Class is initated as  $userquery
$userquery->get_user_details($userid);
```

Absolute Path of the Class File **/includes/classes/videos.class.php**

Absolute Path of the functions file **/includes/functions\_videos.php**

| Object Methods                                               | Functions        |                                                                                           |
| ------------------------------------------------------------ | ---------------- | ----------------------------------------------------------------------------------------- |
| ::get\_basic\_fields                                         |                  | Get the basic fields that are required in a user object                                   |
| ::login\_user($username, $password, $remember)               |                  | Used to login user with username and Password.                                            |
| ::login*check($access, $check\_only, $verify\_logged\_user)* |                  | Very important, basically its to see if user has Access to a page, the name is confusing. |
| ::logout                                                     |                  | logs out user                                                                             |
| ::delete\_user(int $int)                                     |                  | Delete's user                                                                             |
| ::get\_user\_details($id)                                    |                  | Fetches the user information                                                              |
| ::get\_logged\_username                                      | get\_username(); | Fetches logged in username                                                                |
|                                                              | get\_userid();   | get logged in userid                                                                      |
| ::signup\_user(array $params)                                |                  | Add New User                                                                              |
