Documentation is available at ThumbnailDimensionsPart.class.php
- <?php
- /**
- * @package harmoni.osid_v2.repository
- *
- * @copyright Copyright ©2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
- *
- * @version $Id: ThumbnailDimensionsPart.class.php,v 1.7 2007/09/11 17:40:57 adamfranco Exp $
- */
- require_once(dirname(__FILE__)."/../getid3.getimagesize.php");
- /**
- * The DimensionsPart attempts to extract height, width, and mime type info from
- * a file, in an array similar to that returned from GetImageSize() method.
- * If the file is not an image and/or such information can not be determined,
- * this part has a boolean value of false.
- *
- * @package harmoni.osid_v2.repository
- *
- * @copyright Copyright ©2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
- *
- * @version $Id: ThumbnailDimensionsPart.class.php,v 1.7 2007/09/11 17:40:57 adamfranco Exp $
- */
- class ThumbnailDimensionsPart
- extends DimensionsPart
- {
- /**
- * Constructor
- *
- * @param object PartStructure $partStructure
- * @param object Id $recordId
- * @param object Properties $configuration
- * @param object Record $record
- * @return object
- * @access public
- * @since 10/17/05
- */
- function ThumbnailDimensionsPart ( $partStructure, $recordId,
- $configuration, $record, $asset )
- {
- $this->DimensionsPart($partStructure, $recordId, $configuration, $record, $asset);
- $this->_table = "dr_thumbnail";
- $this->_idColumn = "fk_file";
- // $this->_widthColumn = 'thumb_width';
- // $this->_heightColumn = 'thumb_height';
- $idManager = Services::getService("Id");
- $this->_dataPartStructId =$idManager->getId("THUMBNAIL_DATA");
- $this->_mimeTypePartStructId =$idManager->getId("THUMBNAIL_MIME_TYPE");
- }
- }
Documentation generated on Wed, 19 Sep 2007 10:27:23 -0400 by phpDocumentor 1.3.0RC3