Source for file ThumbnailDimensionsPart.class.php

Documentation is available at ThumbnailDimensionsPart.class.php

  1. <?php
  2. /**
  3. * @package harmoni.osid_v2.repository
  4. *
  5. * @copyright Copyright &copy;2005, Middlebury College
  6. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
  7. *
  8. * @version $Id: ThumbnailDimensionsPart.class.php,v 1.7 2007/09/11 17:40:57 adamfranco Exp $
  9. */
  10. require_once(dirname(__FILE__)."/../getid3.getimagesize.php");
  11.  
  12. /**
  13. * The DimensionsPart attempts to extract height, width, and mime type info from
  14. * a file, in an array similar to that returned from GetImageSize() method.
  15. * If the file is not an image and/or such information can not be determined,
  16. * this part has a boolean value of false.
  17. *
  18. * @package harmoni.osid_v2.repository
  19. *
  20. * @copyright Copyright &copy;2005, Middlebury College
  21. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
  22. *
  23. * @version $Id: ThumbnailDimensionsPart.class.php,v 1.7 2007/09/11 17:40:57 adamfranco Exp $
  24. */
  25. class ThumbnailDimensionsPart
  26. extends DimensionsPart
  27. {
  28.  
  29. /**
  30. * Constructor
  31. *
  32. * @param object PartStructure $partStructure
  33. * @param object Id $recordId
  34. * @param object Properties $configuration
  35. * @param object Record $record
  36. * @return object
  37. * @access public
  38. * @since 10/17/05
  39. */
  40. function ThumbnailDimensionsPart ( $partStructure, $recordId,
  41. $configuration, $record, $asset )
  42. {
  43. $this->DimensionsPart($partStructure, $recordId, $configuration, $record, $asset);
  44. $this->_table = "dr_thumbnail";
  45. $this->_idColumn = "fk_file";
  46. // $this->_widthColumn = 'thumb_width';
  47. // $this->_heightColumn = 'thumb_height';
  48. $idManager = Services::getService("Id");
  49. $this->_dataPartStructId =$idManager->getId("THUMBNAIL_DATA");
  50. $this->_mimeTypePartStructId =$idManager->getId("THUMBNAIL_MIME_TYPE");
  51. }
  52. }

Documentation generated on Wed, 19 Sep 2007 10:27:23 -0400 by phpDocumentor 1.3.0RC3