fixing POD issues, User test
This commit is contained in:
parent
2a40ab2e6c
commit
586fdb0ec6
9 changed files with 62 additions and 64 deletions
|
|
@ -39,11 +39,11 @@ public store => my %store; #This is an all purpose hash to store stuff in:
|
|||
|
||||
=head2 appendCommonVars ( var )
|
||||
|
||||
Appends common template variables that all most templates will use
|
||||
|
||||
Appends common template variables that all most templates will use
|
||||
|
||||
=head3 var
|
||||
|
||||
The hash reference to append template variables to
|
||||
The hash reference to append template variables to
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -203,7 +203,7 @@ sub displayContent {
|
|||
|
||||
=head2 canView ( )
|
||||
|
||||
Override this method to create permission levels for your Account Pluggin
|
||||
Override this method to create permission levels for your Account Pluggin
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -216,7 +216,7 @@ sub canView {
|
|||
|
||||
=head2 editSettingsForm ( )
|
||||
|
||||
Override this method to create settings for your Account Pluggin
|
||||
Override this method to create settings for your Account Pluggin
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -229,7 +229,7 @@ sub editSettingsForm {
|
|||
|
||||
=head2 editSettingsFormSave ( )
|
||||
|
||||
Override this method to create settings for your Account Pluggin
|
||||
Override this method to create settings for your Account Pluggin
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -242,7 +242,7 @@ sub editSettingsFormSave {
|
|||
|
||||
=head2 getLayoutTemplateId ( )
|
||||
|
||||
Override this method to return the template Id for the account layout.
|
||||
Override this method to return the template Id for the account layout.
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -255,7 +255,7 @@ sub getLayoutTemplateId {
|
|||
|
||||
=head2 getStyleTemplate ( )
|
||||
|
||||
Override this method to return the template for the main style.
|
||||
Override this method to return the template for the main style.
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -269,17 +269,17 @@ sub getStyleTemplateId {
|
|||
|
||||
=head2 getUrl ( [pairs,appendUID] )
|
||||
|
||||
Builds the url for the current page.
|
||||
Builds the url for the current page.
|
||||
|
||||
=head3 pairs
|
||||
|
||||
name value pairs to append to the page url. If pairs is not passed in
|
||||
the current module and do values will be used.
|
||||
name value pairs to append to the page url. If pairs is not passed in
|
||||
the current module and do values will be used.
|
||||
|
||||
=head3 appendUID
|
||||
|
||||
If this flag is set and uid is passed along the url, the uid passed in will be
|
||||
appended to the end of it to the end of the url
|
||||
If this flag is set and uid is passed along the url, the uid passed in will be
|
||||
appended to the end of it to the end of the url
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -401,7 +401,7 @@ sub processTemplate {
|
|||
|
||||
=head2 showError ( vars )
|
||||
|
||||
Returns a general error screen with the message passed in.
|
||||
Returns a general error screen with the message passed in.
|
||||
|
||||
=head3 vars
|
||||
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@ These subroutines are available from this package:
|
|||
|
||||
=head2 appendCommonVars ( var )
|
||||
|
||||
Appends common template variables that all inbox templates use
|
||||
|
||||
Appends common template variables that all inbox templates use
|
||||
|
||||
=head3 var
|
||||
|
||||
The hash reference to append template variables to
|
||||
The hash reference to append template variables to
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -57,7 +57,7 @@ sub appendCommonVars {
|
|||
|
||||
=head2 canView ( )
|
||||
|
||||
Whether or not the current user can view this user's friends
|
||||
Whether or not the current user can view this user's friends
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ sub canView {
|
|||
|
||||
=head2 editSettingsForm ( )
|
||||
|
||||
Creates form elements for user settings page custom to this account module
|
||||
Creates form elements for user settings page custom to this account module
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -155,7 +155,7 @@ sub editSettingsForm {
|
|||
|
||||
=head2 editSettingsFormSave ( )
|
||||
|
||||
Creates form elements for user settings page custom to this account module
|
||||
Creates form elements for user settings page custom to this account module
|
||||
|
||||
=cut
|
||||
|
||||
|
|
|
|||
|
|
@ -32,15 +32,15 @@ These subroutines are available from this package:
|
|||
|
||||
=head2 appendCommonVars ( var, inbox )
|
||||
|
||||
Appends common template variables that all inbox templates use
|
||||
|
||||
Appends common template variables that all inbox templates use
|
||||
|
||||
=head3 var
|
||||
|
||||
The hash reference to append template variables to
|
||||
The hash reference to append template variables to
|
||||
|
||||
=head3 inbox
|
||||
|
||||
The instance of the inbox currently being worked with.
|
||||
The instance of the inbox currently being worked with.
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ sub appendCommonVars {
|
|||
|
||||
=head2 canView ( )
|
||||
|
||||
Returns whether or not the user can view the inbox tab
|
||||
Returns whether or not the user can view the inbox tab
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ sub canView {
|
|||
|
||||
=head2 editSettingsForm ( )
|
||||
|
||||
Creates form elements for user settings page custom to this account module
|
||||
Creates form elements for user settings page custom to this account module
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -225,7 +225,7 @@ sub editSettingsForm {
|
|||
|
||||
=head2 editSettingsFormSave ( )
|
||||
|
||||
Creates form elements for user settings page custom to this account module
|
||||
Creates form elements for user settings page custom to this account module
|
||||
|
||||
=cut
|
||||
|
||||
|
|
|
|||
|
|
@ -32,23 +32,23 @@ These subroutines are available from this package:
|
|||
|
||||
=head2 appendCategoryVars ( var, category [,fields, errors] )
|
||||
|
||||
Appends cateogry variables to the hash ref passed in
|
||||
|
||||
Appends cateogry variables to the hash ref passed in
|
||||
|
||||
=head3 var
|
||||
|
||||
The hash reference to append template variables to
|
||||
The hash reference to append template variables to
|
||||
|
||||
=head3 category
|
||||
|
||||
WebGUI::ProfileCategory object to append variables for
|
||||
WebGUI::ProfileCategory object to append variables for
|
||||
|
||||
=head3 fields
|
||||
|
||||
Optional array ref of fields in this category
|
||||
Optional array ref of fields in this category
|
||||
|
||||
=head3 errors
|
||||
|
||||
Optional array ref of errors to attach to the category loop
|
||||
Optional array ref of errors to attach to the category loop
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -95,11 +95,11 @@ sub appendCategoryVars {
|
|||
|
||||
=head2 appendCommonVars ( var )
|
||||
|
||||
Appends common template variables that all profile templates use
|
||||
|
||||
Appends common template variables that all profile templates use
|
||||
|
||||
=head3 var
|
||||
|
||||
The hash reference to append template variables to
|
||||
The hash reference to append template variables to
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -137,7 +137,7 @@ sub appendCommonVars {
|
|||
|
||||
=head2 editSettingsForm ( )
|
||||
|
||||
Creates form elements for user settings page custom to this account module
|
||||
Creates form elements for user settings page custom to this account module
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -193,7 +193,7 @@ sub editSettingsForm {
|
|||
|
||||
=head2 editSettingsFormSave ( )
|
||||
|
||||
Creates form elements for user settings page custom to this account module
|
||||
Creates form elements for user settings page custom to this account module
|
||||
|
||||
=cut
|
||||
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@ These methods are available from this class:
|
|||
|
||||
=head2 appendCommonVars ( var )
|
||||
|
||||
Appends common template variables that shop templates will use
|
||||
|
||||
Appends common template variables that shop templates will use
|
||||
|
||||
=head3 var
|
||||
|
||||
The hash reference to append template variables to
|
||||
The hash reference to append template variables to
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ sub appendCommonVars {
|
|||
|
||||
=head2 canView ( )
|
||||
|
||||
Returns whether or not the user can view the the tab for this module
|
||||
Returns whether or not the user can view the the tab for this module
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ sub canView {
|
|||
|
||||
=head2 editSettingsForm ( )
|
||||
|
||||
Creates form elements for user settings page custom to this account module
|
||||
Creates form elements for user settings page custom to this account module
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ sub editSettingsForm {
|
|||
|
||||
=head2 editSettingsFormSave ( )
|
||||
|
||||
Creates form elements for the settings page custom to this account module
|
||||
Creates form elements for the settings page custom to this account module
|
||||
|
||||
=cut
|
||||
|
||||
|
|
|
|||
|
|
@ -27,10 +27,10 @@ use base 'WebGUI::Asset::Wobject';
|
|||
|
||||
Returns true if able to add MatrixListings.
|
||||
|
||||
Checks to make sure that the
|
||||
Calendar has been committed at least once. Checks to make sure that
|
||||
the user is in the appropriate group (either the group that can edit
|
||||
the calendar, or the group that can edit events in the calendar).
|
||||
Checks to make sure that the
|
||||
Calendar has been committed at least once. Checks to make sure that
|
||||
the user is in the appropriate group (either the group that can edit
|
||||
the calendar, or the group that can edit events in the calendar).
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -38,18 +38,16 @@ sub canAddMatrixListing {
|
|||
my $self = shift;
|
||||
|
||||
return 1;
|
||||
=cut
|
||||
my $userId = shift;
|
||||
|
||||
my $user = $userId
|
||||
? WebGUI::User->new( $self->session, $userId )
|
||||
: $self->session->user
|
||||
;
|
||||
|
||||
return 1 if (
|
||||
$user->isInGroup( $self->get("groupIdEventEdit") )
|
||||
);
|
||||
=cut
|
||||
# my $userId = shift;
|
||||
#
|
||||
# my $user = $userId
|
||||
# ? WebGUI::User->new( $self->session, $userId )
|
||||
# : $self->session->user
|
||||
# ;
|
||||
#
|
||||
# return 1 if (
|
||||
# $user->isInGroup( $self->get("groupIdEventEdit") )
|
||||
# );
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -63,11 +63,11 @@ These subroutines are available from this package:
|
|||
|
||||
Creates an instance of an account pluggin
|
||||
|
||||
=session
|
||||
=head3 session
|
||||
|
||||
WebGUI::Session object
|
||||
|
||||
=module
|
||||
=head3 module
|
||||
|
||||
Module the method is in. Defaults to the profileModuleIdentifier in the config file
|
||||
|
||||
|
|
|
|||
|
|
@ -328,7 +328,7 @@ The number of rows to display per page. If left blank it defaults to 25.
|
|||
|
||||
Specify the form variable the paginator should use in its links. Defaults to "pn".
|
||||
|
||||
=head pageNumber
|
||||
=head4 pageNumber
|
||||
|
||||
By default the page number will be determined by looking at $self->session->form->process("pn"). If that is empty the page number will be defaulted to "1". If you'd like to override the page number specify it here.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue