Remove leftover definition sub stubs.
This commit is contained in:
parent
bc71165a16
commit
ffb7945c34
5 changed files with 0 additions and 109 deletions
|
|
@ -66,38 +66,6 @@ These methods are available from this class
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
|
||||||
|
|
||||||
=head2 definition ( session, definition )
|
|
||||||
|
|
||||||
Define the properties of all GalleryFile assets.
|
|
||||||
|
|
||||||
=cut
|
|
||||||
|
|
||||||
sub definition {
|
|
||||||
my $class = shift;
|
|
||||||
my $session = shift;
|
|
||||||
my $definition = shift;
|
|
||||||
my $i18n = WebGUI::International->new($session,'Asset_Photo');
|
|
||||||
|
|
||||||
tie my %properties, 'Tie::IxHash', (
|
|
||||||
);
|
|
||||||
|
|
||||||
# UserDefined Fields
|
|
||||||
for my $i (1 .. 5) {
|
|
||||||
$properties{"userDefined".$i} = {
|
|
||||||
defaultValue => undef,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
push @{$definition}, {
|
|
||||||
className => 'WebGUI::Asset::File::GalleryFile',
|
|
||||||
properties => \%properties,
|
|
||||||
};
|
|
||||||
|
|
||||||
return $class->SUPER::definition($session, $definition);
|
|
||||||
}
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 appendTemplateVarsCommentForm ( var [, comment ] )
|
=head2 appendTemplateVarsCommentForm ( var [, comment ] )
|
||||||
|
|
|
||||||
|
|
@ -336,24 +336,6 @@ sub cut {
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
|
||||||
sub definition {
|
|
||||||
my $class = shift;
|
|
||||||
my $session = shift;
|
|
||||||
my $definition = shift;
|
|
||||||
my $i18n = WebGUI::International->new($session,"Asset_Post");
|
|
||||||
|
|
||||||
my $properties = {
|
|
||||||
};
|
|
||||||
|
|
||||||
push(@{$definition}, {
|
|
||||||
className=>'WebGUI::Asset::Post',
|
|
||||||
properties=>$properties,
|
|
||||||
});
|
|
||||||
return $class->SUPER::definition($session,$definition);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 DESTROY
|
=head2 DESTROY
|
||||||
|
|
|
||||||
|
|
@ -219,19 +219,6 @@ sub canManage {
|
||||||
return $self->canEdit;
|
return $self->canEdit;
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
|
||||||
sub definition {
|
|
||||||
my $class = shift;
|
|
||||||
my $session = shift;
|
|
||||||
my $definition = shift;
|
|
||||||
my $i18n = WebGUI::International->new($session,"Asset_Shortcut");
|
|
||||||
push(@{$definition}, {
|
|
||||||
properties=>{
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return $class->SUPER::definition($session,$definition);
|
|
||||||
}
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 discernUserId
|
=head2 discernUserId
|
||||||
|
|
|
||||||
|
|
@ -111,26 +111,6 @@ sub canPersonalize {
|
||||||
return $self->session->user->isInGroup($self->usersGroupId);
|
return $self->session->user->isInGroup($self->usersGroupId);
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
|
||||||
sub definition {
|
|
||||||
my $class = shift;
|
|
||||||
my $session = shift;
|
|
||||||
my $definition = shift;
|
|
||||||
my $i18n = WebGUI::International->new($session,"Asset_Dashboard");
|
|
||||||
|
|
||||||
my %properties;
|
|
||||||
%properties = (
|
|
||||||
);
|
|
||||||
|
|
||||||
push(@{$definition}, {
|
|
||||||
className => 'WebGUI::Asset::Wobject::Dashboard',
|
|
||||||
properties => \%properties,
|
|
||||||
autoGenerateForms => 1,
|
|
||||||
});
|
|
||||||
|
|
||||||
return $class->SUPER::definition($session, $definition);
|
|
||||||
}
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 discernUserId
|
=head2 discernUserId
|
||||||
|
|
|
||||||
|
|
@ -153,32 +153,6 @@ sub canPostStories {
|
||||||
return $user->isInGroup($self->groupToPost) || $self->canEdit($userId);
|
return $user->isInGroup($self->groupToPost) || $self->canEdit($userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
|
||||||
|
|
||||||
=head2 definition ( )
|
|
||||||
|
|
||||||
defines wobject properties for New Wobject instances. You absolutely need
|
|
||||||
this method in your new Wobjects. If you choose to "autoGenerateForms", the
|
|
||||||
getEditForm method is unnecessary/redundant/useless.
|
|
||||||
|
|
||||||
=cut
|
|
||||||
|
|
||||||
sub definition {
|
|
||||||
my $class = shift;
|
|
||||||
my $session = shift;
|
|
||||||
my $definition = shift;
|
|
||||||
my $i18n = WebGUI::International->new($session, 'Asset_StoryArchive');
|
|
||||||
my %properties;
|
|
||||||
%properties = (
|
|
||||||
);
|
|
||||||
push(@{$definition}, {
|
|
||||||
className=>'WebGUI::Asset::Wobject::StoryArchive',
|
|
||||||
properties=>\%properties,
|
|
||||||
});
|
|
||||||
return $class->SUPER::definition($session, $definition);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 exportAssetCollateral (basePath, params, session)
|
=head2 exportAssetCollateral (basePath, params, session)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue