Source for file Tools.php
Documentation is available at Tools.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: */
- 22: /**
- 23: * Tools library.
- 24: *
- 28: */
- 30: {
- 31: /** minute in seconds */
- 34: /** hour in seconds */
- 37: /** day in seconds */
- 40: /** week in seconds */
- 43: /** average month in seconds */
- 46: /** average year in seconds */
- 51: /**
- 52: * Static class - cannot be instantiated.
- 53: */
- 55: {
- 57: }
- 61: /**
- 62: * Gets the boolean value of a configuration option.
- 65: */
- 67: {
- 70: }
- 74: /**
- 75: * Initializes variable with $default value.
- 76: *
- 80: */
- 82: {
- 84: }
- 88: /**
- 89: * Recursive glob(). Finds pathnames matching a pattern.
- 93: */
- 95: {
- 96: // TODO: replace by RecursiveDirectoryIterator
- 100: }
- 107: }
- 108: }
- 111: }
- 115: /********************* errors and warnings catching ****************d*g**/
- 124: /**
- 125: * Starts catching potential errors/warnings.
- 126: *
- 128: */
- 130: {
- 133: }
- 137: /**
- 138: * Returns catched error/warning message.
- 139: *
- 142: */
- 144: {
- 149: }
- 153: /**
- 154: * Internal error handler. Do not call directly.
- 156: */
- 158: {
- 162: }
- 166: }
- 169: }
- 171: }