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 https://nette.org
- 12: *
- 19: */
- 23: /**
- 24: * Tools library.
- 25: *
- 29: */
- 31: {
- 32: /** hour in seconds */
- 35: /** day in seconds */
- 38: /** year in seconds */
- 43: /**
- 44: * Static class - cannot be instantiated.
- 45: */
- 47: {
- 49: }
- 53: /**
- 54: * Gets the boolean value of a configuration option.
- 57: */
- 59: {
- 62: }
- 66: /**
- 67: * Initializes variable with $default value.
- 68: *
- 72: */
- 74: {
- 76: }
- 80: /**
- 81: * Returns array item or $default if item is not set.
- 82: * Example: $val = arrayGet($arr, 'i', 123);
- 83: *
- 88: */
- 90: {
- 93: }
- 97: /**
- 98: * Recursively appends elements of remaining keys from the second array to the first.
- 102: */
- 104: {
- 109: }
- 110: }
- 112: }
- 116: /**
- 117: * Recursive glob(). Finds pathnames matching a pattern.
- 121: */
- 123: {
- 124: // TODO: replace by RecursiveDirectoryIterator
- 128: }
- 135: }
- 136: }
- 139: }
- 143: /********************* errors and warnings catching ****************d*g**/
- 152: /**
- 153: * Starts catching potential errors/warnings.
- 154: *
- 156: */
- 158: {
- 161: }
- 165: /**
- 166: * Returns catched error/warning message.
- 167: *
- 170: */
- 172: {
- 177: }
- 181: /**
- 182: * Internal error handler. Do not call directly.
- 184: */
- 186: {
- 190: }
- 194: }
- 197: }
- 199: }