EasyBlogTableTeamBlog
extends EasyBlogTable
in package
Table of Contents
Properties
- $access : mixed
- $alias : mixed
- $allow_join : mixed
- $avatar : mixed
- $created : mixed
- $description : mixed
- $id : mixed
- $published : mixed
- $title : mixed
- $_supportNullValue : mixed
Methods
- __construct() : mixed
- aliasExists() : mixed
- allowSubscription() : mixed
- bind() : mixed
- Binds the posted data with the object
- canJoin() : mixed
- Determine if user can join this team
- canRemoveMember() : mixed
- Determine if user can remove member from the team
- delete() : mixed
- Override the parent's delete method as we want to apply our own logics
- deleteGroup() : mixed
- deleteMembers() : mixed
- getAccess() : mixed
- Get Team Access Type
- getAlias() : mixed
- Retrieves the alias of
- getAllMembersCount() : mixed
- Returns the total number of members in a team including users from associated joomla groups.
- getAtom() : mixed
- Retrieves the atom link for the team blog
- getAvatar() : mixed
- Retrieves the team blog's avatar
- getCategories() : mixed
- Retrieves a list of categories in this team
- getDBO() : mixed
- Retrieves the database object
- getDescription() : mixed
- getEditPermalink() : mixed
- Retrieves the edit permalink of a team blog
- getExternalPermalink() : mixed
- Retrieves the external permalink for this team
- getGroups() : mixed
- Retrieves a list of Joomla user groups that is linked to this team
- getInstance() : mixed
- Tired of fixing conflicts with JTable::getInstance . We'll overload their method here.
- getMemberCount() : mixed
- Use @getMembersCount instead
- getMembers() : mixed
- Retrieves a list of team members from this team
- getMembersCount() : mixed
- Returns the total number of members in a team
- getParams() : mixed
- Generic method to retrive raw json params from the table
- getPermalink() : mixed
- Retrieves the permalink of a team blog
- getPostCount() : mixed
- Retrieves the total number of posts available in this team
- getRSS() : mixed
- Retrieves the rss link for team blog
- getRssLink() : mixed
- Retrieves rss link for the category
- getTags() : mixed
- Retrieve a list of tags created by this team
- getTitle() : mixed
- Get the title of the team
- includeTitleDesc() : mixed
- Determines whether to include title and description in toolbar
- isActualMember() : mixed
- Determine if user is the actual member of this team
- isFeatured() : mixed
- Determines if the team is featured
- isMember() : mixed
- Determines if the user or group is part of a team
- isPostOwner() : mixed
- Determines whether the current blog entry belongs to the team.
- isPublished() : mixed
- Get publish state
- isTeamAdmin() : mixed
- Determines if the user is a team admin.
- load() : mixed
- reset() : void
- Method to reset class properties to the defaults set in the class definition. It will ignore the primary key as well as any private class properties.
- store() : mixed
- On Joomla 4, if table object contains array or objects, storing is problematic unlike Joomla 3.
- toArray() : mixed
- Converts a table layer into an array
- unpublish() : mixed
- Method to unpublish teams
- uploadAvatar() : mixed
- Uploads a team avatar
- viewable() : mixed
- Determines if the team's content is viewable
Properties
$access
public
mixed
$access
= \null
$alias
public
mixed
$alias
= ''
$allow_join
public
mixed
$allow_join
= \null
$avatar
public
mixed
$avatar
= \null
$created
public
mixed
$created
= \null
$description
public
mixed
$description
= \null
$id
public
mixed
$id
= ''
$published
public
mixed
$published
= \null
$title
public
mixed
$title
= ''
$_supportNullValue
protected
mixed
$_supportNullValue
= true
Methods
__construct()
public
__construct(mixed &$db) : mixed
Parameters
- $db : mixed
aliasExists()
public
aliasExists() : mixed
allowSubscription()
public
allowSubscription(mixed $access, mixed $userid, mixed $ismember[, mixed $aclallowsubscription = false ]) : mixed
Parameters
- $access : mixed
- $userid : mixed
- $ismember : mixed
- $aclallowsubscription : mixed = false
bind()
Binds the posted data with the object
public
bind(mixed $data[, mixed $ignore = [] ]) : mixed
Parameters
- $data : mixed
- $ignore : mixed = []
Tags
canJoin()
Determine if user can join this team
public
canJoin() : mixed
Tags
canRemoveMember()
Determine if user can remove member from the team
public
canRemoveMember([mixed $memberId = null ]) : mixed
Parameters
- $memberId : mixed = null
Tags
delete()
Override the parent's delete method as we want to apply our own logics
public
delete([mixed $pk = null ]) : mixed
Parameters
- $pk : mixed = null
Tags
deleteGroup()
public
deleteGroup([mixed $groupId = '' ]) : mixed
Parameters
- $groupId : mixed = ''
deleteMembers()
public
deleteMembers([mixed $userId = '' ]) : mixed
Parameters
- $userId : mixed = ''
getAccess()
Get Team Access Type
public
getAccess() : mixed
Tags
getAlias()
Retrieves the alias of
public
getAlias() : mixed
Tags
getAllMembersCount()
Returns the total number of members in a team including users from associated joomla groups.
public
getAllMembersCount() : mixed
Tags
getAtom()
Retrieves the atom link for the team blog
public
getAtom() : mixed
Tags
getAvatar()
Retrieves the team blog's avatar
public
getAvatar() : mixed
Tags
getCategories()
Retrieves a list of categories in this team
public
getCategories() : mixed
Tags
getDBO()
Retrieves the database object
public
getDBO() : mixed
Tags
getDescription()
public
getDescription([mixed $raw = false ]) : mixed
Parameters
- $raw : mixed = false
getEditPermalink()
Retrieves the edit permalink of a team blog
public
getEditPermalink([mixed $xhtml = true ]) : mixed
Parameters
- $xhtml : mixed = true
Tags
getExternalPermalink()
Retrieves the external permalink for this team
public
getExternalPermalink() : mixed
Tags
getGroups()
Retrieves a list of Joomla user groups that is linked to this team
public
getGroups() : mixed
Tags
getInstance()
Tired of fixing conflicts with JTable::getInstance . We'll overload their method here.
public
static getInstance(string $type[, string $prefix = 'JTable' ][, array<string|int, mixed> $config = [] ]) : mixed
Parameters
- $type : string
-
The type (name) of the JTable class to get an instance of.
- $prefix : string = 'JTable'
-
An optional prefix for the table class name.
- $config : array<string|int, mixed> = []
-
An optional array of configuration values for the JTable object.
Tags
Return values
mixed —A JTable object if found or boolean false if one could not be found.
getMemberCount()
Use @getMembersCount instead
public
getMemberCount() : mixed
getMembers()
Retrieves a list of team members from this team
public
getMembers() : mixed
Tags
getMembersCount()
Returns the total number of members in a team
public
getMembersCount() : mixed
Tags
getParams()
Generic method to retrive raw json params from the table
public
final getParams() : mixed
Tags
getPermalink()
Retrieves the permalink of a team blog
public
getPermalink() : mixed
Tags
getPostCount()
Retrieves the total number of posts available in this team
public
getPostCount() : mixed
Tags
getRSS()
Retrieves the rss link for team blog
public
getRSS() : mixed
Tags
getRssLink()
Retrieves rss link for the category
public
getRssLink() : mixed
Tags
getTags()
Retrieve a list of tags created by this team
public
getTags() : mixed
getTitle()
Get the title of the team
public
getTitle() : mixed
Tags
includeTitleDesc()
Determines whether to include title and description in toolbar
public
includeTitleDesc() : mixed
Tags
isActualMember()
Determine if user is the actual member of this team
public
isActualMember([mixed $userId = null ]) : mixed
Parameters
- $userId : mixed = null
Tags
isFeatured()
Determines if the team is featured
public
isFeatured() : mixed
Tags
isMember()
Determines if the user or group is part of a team
public
isMember(mixed $userId[, mixed $gid = '' ][, mixed $findTeamAccess = true ]) : mixed
Parameters
- $userId : mixed
- $gid : mixed = ''
- $findTeamAccess : mixed = true
Tags
isPostOwner()
Determines whether the current blog entry belongs to the team.
public
isPostOwner(mixed $postId) : mixed
Parameters
- $postId : mixed
Tags
isPublished()
Get publish state
public
isPublished() : mixed
Tags
isTeamAdmin()
Determines if the user is a team admin.
public
isTeamAdmin([mixed $userId = null ]) : mixed
Parameters
- $userId : mixed = null
Tags
load()
public
load([mixed $key = null ][, mixed $permalink = false ]) : mixed
Parameters
- $key : mixed = null
- $permalink : mixed = false
reset()
Method to reset class properties to the defaults set in the class definition. It will ignore the primary key as well as any private class properties.
public
reset() : void
Tags
store()
On Joomla 4, if table object contains array or objects, storing is problematic unlike Joomla 3.
public
store([mixed $updateNulls = false ]) : mixed
To fix Joomla 4 storing issues, we override the store behavior and normalize the fields accordingly.
Parameters
- $updateNulls : mixed = false
Tags
toArray()
Converts a table layer into an array
public
toArray() : mixed
Tags
unpublish()
Method to unpublish teams
public
unpublish([mixed $pks = null ][, mixed $state = false ]) : mixed
Parameters
- $pks : mixed = null
- $state : mixed = false
Tags
uploadAvatar()
Uploads a team avatar
public
uploadAvatar(mixed $file) : mixed
Parameters
- $file : mixed
Tags
viewable()
Determines if the team's content is viewable
public
viewable([mixed $userId = '' ]) : mixed
Parameters
- $userId : mixed = ''