CommunityViewGroups
class CommunityViewGroups extends CommunityView
Properties
$_info | from CommunityView | ||
$_warning | from CommunityView | ||
$_error | from CommunityView | ||
$_submenu | from CommunityView | ||
$title | from CommunityView | ||
$_mini | from CommunityView | ||
$params | from CommunityView | ||
$_showMiniHeaderUser | from CommunityView |
Methods
Sets a default value if not alreay assigned
Get the processed content
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.
Method to display listing of groups from the site
Method to add a model to the view. We support a multiple model single view system by which models are referenced by classname. A caveat to the classname referencing is that any classname prepended by JModel will be referenced by the name without JModel, eg. JModelCategory is just Category.
Allows a different extension for the layout files to be used
Adds to the stack of view script paths in LIFO order.
Adds to the stack of helper script paths in LIFO order.
Load a template file -- first look in the templates folder for an override
Append the given message into a global warning messages
No description
Deprecated since 2.2 Should use CToolbarLibrary::getHTML instead
No description
Check if current user has the correct permission to view the page.
Test if the application is viewable by the current browser.
This function will prep user info so that it can display user mini header in privacy warning template.
No description
No description
No description
Display invite form
Edit a group
Method to display group creation form
A group has just been created, should we just show the album ?
showGroupsFeaturedList
showGroupsCategory
showAllGroups
Application full view
Application full view
No description
No description
No description
Displays specific groups
No description
Method to display groups that belongs to a user.
No description
No description
No description
No description
Display a list of bulletins from the specific group
No description
View method to display members of the groups
View method to display discussions from a group
No description
View method to display specific discussion from a group
View method to display new discussion form
View method to display new discussion form
View method to search groups
Method to display add new bulletin form
No description
Details
in CommunityView at line 22
JObject
__construct($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 CommunityView at line 243
mixed
get(string $tplName, array $data = null, string $cached = false)
Get the processed content
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
at line 446
display($data)
Method to display listing of groups from the site
in JView at line 223
boolean
assign()
Assigns variables to the view script via differing strategies.
This method is overloaded; you can assign all the properties of an object, an associative array, or a single value by name.
You are not allowed to set variables that begin with an underscore; these are either private properties for JView or private variables within the template script itself.
$view = new JView;
// Assign directly $view->var1 = 'something'; $view->var2 = 'else';
// Assign by name and value $view->assign('var1', 'something'); $view->assign('var2', 'else');
// Assign by assoc-array $ary = array('var1' => 'something', 'var2' => 'else'); $view->assign($obj);
// Assign by object $obj = new stdClass; $obj->var1 = 'something'; $obj->var2 = 'else'; $view->assign($obj);
in JView at line 292
boolean
assignRef(string $key, mixed $val)
Assign variable for the view (by reference).
You are not allowed to set variables that begin with an underscore; these are either private properties for JView or private variables within the template script itself.
$view = new JView;
// Assign by name and value $view->assignRef('var1', $ref);
// Assign directly $view->ref = &$var1;
in JView at line 312
mixed
escape(mixed $var)
Escapes a value for output in a view script.
If escaping mechanism is either htmlspecialchars or htmlentities, uses {@link $_encoding} setting.
in JView at line 366
mixed
getModel(string $name = null)
Method to get the model object
in JView at line 379
string
getLayout()
Get the layout.
in JView at line 389
string
getLayoutTemplate()
Get the layout template.
in JView at line 403
string
getName()
Method to get the view name
The model name by default parsed using the classname, or it can be set by passing a $config['name'] in the class constructor
in JView at line 435
object
setModel(object $model, boolean $default = false)
Method to add a model to the view. We support a multiple model single view system by which models are referenced by classname. A caveat to the classname referencing is that any classname prepended by JModel will be referenced by the name without JModel, eg. JModelCategory is just Category.
in JView at line 454
string
setLayout(string $layout)
Sets the layout name to use
in JView at line 479
string
setLayoutExt(string $value)
Allows a different extension for the layout files to be used
in JView at line 493
setEscape(mixed $spec)
Sets the _escape() callback.
in JView at line 504
void
addTemplatePath(string|array $path)
Adds to the stack of view script paths in LIFO order.
in JView at line 515
void
addHelperPath(string|array $path)
Adds to the stack of helper script paths in LIFO order.
in JView at line 527
string
loadTemplate(string $tpl = null)
Load a template file -- first look in the templates folder for an override
in JView at line 610
boolean
loadHelper(string $hlp = null)
Load a helper file
in CommunityView at line 34
setTitle($title)
in CommunityView at line 43
addInfo(string $message)
Append the given message into a global info messages
in CommunityView at line 52
addPathway($text, $link = '')
Adds a pathway item to the breadcrumbs
in CommunityView at line 70
noAccess($notice = '')
Display no access notice
in CommunityView at line 83
addWarning(string $message)
Append the given message into a global warning messages
in CommunityView at line 89
attachMiniHeaderUser($userId)
in CommunityView at line 97
addSubmenuItem($link = '', $title = '', $onclick = '', $isAction = false, $childItem = '')
in CommunityView at line 139
showToolbar($data = null)
Deprecated since 2.2 Should use CToolbarLibrary::getHTML instead
in CommunityView at line 153
showToolbarMobile()
at line 182
showSubmenu()
in CommunityView at line 200
string
showHeader($title, $icon = null, $buttons = null)
Return the page header
in CommunityView at line 232
getSubMenu()
Return page submenu
in CommunityView at line 284
showLimitedProfile($userid)
Show profile with limited access view.
Just the box with links to add as friend etc
in CommunityView at line 314
bool
accessAllowed(string $type = '', bool $showWarning = true)
Check if current user has the correct permission to view the page.
We will validate access based on the current profile privacy setting and the access type give. Should be called by view
in CommunityView at line 459
bool
appPrivacyAllowed(string $privacy)
Test if the application is viewable by the current browser.
in CommunityView at line 493
_getMiniHeader()
Show profile miniheader
in CommunityView at line 505
_newNotification()
in CommunityView at line 538
_prepUser($user)
This function will prep user info so that it can display user mini header in privacy warning template.
Do not call this function outside this view.php
in CommunityView at line 561
getAppSearchLinks($currentApp = NULL)
in CommunityView at line 607
attachHeaders()
at line 15
_addGroupInPathway($groupId)
at line 25
sendmail()
at line 87
_addSubmenu()
at line 191
invitefriends()
Display invite form
at line 240
edit()
Edit a group
at line 313
create($data)
Method to display group creation form
at line 391
created()
A group has just been created, should we just show the album ?
at line 421
save(JTable $group)
Method to display output after saving group
at line 573
getGroupsFeaturedList()
showGroupsFeaturedList
at line 591
getGroupsCategories($category)
showGroupsCategory
at line 605
getShowAllGroups($category, $sorted)
showAllGroups
at line 621
discussAppFullView()
Application full view
at line 704
appFullView()
Application full view
at line 802
_getUnapproved($members)
at line 812
_getApproved($members)
at line 843
_isBanned($members, $myId)
at line 854
viewGroup($group)
Displays specific groups
at line 1240
uploadAvatar($data)
at line 1287
mygroups($userid)
Method to display groups that belongs to a user.
at line 1376
myinvites()
at line 1435
modPublicDiscussion($categoryId = null)
at line 1450
modUserDiscussion($userid)
at line 1515
viewbulletin()
at line 1600
viewbulletins()
Display a list of bulletins from the specific group
at line 1691
banlist($data)
at line 1703
viewmembers(string $data)
View method to display members of the groups
at line 1821
viewdiscussions()
View method to display discussions from a group
at line 1898
modRelatedDiscussion($keywords = null, $exclude = null)
at line 1927
viewdiscussion()
View method to display specific discussion from a group
at line 2105
adddiscussion(Object $discussion)
View method to display new discussion form
at line 2156
editdiscussion(Object $discussion)
View method to display new discussion form
at line 2213
search()
View method to search groups
at line 2286
addNews($bulletin)
Method to display add new bulletin form