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: * Returns array item or $default if item is not set.
- 90: * Example: $val = arrayGet($arr, 'i', 123);
- 91: *
- 96: */
- 98: {
- 101: }
- 105: /**
- 106: * Recursively appends elements of remaining keys from the second array to the first.
- 110: */
- 112: {
- 117: }
- 118: }
- 120: }
- 124: /**
- 125: * Recursive glob(). Finds pathnames matching a pattern.
- 129: */
- 131: {
- 132: // TODO: replace by RecursiveDirectoryIterator
- 136: }
- 143: }
- 144: }
- 147: }
- 151: /********************* errors and warnings catching ****************d*g**/
- 160: /**
- 161: * Starts catching potential errors/warnings.
- 162: *
- 164: */
- 166: {
- 169: }
- 173: /**
- 174: * Returns catched error/warning message.
- 175: *
- 178: */
- 180: {
- 185: }
- 189: /**
- 190: * Internal error handler. Do not call directly.
- 192: */
- 194: {
- 198: }
- 202: }
- 205: }
- 207: }