EasyBlogModelTeamBlogs
extends EasyBlogAdminModel
in package
Table of Contents
Properties
- $_data : mixed
- $_pagination : mixed
- $_total : mixed
- $searchables : mixed
Methods
- __construct() : mixed
- _buildQuery() : string
- Method to build the query for the tags
- _buildQueryOrderBy() : mixed
- _buildQueryWhere() : mixed
- addTeamSubscription() : mixed
- checkIsTeamAdmin() : mixed
- deleteGroupRelations() : mixed
- Clear off any relations
- getAllMembers() : mixed
- getAllMembersCount() : mixed
- getAllTeams() : mixed
- Retrieves a list of teams that are associated with the specific user
- getBlogContributed() : mixed
- getCategories() : mixed
- Retrieves a list of categories for this team
- getMembers() : mixed
- Retrieves a list of team members from a team
- getMembersCount() : mixed
- Retrieve the members count
- getPagination() : int
- Method to get a pagination object for the categories
- getPostCount() : mixed
- Retrieves the total number of posts available in a team
- getPosts() : mixed
- Retrieves a list of posts from a specific team
- getPostTeam() : mixed
- Retrieves the team the blog post is posted into
- getPostTeamId() : mixed
- getRequests() : mixed
- Retrieves a list of team blog requests
- getSearchableItems() : mixed
- Get searchable columns
- getTeamBlogs() : array<string|int, mixed>
- Method to get teamblog item data
- getTeamJoined() : mixed
- Retrieves a list of teams the user joined
- getTeamMembers() : mixed
- Retrieves a list of team members from a team blog
- getTeams() : array<string|int, mixed>
- Method to get categories item data
- getTeamSubscribers() : mixed
- getTotal() : int
- Method to get the total nr of the categories
- getTotalRequest() : mixed
- getTotalTeamJoined() : mixed
- getUserGroups() : mixed
- Retrieves a list of Joomla User Groups associated with a team
- getUserStateFromRequest() : mixed
- Gets the value of a user state variable.
- getUserTeams() : mixed
- Retrieves a list of teams that are associated with the specific user
- isMember() : mixed
- Determines if the given user id is a member of a team
- isTeamAdmin() : mixed
- Determines if the user is a team blog admin
- isTeamSubscribedEmail() : mixed
- isTeamSubscribedUser() : mixed
- preloadPostCount() : mixed
- preloadPosts() : mixed
- preloadTeamMembers() : mixed
- preload team members
- preloadTotalMemberCount() : mixed
- removeAdmin() : mixed
- Remove admin right from team member
- removeMember() : mixed
- Remove memnber from the team
- setAdmin() : mixed
- Set member as admin
- updateTeamSubscriptionEmail() : mixed
- bindTable() : mixed
- implodeValues() : mixed
- populateState() : void
- Stock method to auto-populate the model state.
Properties
$_data
public
mixed
$_data
= \null
$_pagination
public
mixed
$_pagination
= \null
$_total
public
mixed
$_total
= \null
$searchables
public
mixed
$searchables
= array()
Methods
__construct()
public
__construct() : mixed
_buildQuery()
Method to build the query for the tags
public
_buildQuery() : string
Tags
Return values
string_buildQueryOrderBy()
public
_buildQueryOrderBy() : mixed
_buildQueryWhere()
public
_buildQueryWhere() : mixed
addTeamSubscription()
public
addTeamSubscription(mixed $teamId, mixed $email[, mixed $userId = '0' ][, mixed $fullname = '' ]) : mixed
Parameters
- $teamId : mixed
- $email : mixed
- $userId : mixed = '0'
- $fullname : mixed = ''
checkIsTeamAdmin()
public
checkIsTeamAdmin(mixed $userId[, mixed $teamId = '' ]) : mixed
Parameters
- $userId : mixed
- $teamId : mixed = ''
deleteGroupRelations()
Clear off any relations
public
deleteGroupRelations(mixed $id) : mixed
Parameters
- $id : mixed
Tags
getAllMembers()
public
getAllMembers(mixed $teamId[, mixed $limit = 0 ]) : mixed
Parameters
- $teamId : mixed
- $limit : mixed = 0
getAllMembersCount()
public
getAllMembersCount(mixed $teamId) : mixed
Parameters
- $teamId : mixed
getAllTeams()
Retrieves a list of teams that are associated with the specific user
public
getAllTeams([mixed $search = '' ][, mixed $limit = null ]) : mixed
Parameters
- $search : mixed = ''
- $limit : mixed = null
Tags
getBlogContributed()
public
getBlogContributed(mixed $postId) : mixed
Parameters
- $postId : mixed
getCategories()
Retrieves a list of categories for this team
public
getCategories(mixed $id) : mixed
Parameters
- $id : mixed
Tags
getMembers()
Retrieves a list of team members from a team
public
getMembers(mixed $id) : mixed
Parameters
- $id : mixed
Tags
getMembersCount()
Retrieve the members count
public
getMembersCount(mixed $id) : mixed
Parameters
- $id : mixed
Tags
getPagination()
Method to get a pagination object for the categories
public
getPagination() : int
Tags
Return values
intgetPostCount()
Retrieves the total number of posts available in a team
public
getPostCount(mixed $id) : mixed
Parameters
- $id : mixed
Tags
getPosts()
Retrieves a list of posts from a specific team
public
getPosts(mixed $id[, mixed $limit = null ]) : mixed
Parameters
- $id : mixed
- $limit : mixed = null
Tags
getPostTeam()
Retrieves the team the blog post is posted into
public
getPostTeam(mixed $postId) : mixed
Parameters
- $postId : mixed
Tags
getPostTeamId()
public
getPostTeamId(mixed $id) : mixed
Parameters
- $id : mixed
getRequests()
Retrieves a list of team blog requests
public
getRequests([mixed $userId = '' ][, mixed $useLimit = true ][, mixed $search = null ]) : mixed
Parameters
- $userId : mixed = ''
- $useLimit : mixed = true
- $search : mixed = null
Tags
getSearchableItems()
Get searchable columns
public
getSearchableItems(mixed $query) : mixed
Parameters
- $query : mixed
Tags
getTeamBlogs()
Method to get teamblog item data
public
getTeamBlogs([mixed $options = array() ]) : array<string|int, mixed>
Parameters
- $options : mixed = array()
Tags
Return values
array<string|int, mixed>getTeamJoined()
Retrieves a list of teams the user joined
public
getTeamJoined([mixed $id = null ]) : mixed
Parameters
- $id : mixed = null
Tags
getTeamMembers()
Retrieves a list of team members from a team blog
public
getTeamMembers(mixed $teamId) : mixed
Parameters
- $teamId : mixed
Tags
getTeams()
Method to get categories item data
public
getTeams() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getTeamSubscribers()
public
getTeamSubscribers(mixed $teamId) : mixed
Parameters
- $teamId : mixed
getTotal()
Method to get the total nr of the categories
public
getTotal() : int
Tags
Return values
intgetTotalRequest()
public
getTotalRequest() : mixed
getTotalTeamJoined()
public
getTotalTeamJoined(mixed $userId) : mixed
Parameters
- $userId : mixed
getUserGroups()
Retrieves a list of Joomla User Groups associated with a team
public
getUserGroups(mixed $teamId) : mixed
Parameters
- $teamId : mixed
Tags
getUserStateFromRequest()
Gets the value of a user state variable.
public
getUserStateFromRequest(mixed $key, mixed $request[, mixed $default = null ][, mixed $type = 'none' ]) : mixed
Parameters
- $key : mixed
- $request : mixed
- $default : mixed = null
- $type : mixed = 'none'
getUserTeams()
Retrieves a list of teams that are associated with the specific user
public
getUserTeams([mixed $userId = null ][, mixed $search = '' ][, mixed $limit = null ]) : mixed
Parameters
- $userId : mixed = null
- $search : mixed = ''
- $limit : mixed = null
Tags
isMember()
Determines if the given user id is a member of a team
public
isMember(mixed $teamId, mixed $userId) : mixed
Parameters
- $teamId : mixed
- $userId : mixed
Tags
isTeamAdmin()
Determines if the user is a team blog admin
public
isTeamAdmin(mixed $teamId[, mixed $userId = null ]) : mixed
Parameters
- $teamId : mixed
- $userId : mixed = null
Tags
isTeamSubscribedEmail()
public
isTeamSubscribedEmail(mixed $teamId, mixed $email) : mixed
Parameters
- $teamId : mixed
- $email : mixed
isTeamSubscribedUser()
public
isTeamSubscribedUser(mixed $teamId, mixed $userId, mixed $email) : mixed
Parameters
- $teamId : mixed
- $userId : mixed
- $email : mixed
preloadPostCount()
public
preloadPostCount(mixed $teamIds) : mixed
Parameters
- $teamIds : mixed
preloadPosts()
public
preloadPosts(mixed $teamIds[, mixed $limit = EASYBLOG_TEAMBLOG_LISTING_NO_POST ]) : mixed
Parameters
- $teamIds : mixed
- $limit : mixed = EASYBLOG_TEAMBLOG_LISTING_NO_POST
preloadTeamMembers()
preload team members
public
preloadTeamMembers(mixed $teamIds) : mixed
Parameters
- $teamIds : mixed
Tags
preloadTotalMemberCount()
public
preloadTotalMemberCount(mixed $teamIds) : mixed
Parameters
- $teamIds : mixed
removeAdmin()
Remove admin right from team member
public
removeAdmin(mixed $userId, mixed $teamId) : mixed
Parameters
- $userId : mixed
- $teamId : mixed
Tags
removeMember()
Remove memnber from the team
public
removeMember(mixed $userId, mixed $teamId) : mixed
Parameters
- $userId : mixed
- $teamId : mixed
Tags
setAdmin()
Set member as admin
public
setAdmin(mixed $userId, mixed $teamId) : mixed
Parameters
- $userId : mixed
- $teamId : mixed
Tags
updateTeamSubscriptionEmail()
public
updateTeamSubscriptionEmail(mixed $sid, mixed $userId, mixed $email) : mixed
Parameters
- $sid : mixed
- $userId : mixed
- $email : mixed
bindTable()
protected
bindTable(mixed $tableName, mixed $result) : mixed
Parameters
- $tableName : mixed
- $result : mixed
implodeValues()
protected
implodeValues(mixed $data) : mixed
Parameters
- $data : mixed
populateState()
Stock method to auto-populate the model state.
protected
populateState() : void