Permalink
Browse files

remove unneeded code

  • Loading branch information...
1 parent 5343c45 commit 45706057be3d0270421db716d3d2453a7e28d0b8 @chregu chregu committed Dec 20, 2010
Showing with 0 additions and 12,153 deletions.
  1. +0 −37 ext/lxcr/lx/cr/autoload.php
  2. +0 −55 ext/lxcr/lx/cr/indexer/lucene.php
  3. +0 −1,246 ext/lxcr/lx/cr/node.php
  4. +0 −463 ext/lxcr/lx/cr/property.php
  5. +0 −8 ext/lxcr/lx/cr/propertytype.php
  6. +0 −121 ext/lxcr/lx/cr/query/lucene.php
  7. +0 −70 ext/lxcr/lx/cr/querymanager.php
  8. +0 −70 ext/lxcr/lx/cr/queryresult/lucene.php
  9. +0 −89 ext/lxcr/lx/cr/repository.php
  10. +0 −625 ext/lxcr/lx/cr/session.php
  11. +0 −81 ext/lxcr/lx/cr/simplecredentials.php
  12. +0 −214 ext/lxcr/lx/cr/storage/db.php
  13. +0 −190 ext/lxcr/lx/cr/storage/file.php
  14. +0 −345 ext/lxcr/lx/cr/workspace.php
  15. +0 −35 ext/lxcr/phpCR.old/Credentials.php
  16. +0 −37 ext/lxcr/phpCR.old/ImportUUIDBehavior.php
  17. +0 −404 ext/lxcr/phpCR.old/Item.php
  18. +0 −33 ext/lxcr/phpCR.old/ItemNotFoundException.php
  19. +0 −47 ext/lxcr/phpCR.old/ItemVisitor.php
  20. +0 −185 ext/lxcr/phpCR.old/NamespaceRegistry.php
  21. +0 −1,219 ext/lxcr/phpCR.old/Node.php
  22. +0 −40 ext/lxcr/phpCR.old/NodeIterator.php
  23. +0 −211 ext/lxcr/phpCR.old/NodeType.php
  24. +0 −41 ext/lxcr/phpCR.old/NodeTypeIterator.php
  25. +0 −87 ext/lxcr/phpCR.old/NodeTypeManager.php
  26. +0 −33 ext/lxcr/phpCR.old/PathNotFoundException.php
  27. +0 −298 ext/lxcr/phpCR.old/Property.php
  28. +0 −39 ext/lxcr/phpCR.old/PropertyIterator.php
  29. +0 −215 ext/lxcr/phpCR.old/PropertyType.php
  30. +0 −168 ext/lxcr/phpCR.old/Query.php
  31. +0 −96 ext/lxcr/phpCR.old/QueryManager.php
  32. +0 −74 ext/lxcr/phpCR.old/QueryResult.php
  33. +0 −73 ext/lxcr/phpCR.old/RangeIterator.php
  34. +0 −192 ext/lxcr/phpCR.old/Repository.php
  35. +0 −97 ext/lxcr/phpCR.old/RepositoryException.php
  36. +0 −57 ext/lxcr/phpCR.old/Row.php
  37. +0 −44 ext/lxcr/phpCR.old/RowIterator.php
  38. +0 −936 ext/lxcr/phpCR.old/Session.php
  39. +0 −101 ext/lxcr/phpCR.old/SimpleCredentials.php
  40. +0 −245 ext/lxcr/phpCR.old/Value.php
  41. +0 −52 ext/lxcr/phpCR.old/ValueFactory.php
  42. +0 −135 ext/lxcr/phpCR.old/ValueStream.php
  43. +0 −119 ext/lxcr/phpCR.old/ValueStreamRegistry.php
  44. +0 −197 ext/lxcr/phpCR.old/Version.php
  45. +0 −249 ext/lxcr/phpCR.old/VersionHistory.php
  46. +0 −44 ext/lxcr/phpCR.old/VersionIterator.php
  47. +0 −580 ext/lxcr/phpCR.old/Workspace.php
  48. +0 −30 ext/lxcr/phpCR.old/exceptions/AccessControlException.exception.php
  49. +0 −31 ext/lxcr/phpCR.old/exceptions/AccessDeniedException.exception.php
  50. +0 −31 ext/lxcr/phpCR.old/exceptions/IllegalArgumentException.exception.php
  51. +0 −36 ext/lxcr/phpCR.old/exceptions/InvalidItemStateException.exception.php
  52. +0 −33 ext/lxcr/phpCR.old/exceptions/InvalidSerializedDataException.exception.php
  53. +0 −33 ext/lxcr/phpCR.old/exceptions/ItemExistsException.exception.php
  54. +0 −33 ext/lxcr/phpCR.old/exceptions/ItemNotFoundException.exception.php
  55. +0 −33 ext/lxcr/phpCR.old/exceptions/LoginException.exception.php
  56. +0 −32 ext/lxcr/phpCR.old/exceptions/MergeException.exception.php
  57. +0 −33 ext/lxcr/phpCR.old/exceptions/NamespaceException.exception.php
  58. +0 −33 ext/lxcr/phpCR.old/exceptions/NoSuchElementException.exception.php
  59. +0 −33 ext/lxcr/phpCR.old/exceptions/NoSuchWorkspaceException.exception.php
  60. +0 −32 ext/lxcr/phpCR.old/exceptions/ReferentialIntegrityException.exception.php
  61. +0 −32 ext/lxcr/phpCR.old/exceptions/UnsupportedRepositoryOperationException.exception.php
  62. +0 −36 ext/lxcr/phpCR.old/exceptions/ValueFormatException.exception.php
  63. +0 −122 ext/lxcr/phpCR.old/lock/Lock.interface.php
  64. +0 −36 ext/lxcr/phpCR.old/lock/LockException.exception.php
  65. +0 −37 ext/lxcr/phpCR.old/nodetype/ConstraintViolationException.exception.php
  66. +0 −116 ext/lxcr/phpCR.old/nodetype/ItemDefinition.interface.php
  67. +0 −33 ext/lxcr/phpCR.old/nodetype/NoSuchNodeTypeException.exception.php
  68. +0 −79 ext/lxcr/phpCR.old/nodetype/NodeDefinition.interface.php
  69. +0 −211 ext/lxcr/phpCR.old/nodetype/NodeType.interface.php
  70. +0 −41 ext/lxcr/phpCR.old/nodetype/NodeTypeIterator.interface.php
  71. +0 −87 ext/lxcr/phpCR.old/nodetype/NodeTypeManager.interface.php
  72. +0 −153 ext/lxcr/phpCR.old/nodetype/PropertyDefinition.interface.php
  73. +0 −123 ext/lxcr/phpCR.old/observation/Event.interface.php
  74. +0 −43 ext/lxcr/phpCR.old/observation/EventIterator.interface.php
  75. +0 −45 ext/lxcr/phpCR.old/observation/EventListener.interface.php
  76. +0 −43 ext/lxcr/phpCR.old/observation/EventListenerIterator.interface.php
  77. +0 −137 ext/lxcr/phpCR.old/observation/ObservationManager.interface.php
  78. +0 −35 ext/lxcr/phpCR.old/query/InvalidQueryException.exception.php
  79. +0 −57 ext/lxcr/phpCR.old/query/Row.interface.php
  80. +0 −44 ext/lxcr/phpCR.old/query/RowIterator.interface.php
  81. +0 −171 ext/lxcr/phpCR.old/version/OnParentVersionAction.class.php
  82. +0 −34 ext/lxcr/phpCR.old/version/VersionException.exception.php
  83. +0 −18 ext/lxcr/phpCR.php.old
@@ -1,37 +0,0 @@
-<?php
-/**
- * @file autoload.php
- * Defines an autoloader function.
- * @see http://www.php.net/autoload
- */
-
-/**
- * Autoloader. When a class is instantiated the autoloader replaces each
- * underline in a classname with a slash and loads the corresponding file
- * from the file system.
- * @param $class string: Name of class to load.
- */
-function autoload($class) {
- $incFile = str_replace("_", DIRECTORY_SEPARATOR, $class).".php";
- /*
- * Well, we could prevent a fatal error with checking if the file exists..
- * This would result in a nice fatal error exception page.. do we want this?
- */
-
- /* TODO: Look into that:
- <lsmith> chregu: jo .. Wez meinte das kann zu race conditions, locking problemen etc fuehren
- <lsmith> ZF hat das frueher auch so gemacht
- <lsmith> ich glaube jetzt iterieren sie ueber den include path
- */
-
- if (@fopen($incFile, "r", TRUE)) {
- include($incFile);
-
- return $incFile;
- }
-
- return FALSE;
-
-}
-
-spl_autoload_register('autoload');
@@ -1,55 +0,0 @@
-<?php
-
-class lx_cr_indexer_lucene {
-
- /**
- *
- * @var Zend_Search_Lucene
- */
- protected $index = null;
-
- function __construct($path) {
-
- try {
- $this->index = Zend_Search_Lucene::open($path);
- } catch( Zend_Search_Lucene_Exception $e) {
- $this->index = Zend_Search_Lucene::create($path);
- }
- //$this->index->optimize();
- }
-
- public function addNode(lx_cr_node $node) {
- $doc = new Zend_Search_Lucene_Document();
- $doc->addField(Zend_Search_Lucene_Field::Keyword('path', $node->getPath()));
- $doc->addField(Zend_Search_Lucene_Field::Unstored('path2', $node->getPath()));
-
- $doc->addField(Zend_Search_Lucene_Field::Keyword('uuid', $node->getUUID()));
- foreach ($node->getProperties() as $p) {
- $doc->addField(Zend_Search_Lucene_Field::UnStored($p->getName(), $p->getValue()));
- }
- $this->index->addDocument($doc);
- }
-
- public function commit() {
- $this->index->commit();
- }
-
- public function removeNode(lx_cr_node $node) {
- $term = new Zend_Search_Lucene_Index_Term($node->getUUID(), 'uuid');
- $query = new Zend_Search_Lucene_Search_Query_Term($term);
- foreach( $this->index->find($query) as $r) {
- $this->index->delete($h);
- }
-
- }
-
- public function optimize() {
- $this->index->optimize();
- }
-
- public function execute($statement) {
- return $this->index->find($statement);
- }
-}
-
-
Oops, something went wrong.

0 comments on commit 4570605

Please sign in to comment.