forward port of bug fixes and POD upgrade
This commit is contained in:
parent
87287d9b58
commit
662c43ca21
4 changed files with 9 additions and 6 deletions
|
|
@ -173,7 +173,7 @@ sub editSave {
|
|||
$data{filename} = $data{title} = $data{menuTitle} = $filename;
|
||||
$data{templateId} = 'PBtmpl0000000000000024';
|
||||
$data{templateId} = 'PBtmpl0000000000000088' if ($selfName eq "WebGUI::Asset::File::Image");
|
||||
$data{url} = $self->getParent->getUrl.'/'.$filename;
|
||||
$data{url} = $self->getParent->get('url').'/'.$filename;
|
||||
my $newAsset = $self->getParent->addChild(\%data);
|
||||
delete $newAsset->{_storageLocation};
|
||||
$newAsset->setSize($storage->getFileSize($filename));
|
||||
|
|
|
|||
|
|
@ -9,15 +9,15 @@ Package WebGUI::Commerce::Item
|
|||
This is the SUPER class off all Item plugins. Item plugins are an abstraction layer to connect
|
||||
arbitrary types of products and other stuff you might want to sell to the commerce system.
|
||||
|
||||
The SUPER class new method provides an easy way to load Item plugins: WebGUI::Item->new($self->session,'1234', 'MyItem')
|
||||
is equivalent to WebGUI::Item::MyItem->new($self->session,'1234'). The SUPER class new has the benefit of added
|
||||
The SUPER class new method provides an easy way to load Item plugins: WebGUI::Commerce::Item->new($self->session,'1234', 'MyItem')
|
||||
is equivalent to WebGUI::Commerce::Item::MyItem->new($self->session,'1234'). The SUPER class new has the benefit of added
|
||||
error checking, so you should use this.
|
||||
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
use WebGUI::Item;
|
||||
$item = WebGUI::Item->new($self->session,$itemId, $itemType);
|
||||
use WebGUI::Commerce::Item;
|
||||
$item = WebGUI::Commerce::Item->new($self->session,$itemId, $itemType);
|
||||
|
||||
$description = $item->description;
|
||||
$duration = $item->duration;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue