The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Solstice::Resource::File - A model representing a file

SYNOPSIS

  package Solstice::Resource::File;

  use Solstice::Resource::File;

DESCRIPTION

Superclass

Solstice::Resource.

Export

No symbols exported.

Methods

getContentTypeDescription()

Return a string containing a description of this resource.

getTicket()
getTicketURL()
getThumbnailURL([$max_size])

Return a ticketed URL for generating a thumbnail download.

put($filehandle)
get($filehandle)

Print the contents of the file to the passed filehandle.

clone()

Returns a clone of the resource, with the name stripped and a source path added.

toStandardOut()
makeThumbnail([$size])
addChild()

Private Methods

_initFromHash(\%params)
_putUploadFilehandle($upload)
_putFilehandle($filehandle)

Like put, but for normal filehandles

_generateThumbnailPath()
_getAccessorDefinition()

Modules Used

Solstice::Resource.

AUTHOR

Catalyst Group, <catalyst@u.washington.edu>

VERSION

$Revision: 924 $

COPYRIGHT

Copyright 1998-2007 Office of Learning Technologies, University of Washington

Licensed under the Educational Community License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.opensource.org/licenses/ecl1.php

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.