Source for file XMLMIMEPartImporter.class.php

Documentation is available at XMLMIMEPartImporter.class.php

  1. <?php
  2. /**
  3. * @since 10/10/05
  4. * @package polyphony.importer
  5. *
  6. * @copyright Copyright &copy; 2005, Middlebury College
  7. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  8. *
  9. * @version $Id: XMLMIMEPartImporter.class.php,v 1.14 2007/09/19 14:04:47 adamfranco Exp $
  10. */
  11. require_once(POLYPHONY."/main/library/Importer/XMLImporters/XMLFilePartImporter.class.php");
  12.  
  13. /**
  14. * imports the mimetype of a file, how interesting
  15. *
  16. * @since 10/10/05
  17. * @package polyphony.importer
  18. *
  19. * @copyright Copyright &copy; 2005, Middlebury College
  20. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  21. *
  22. * @version $Id: XMLMIMEPartImporter.class.php,v 1.14 2007/09/19 14:04:47 adamfranco Exp $
  23. */
  24. class XMLMIMEPartImporter extends XMLFilePartImporter {
  25. /**
  26. * Answer the PartStructureIdString
  27. *
  28. * @return string
  29. * @access public
  30. * @since 12/6/06
  31. */
  32. function getPartStructureIdString () {
  33. return 'MIME_TYPE';
  34. }
  35. /**
  36. * Filters nodes of incorrect type
  37. *
  38. * @param object DOMIT_Node
  39. * @return boolean
  40. * @static
  41. * @access public
  42. * @since 10/10/05
  43. */
  44. function isImportable ($element) {
  45. if ($element->nodeName == 'mimepart')
  46. return true;
  47. else
  48. return false;
  49. }
  50. }
  51.  
  52. ?>

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