efiction_authors

Authors class is loaded in e_module and it is available then for all site, not only for efiction module (admin area too)

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

$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

Last updated