Source for file SubjectLocatorClashException.exception.php

Documentation is available at SubjectLocatorClashException.exception.php

  1. <?php
  2. /**
  3. * @package org.phptmapi.core
  4. */
  5. require_once('MergeException.exception.php');
  6. /**
  7. * public class SubjectLocatorClashException: Thrown when two topics cannot be merged because the XTM 1.0 model does not allow a topic to have more than one value for the subjectLocators property.
  8. *
  9. * @author Johannes Schmidt - t8d <kontakt@t8d.de>
  10. */
  11. class SubjectLocatorClashException extends MergeException{
  12. /**
  13. * Constructor
  14. * @param array $topics An array of TopicInterface objects.
  15. * @param string $msg
  16. * @access public
  17. */
  18. public function __construct($topics, $msg){
  19. $this->topics = $topics;
  20. parent::__construct($msg);
  21. }
  22.  
  23. /**
  24. * getTopics: Returns the topics involved in the clash of subjectLocator property values.
  25. * @return array An array of TopicInterface objects.
  26. * @access public
  27. */
  28. public function getTopics(){
  29. return $this->topics;
  30. }
  31. }
  32. ?>

Documentation generated on Fri, 30 Jun 2006 13:07:00 +0200 by phpDocumentor 1.3.0RC4