Source for file Tools.php
Documentation is available at Tools.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 11: */
- 15: /**
- 16: * Tools library.
- 17: *
- 20: */
- 22: {
- 23: /** minute in seconds */
- 26: /** hour in seconds */
- 29: /** day in seconds */
- 32: /** week in seconds */
- 35: /** average month in seconds */
- 38: /** average year in seconds */
- 43: /**
- 44: * Static class - cannot be instantiated.
- 45: */
- 47: {
- 49: }
- 53: /**
- 54: * DateTime object factory.
- 57: */
- 59: {
- 66: }
- 71: }
- 72: }
- 76: /**
- 77: * Gets the boolean value of a configuration option.
- 80: */
- 82: {
- 85: }
- 89: /**
- 90: * Initializes variable with $default value.
- 91: *
- 95: */
- 97: {
- 99: }
- 103: /**
- 104: * Recursive glob(). Finds pathnames matching a pattern.
- 108: */
- 110: {
- 111: // TODO: replace by RecursiveDirectoryIterator
- 115: }
- 122: }
- 123: }
- 126: }
- 130: /********************* errors and warnings catching ****************d*g**/
- 139: /**
- 140: * Starts catching potential errors/warnings.
- 141: *
- 143: */
- 145: {
- 148: }
- 152: /**
- 153: * Returns catched error/warning message.
- 154: *
- 157: */
- 159: {
- 164: }
- 168: /**
- 169: * Internal error handler. Do not call directly.
- 171: */
- 173: {
- 176: }
- 180: }
- 183: }
- 185: }