> For the complete documentation index, see [llms.txt](https://playground.e107sk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://playground.e107sk.com/e107-efiction-integration/outdated/authors-class.md).

# efiction\_authors

## e\_module.php

```
e107::getSingleton('efiction_authors', e_PLUGIN.'efiction/classes/authors.class.php'); 
```

## get\_authors\_list()

```
$authors = efiction_authors::get_authors_list();
```

| Used in                  | Description                                   | From version |
| ------------------------ | --------------------------------------------- | ------------ |
| `{STORY_EDIT_AUTHOR}`    | get the list of authors (only for main admin) | ✅1.0.2       |
| `{STORY_EDIT_COAUTHORS}` | get the list of coauthors                     | ✅1.0.2       |

## get\_single\_author($uid = null)

Full author data related to efiction author ID&#x20;

```
$authordata = efiction_authors::get_single_author($author_uid);
```

| Used in                     | Description               | From version |
| --------------------------- | ------------------------- | ------------ |
| inc/get\_*session\_var.php* | setting access, constants | ✅1.0.3       |

## get\_single\_author\_by\_user($user\_id = null)

```
$authordata = efiction_authors::get_single_author_by_user($udata['user_id']); 
```

| Used in     | Description                    | From version |
| ----------- | ------------------------------ | ------------ |
| e\_user.php | prepared for e107 user profile | ✅1.0.2       |

## get\_user\_id\_by\_author($user\_id = null)

Just e107 user ID by author ID

```
$userinfo['user_id'] = fiction_authors::get_user_id_by_author($uid); 
```

| Used in      | Description                                     | From version |
| ------------ | ----------------------------------------------- | ------------ |
| viewuser.php | Displaying e107 user data on the author profile | ✅1.0.2       |
