remove duplicate definition subroutine
This commit is contained in:
parent
cb63756dce
commit
b269fc2b30
1 changed files with 0 additions and 94 deletions
|
|
@ -104,100 +104,6 @@ sub cascadeLineage {
|
||||||
$descendants->finish;
|
$descendants->finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
|
||||||
|
|
||||||
=head2 definition ( [ definition ] )
|
|
||||||
|
|
||||||
Basic definition of an Asset. Properties, default values. Returns an array reference containing tableName,className,properties
|
|
||||||
|
|
||||||
=head3 definition
|
|
||||||
|
|
||||||
An array reference containing additional information to include with the default definition.
|
|
||||||
|
|
||||||
=cut
|
|
||||||
|
|
||||||
sub definition {
|
|
||||||
my $class = shift;
|
|
||||||
my $definition = shift || [];
|
|
||||||
push(@{$definition}, {
|
|
||||||
assetName=>WebGUI::International::get("asset","Asset"),
|
|
||||||
tableName=>'assetData',
|
|
||||||
className=>'WebGUI::Asset',
|
|
||||||
icon=>'assets.gif',
|
|
||||||
properties=>{
|
|
||||||
title=>{
|
|
||||||
fieldType=>'text',
|
|
||||||
defaultValue=>undef
|
|
||||||
},
|
|
||||||
menuTitle=>{
|
|
||||||
fieldType=>'text',
|
|
||||||
defaultValue=>undef
|
|
||||||
},
|
|
||||||
synopsis=>{
|
|
||||||
fieldType=>'textarea',
|
|
||||||
defaultValue=>undef
|
|
||||||
},
|
|
||||||
extraHeadTags=>{
|
|
||||||
fieldType=>'textarea',
|
|
||||||
defaultValue=>undef
|
|
||||||
},
|
|
||||||
url=>{
|
|
||||||
fieldType=>'text',
|
|
||||||
defaultValue=>undef,
|
|
||||||
filter=>'fixUrl'
|
|
||||||
},
|
|
||||||
groupIdEdit=>{
|
|
||||||
fieldType=>'group',
|
|
||||||
defaultValue=>'4'
|
|
||||||
},
|
|
||||||
groupIdView=>{
|
|
||||||
fieldType=>'group',
|
|
||||||
defaultValue=>'7'
|
|
||||||
},
|
|
||||||
ownerUserId=>{
|
|
||||||
fieldType=>'selectList',
|
|
||||||
defaultValue=>'3'
|
|
||||||
},
|
|
||||||
startDate=>{
|
|
||||||
fieldType=>'dateTime',
|
|
||||||
defaultValue=>997995720
|
|
||||||
},
|
|
||||||
endDate=>{
|
|
||||||
fieldType=>'dateTime',
|
|
||||||
defaultValue=>32472169200
|
|
||||||
},
|
|
||||||
assetSize=>{
|
|
||||||
noFormPost=>1,
|
|
||||||
fieldType=>'hidden',
|
|
||||||
defaultValue=>0
|
|
||||||
},
|
|
||||||
encryptPage=>{
|
|
||||||
fieldType=>'yesNo',
|
|
||||||
defaultValue=>0
|
|
||||||
},
|
|
||||||
isPackage=>{
|
|
||||||
fieldType=>'yesNo',
|
|
||||||
defaultValue=>0
|
|
||||||
},
|
|
||||||
isPrototype=>{
|
|
||||||
fieldType=>'yesNo',
|
|
||||||
defaultValue=>0
|
|
||||||
},
|
|
||||||
isHidden=>{
|
|
||||||
fieldType=>'yesNo',
|
|
||||||
defaultValue=>0
|
|
||||||
},
|
|
||||||
newWindow=>{
|
|
||||||
fieldType=>'yesNo',
|
|
||||||
defaultValue=>0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return $definition;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 demote ( )
|
=head2 demote ( )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue