Source for file XMLFileSizePartImporter.class.php

Documentation is available at XMLFileSizePartImporter.class.php

  1. <?php
  2. /**
  3. * @since 12/6/06
  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: XMLFileSizePartImporter.class.php,v 1.3 2007/09/19 14:04:47 adamfranco Exp $
  10. */
  11. require_once(dirname(__FILE__)."/XMLFilePartImporter.class.php");
  12.  
  13. /**
  14. * <##>
  15. *
  16. * @since 12/6/06
  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: XMLFileSizePartImporter.class.php,v 1.3 2007/09/19 14:04:47 adamfranco Exp $
  23. */
  24. class XMLFileSizePartImporter
  25. extends XMLFilePartImporter
  26. {
  27. /**
  28. * Answer the PartStructureIdString
  29. *
  30. * @return string
  31. * @access public
  32. * @since 12/6/06
  33. */
  34. function getPartStructureIdString () {
  35. return 'FILE_SIZE';
  36. }
  37. /**
  38. * Filters nodes of incorrect type
  39. *
  40. * @param object DOMIT_Node
  41. * @return boolean
  42. * @static
  43. * @access public
  44. * @since 10/10/05
  45. */
  46. function isImportable ($element) {
  47. if ($element->nodeName == 'filesizepart')
  48. return true;
  49. else
  50. return false;
  51. }
  52. }
  53.  
  54. ?>

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