Source for file PresenterLoader.php
Documentation is available at PresenterLoader.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 6: * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
- 7: *
- 8: * This source file is subject to the "Nette license" that is bundled
- 9: * with this package in the file license.txt.
- 10: *
- 11: * For more information please see http://nettephp.com
- 12: *
- 18: */
- 26: /**
- 27: * Default presenter loader.
- 28: *
- 32: */
- 34: {
- 43: /**
- 47: */
- 49: {
- 53: }
- 56: throw new NInvalidPresenterException("NPresenter name must be alphanumeric string, '$name' is invalid.");
- 57: }
- 62: // internal autoloading
- 66: }
- 69: throw new NInvalidPresenterException("Cannot load presenter '$name', class '$class' was not found in '$file'.");
- 70: }
- 71: }
- 77: throw new NInvalidPresenterException("Cannot load presenter '$name', class '$class' is not \Application\\IPresenter implementor.");
- 78: }
- 81: throw new NInvalidPresenterException("Cannot load presenter '$name', class '$class' is abstract.");
- 82: }
- 84: // canonicalize presenter name
- 88: throw new NInvalidPresenterException("Cannot load presenter '$name', case mismatch. Real name is '$realName'.");
- 92: }
- 95: }
- 98: }
- 102: /**
- 103: * Formats presenter class name from its name.
- 106: */
- 108: {
- 109: // PHP 5.3
- 112: }
- 116: /**
- 117: * Formats presenter name from class name.
- 120: */
- 122: {
- 123: // PHP 5.3
- 126: }
- 130: /**
- 131: * Formats presenter class file name.
- 134: */
- 136: {
- 140: }
- 142: }