Class Tools (namespace Nette)
Tools library.
Public Method Summary | |
---|---|
Tools |
__construct
()
Static class - cannot be instantiated.
|
static bool |
catchError
(string &$message)
Returns catched error/warning message.
|
static void |
defaultize
(mixed &$var, mixed $default)
Initializes variable with $default value.
|
static array |
glob
(string $pattern, [int $flags =
0 ])
Recursive glob(). Finds pathnames matching a pattern.
|
static bool |
iniFlag
(string $var)
Gets the boolean value of a configuration option.
|
static void |
tryError
([$level =
E_ALL ])
Starts catching potential errors/warnings.
|
Constant Summary | |||
---|---|---|---|
int | DAY |
86400 |
line 38 day in seconds |
int | HOUR |
3600 |
line 35 hour in seconds |
int | MINUTE |
60 |
line 32 minute in seconds |
int | MONTH |
2629800 |
line 44 average month in seconds |
int | WEEK |
604800 |
line 41 week in seconds |
int | YEAR |
31557600 |
line 47 average year in seconds |
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 54 __constructpublic Tools __construct () Static class - cannot be instantiated.
|
|||||||||||||||
line 143 catchErrorpublic static bool catchError (string &$message) Returns catched error/warning message.
|
|||||||||||||||
line 81 defaultizepublic static void defaultize (mixed &$var, mixed $default) Initializes variable with $default value.
|
|||||||||||||||
line 94 globpublic static array glob (string $pattern, [int $flags = Recursive glob(). Finds pathnames matching a pattern.
|
|||||||||||||||
line 66 iniFlagpublic static bool iniFlag (string $var) Gets the boolean value of a configuration option.
|
|||||||||||||||
line 129 tryErrorpublic static void tryError ([$level = Starts catching potential errors/warnings.
|