CommunityGroupsController
class CommunityGroupsController extends CommunityBaseController
Properties
$_modelInstances | from CommunityBaseController | ||
$_libraryInstances | from CommunityBaseController | ||
$_viewInstances | from CommunityBaseController | ||
$_name | from CommunityBaseController | ||
$my | from CommunityBaseController |
Methods
Sets a default value if not alreay assigned
Returns a property of the object or the default value if the property is not set.
Returns an associative array of object properties.
Get the most recent error message.
Modifies a property of the object, creating it if it does not already exist.
Set the object properties based on a named array/hash.
Adds to the stack of model paths in LIFO order.
Method to get a singleton controller instance.
Add one or more view paths to the controller's stack, in LIFO order.
Displays the default groups view
Return the model object, responsible for all db manipulation. Singleton
Get the last task that is being performed or was most recently performed.
Return the view object, which will output the final html. The view object is a singleton
Register the default task to perform if a mapping is not found.
Register (map) a task to a method in the class.
Sets the internal message that is passed with a redirect
Set a URL for browser redirection.
Deprecated since 1.8.x
A guest trying to use registered-only part of the system via ajax. Display a link to register
Call the View object to compose the resulting HTML display
Responsible to return necessary contents to the Invitation library so that it can add the mails into the queue
No description
No description
No description
No description
Method is called from the reporting library. Function calls should be registered here.
No description
Method is called from the reporting library. Function calls should be registered here.
No description
Full application view
Full application view for discussion
No description
No description
Ajax function to unpublish a group
Ajax function to delete a group
Ajax function to prompt warning during group deletion
Ajax function to remove a reply from the discussions
Ajax function to display the remove bulletin information
Ajax function to display the remove discussion information
No description
Ajax function to approve a specific member
No description
Ajax method to remove specific member
Ajax method to display HTML codes to leave group
Ajax function to display the join group
Ajax Method to remove specific wall from the specific group
Ajax function to add new admin to the group
Ajax function to add new admin to the group
No description
Ajax function to save a new wall entry
No description
No description
Ban the member from the group
Refactored from AjaxUnBanMember and AjaxBanMember
No description
Method to display the create group form
A new group has been created
Method to save the group
Method to search for a group based on the parameter given in a POST request
Ajax function call that allows user to leave group
Method is used to receive POST requests from specific user that wants to join a group
No description
Method that loads the viewing of a specific group
Show only current user group
No description
No description
Show full view of the news for the group
Show all news from specific groups
Show all discussions from specific groups
No description
Show discussion
Show Invite
No description
No description
Method to add a new discussion
No description
No description
No description
Displays send email form and processes the sendmail
No description
No description
Method is used to receive POST requests from specific user that wants to join a group
Details
in JController at line 292
JObject
__construct(array $config = array())
Constructor.
in JObject at line 56
string
__toString()
Magic method to convert the object to a string gracefully.
in JObject at line 70
mixed
def(string $property, mixed $default = null)
Sets a default value if not alreay assigned
in JObject at line 88
mixed
get(string $property, mixed $default = null)
Returns a property of the object or the default value if the property is not set.
in JObject at line 107
array
getProperties(boolean $public = true)
Returns an associative array of object properties.
in JObject at line 133
string
getError(integer $i = null, boolean $toString = true)
Get the most recent error message.
in JObject at line 165
array
getErrors()
Return all errors, if any.
in JObject at line 180
mixed
set(string $property, mixed $value = null)
Modifies a property of the object, creating it if it does not already exist.
in JObject at line 198
boolean
setProperties(mixed $properties)
Set the object properties based on a named array/hash.
in JObject at line 222
void
setError(string $error)
Add an error message.
in JObject at line 235
string
toString()
deprecated
deprecated
in JController at line 156
static void
addModelPath(mixed $path, string $prefix = '')
Adds to the stack of model paths in LIFO order.
in JController at line 212
static mixed
getInstance(string $prefix, array $config = array())
Method to get a singleton controller instance.
in JController at line 427
JController
addViewPath(mixed $path)
Add one or more view paths to the controller's stack, in LIFO order.
in JController at line 445
boolean
authorize(string $task)
deprecated
deprecated
Authorisation check
in JController at line 461
boolean
authorise(string $task)
Authorisation check
at line 313
JController
display()
Displays the default groups view
in CommunityBaseController at line 206
mixed
execute(string $task = '')
Execute a request
in CommunityBaseController at line 176
object
getModel(string $name = '', string $prefix = '', array $config = array())
Return the model object, responsible for all db manipulation. Singleton
in CommunityBaseController at line 29
string
getName()
Method to get the controller name
The dispatcher name is set by default parsed using the classname, or it can be set by passing a $config['name'] in the class constructor
in JController at line 761
string
getTask()
Get the last task that is being performed or was most recently performed.
in JController at line 772
array
getTasks()
Gets the available tasks in the controller.
in CommunityBaseController at line 139
object
getView($viewName = 'frontpage', string $prefix = '', $viewType = '')
Return the view object, which will output the final html. The view object is a singleton
in JController at line 857
boolean
redirect()
Redirects the browser or returns false if no redirect is set.
in JController at line 875
JController
registerDefaultTask(string $method)
Register the default task to perform if a mapping is not found.
in JController at line 891
JController
registerTask(string $task, string $method)
Register (map) a task to a method in the class.
in JController at line 908
JController
unregisterTask(string $task)
Unregister (unmap) a task in the class.
in JController at line 958
void
setAccessControl(string $section, string $value = null)
deprecated
deprecated
Sets the access control levels.
in JController at line 973
string
setMessage(string $text, string $type = 'message')
Sets the internal message that is passed with a redirect
in JController at line 1013
JController
setRedirect(string $url, string $msg = null, string $type = null)
Set a URL for browser redirection.
in CommunityBaseController at line 33
CommunityBaseController($config = array())
in CommunityBaseController at line 44
_notify($cmd, $from, $to, $subject, $body, $template = '', $params = '')
Deprecated since 1.8.x
in CommunityBaseController at line 54
ajaxBlockUnregister()
A guest trying to use registered-only part of the system via ajax. Display a link to register
in CommunityBaseController at line 78
blockUserAccess()
Block user access to the controller method.
in CommunityBaseController at line 95
blockUnregister($uri = null)
in CommunityBaseController at line 145
loadHelper($name)
in CommunityBaseController at line 149
getLibrary($name = '', $prefix = '', $config = array())
in CommunityBaseController at line 365
executeMobile($task = '')
in CommunityBaseController at line 421
executeAjax($method, $ajaxArg)
Execute ajax request
in CommunityBaseController at line 441
ajaxBlock()
restrict blocked user to access owner details
in CommunityBaseController at line 460
ajaxRestrictBlockAdmin()
restrict user to block community admin
in CommunityBaseController at line 476
cacheClean($cacheId)
at line 22
renderView(string $viewfunc, mixed $var = NULL)
Call the View object to compose the resulting HTML display
at line 38
inviteUsers($cid, $users, $emails, $message)
Responsible to return necessary contents to the Invitation library so that it can add the mails into the queue
at line 89
editGroupWall($wallId)
at line 111
editDiscussionWall($wallId)
at line 136
ajaxRemoveFeatured($groupId)
at line 176
ajaxAddFeatured($groupId)
at line 227
reportDiscussion($link, $message, $discussionId)
Method is called from the reporting library. Function calls should be registered here.
return String Message that will be displayed to user upon submission.
at line 245
removeDiscussion($discussionId)
at line 273
reportGroup($link, $message, $groupId)
Method is called from the reporting library. Function calls should be registered here.
return String Message that will be displayed to user upon submission.
at line 298
unpublishGroup($groupId)
at line 330
app()
Full application view
at line 340
discussApp()
Full application view for discussion
at line 347
ajaxAcceptInvitation($groupId)
at line 372
ajaxRejectInvitation($groupId)
at line 404
ajaxUnpublishGroup($groupId)
Ajax function to unpublish a group
at line 457
ajaxDeleteGroup($groupId, $step = 1)
Ajax function to delete a group
at line 652
ajaxWarnGroupDeletion($groupId)
Ajax function to prompt warning during group deletion
at line 678
ajaxRemoveReply($wallId)
Ajax function to remove a reply from the discussions
at line 732
ajaxShowRemoveBulletin($groupid, $bulletinId)
Ajax function to display the remove bulletin information
at line 767
ajaxShowRemoveDiscussion($groupid, $topicid)
Ajax function to display the remove discussion information
at line 799
ajaxShowLockDiscussion($groupid, $topicid)
at line 842
ajaxApproveMember($memberId, $groupId)
Ajax function to approve a specific member
at line 893
ajaxConfirmMemberRemoval($memberId, $groupId)
at line 940
ajaxRemoveMember($memberId, $groupId)
Ajax method to remove specific member
at line 1005
ajaxShowLeaveGroup($groupId)
Ajax method to display HTML codes to leave group
at line 1045
ajaxShowJoinGroup($groupId, $redirectUrl)
Ajax function to display the join group
at line 1104
ajaxRemoveWall(wallId $wallId)
Ajax Method to remove specific wall from the specific group
at line 1163
ajaxRemoveAdmin(memberid $memberId, groupid $groupId)
Ajax function to add new admin to the group
at line 1175
ajaxAddAdmin(memberid $memberId, groupid $groupId)
Ajax function to add new admin to the group
at line 1180
updateAdmin($memberId, $groupId, $doAdd = true)
at line 1223
ajaxSaveDiscussionWall(message $message, uniqueId $uniqueId)
Ajax function to save a new wall entry
at line 1366
ajaxSaveWall(message $message, uniqueId $groupId)
deprecated
deprecated
Ajax function to save a new wall entry
at line 1507
ajaxUpdateCount($type, $groupid)
at line 1539
ajaxUnbanMember($memberId, $groupId)
at line 1550
type
ajaxBanMember(type $memberId, type $groupId)
Ban the member from the group
at line 1558
updateMemberBan($memberId, $groupId, $doBan = true)
Refactored from AjaxUnBanMember and AjaxBanMember
at line 1610
edit()
at line 1745
create()
Method to display the create group form
at line 1819
created()
A new group has been created
at line 1917
false
save()
Method to save the group
at line 2095
search()
Method to search for a group based on the parameter given in a POST request
at line 2122
leaveGroup()
Ajax function call that allows user to leave group
at line 2170
void
joinGroup()
Method is used to receive POST requests from specific user that wants to join a group
at line 2258
uploadAvatar()
at line 2399
viewGroup()
Method that loads the viewing of a specific group
at line 2420
mygroups()
Show only current user group
at line 2438
myinvites()
at line 2452
viewmembers()
at line 2472
viewbulletin()
Show full view of the news for the group
at line 2490
viewbulletins()
Show all news from specific groups
at line 2508
viewdiscussions()
Show all discussions from specific groups
at line 2689
adddiscussion()
at line 2742
viewdiscussion()
Show discussion
at line 2758
invitefriends()
Show Invite
at line 2827
editDiscussion()
at line 2865
editNews()
at line 2920
addNews()
Method to add a new discussion
at line 3065
deleteTopic()
at line 3116
lockTopic()
at line 3164
deleteBulletin()
at line 3215
sendmail()
Displays send email form and processes the sendmail
at line 3300
triggerGroupEvents($eventName, $args, $target = null)
at line 3318
banlist()
at line 3332
void
ajaxJoinGroup($groupId, $fastJoin = 'no')
Method is used to receive POST requests from specific user that wants to join a group