A

ArgumentOutOfRangeException — Class in namespace Nette

The value is outside the allowed range.

ArrayHash — Class in namespace Nette\Utils

Array-like object with property access.

ArrayList — Class in namespace Nette\Utils

Generic list with integer indices.

Arrays — Class in namespace Nette\Utils

Array manipulation utilities.

Arrays::associate() — Method in class Arrays

Transforms a flat array of rows into an associative tree using a path expression like 'field|field[]field->field=field'.

AssertionException — Class in namespace Nette\Utils

Type validation failed. The value doesn't match the expected type constraints.

Finder::append() — Method in class Finder

Appends the specified file paths to results. Passing null creates and returns a new sub-finder whose results are appended.

Floats::areEqual() — Method in class Floats

Returns true if $a = $b

$ Html#attrs — Property in class Html
$ Html#accept — Property in class Html
$ Html#accesskey — Property in class Html
$ Html#action — Property in class Html
$ Html#align — Property in class Html
$ Html#allow — Property in class Html
$ Html#alt — Property in class Html
$ Html#async — Property in class Html
$ Html#autocapitalize — Property in class Html
$ Html#autocomplete — Property in class Html
$ Html#autofocus — Property in class Html
$ Html#autoplay — Property in class Html
Html::addAttributes() — Method in class Html

Sets multiple attributes.

Html::appendAttribute() — Method in class Html

Appends value to element's attribute.

Html::addHtml() — Method in class Html

Adds new element's child.

Html::addText() — Method in class Html

Appends plain-text string to element content.

Html::attributes() — Method in class Html

Returns element's attributes.

Html::accept() — Method in class Html
Html::accesskey() — Method in class Html
Html::action() — Method in class Html
Html::align() — Method in class Html
Html::allow() — Method in class Html
Html::alt() — Method in class Html
Html::async() — Method in class Html
Html::autocapitalize() — Method in class Html
Html::autocomplete() — Method in class Html
Html::autofocus() — Method in class Html
Html::autoplay() — Method in class Html
Reflection::areCommentsAvailable() — Method in class Reflection

Finds out if reflection has access to PHPdoc comments. Comments may not be available due to the opcode cache.

Strings::after() — Method in class Strings

Returns part of $haystack after $nth occurence of $needle or returns null if the needle was not found.

Type::allows() — Method in class Type

Checks whether a value of the given type could be assigned to this type.

Validators::assert() — Method in class Validators

Verifies that the value is of expected types separated by pipe.

Validators::assertField() — Method in class Validators

Verifies that item $key in array exists and is of expected types separated by pipe.

B

$ Paginator#base — Property in class Paginator
Strings::before() — Method in class Strings

Returns part of $haystack before $nth occurence of $needle or returns null if the needle was not found.

C

CachingIterator — Class in namespace Nette\Iterators

Enhanced caching iterator with first/last/counter tracking.

$ CachingIterator#counter — Property in class CachingIterator
CachingIterator::count() — Method in class CachingIterator
Mapper::current() — Method in class Mapper
ArrayHash::count() — Method in class ArrayHash
ArrayList::count() — Method in class ArrayList
Arrays::contains() — Method in class Arrays

Tests an array for the presence of value.

Callback — Class in namespace Nette\Utils

PHP callable tools.

Callback::check() — Method in class Callback

Checks that $callable is a valid PHP callback and returns it. With $syntax set to true, only verifies the structural validity without checking whether the class or method actually exists.

DateTime::createFromFormat() — Method in class DateTime

Returns a new DateTime object formatted according to the specified format.

FileSystem::createDir() — Method in class FileSystem

Creates a directory if it does not exist, including parent directories.

FileSystem::copy() — Method in class FileSystem

Copies a file or an entire directory. Overwrites existing files and directories by default.

Finder::childFirst() — Method in class Finder

Lists directory's contents before the directory itself. By default, this is disabled.

Finder::collect() — Method in class Finder

Returns an array with all found files and directories.

Floats::compare() — Method in class Floats

Compare two floats. If $a < $b it returns -1, if they are equal it returns 0 and if $a > $b it returns 1

Helpers::capture() — Method in class Helpers
Helpers::clamp() — Method in class Helpers

Returns value clamped to the inclusive range of min and max.

Helpers::compare() — Method in class Helpers

Compares two values in the same way that PHP does. Recognizes operators: >, >=, <, <=, =, ==, ===, !=, !==, <>

$ Html#children — Property in class Html
$ Html#charset — Property in class Html
$ Html#checked — Property in class Html
$ Html#cite — Property in class Html
$ Html#class — Property in class Html
$ Html#cols — Property in class Html
$ Html#colspan — Property in class Html
$ Html#content — Property in class Html
$ Html#contenteditable — Property in class Html
$ Html#controls — Property in class Html
$ Html#coords — Property in class Html
$ Html#crossorigin — Property in class Html
Html::create() — Method in class Html

Creates and adds a new Html child.

Html::count() — Method in class Html

Returns children count.

Html::charset() — Method in class Html
Html::checked() — Method in class Html
Html::cite() — Method in class Html
Html::class() — Method in class Html
Html::cols() — Method in class Html
Html::colspan() — Method in class Html
Html::content() — Method in class Html
Html::contenteditable() — Method in class Html
Html::controls() — Method in class Html
Html::coords() — Method in class Html
Html::crossorigin() — Method in class Html
Image::calculateSize() — Method in class Image

Calculates dimensions of resized image. Width and height accept pixels or percent.

Image::crop() — Method in class Image

Crops image. Arguments accepts pixels or percent.

Image::calculateCutout() — Method in class Image

Calculates dimensions of cutout in image. Arguments accepts pixels or percent.

Image::calculateTextBox() — Method in class Image

Calculates the bounding box for a TrueType text. Returns keys left, top, width and height.

Iterables::contains() — Method in class Iterables

Tests for the presence of value.

Iterables::containsKey() — Method in class Iterables

Tests for the presence of key.

$ Paginator#countdownOffset — Property in class Paginator
Process::consumeStdOutput() — Method in class Process

Returns the STDOUT data produced since the previous consumeStdOutput() call.

Process::consumeStdError() — Method in class Process

Returns the STDERR data produced since the previous consumeStdError() call. See consumeStdOutput().

Process::closeStdInput() — Method in class Process

Closes the STDIN pipe, indicating no more data will be sent.

Strings::checkEncoding() — Method in class Strings
Strings::chr() — Method in class Strings

Returns a specific character in UTF-8 from code point (number in range 0x0000..D7FF or 0xE000..10FFFF).

Strings::contains() — Method in class Strings
Strings::capitalize() — Method in class Strings

Converts the first character of every word of a UTF-8 string to upper case and the others to lower case.

Strings::compare() — Method in class Strings

Compares two UTF-8 strings or their parts, without taking character case into account. If length is null, whole strings are compared, if it is negative, the corresponding number of characters from the end of the strings is compared, otherwise the appropriate number of characters from the beginning is compared.

$ Validators#counters — Property in class Validators

D

DeprecatedException — Class in namespace Nette

The requested feature is deprecated and no longer available.

DirectoryNotFoundException — Class in namespace Nette

The requested directory does not exist.

DateTime — Class in namespace Nette\Utils

Extends PHP's DateTime with strict validation and additional factory methods.

FileSystem::delete() — Method in class FileSystem

Deletes a file or an entire directory if exists. If the directory is not empty, it deletes its contents first.

Finder::directories() — Method in class Finder

Finds directories matching the specified masks.

Finder::descentFilter() — Method in class Finder

It descends only to directories that match the specified filter.

Finder::date() — Method in class Finder

Restricts the search by modified time. $operator accepts "[operator] [date]" example: >1978-01-23

$ Html#data — Property in class Html
$ Html#datetime — Property in class Html
$ Html#decoding — Property in class Html
$ Html#default — Property in class Html
$ Html#defer — Property in class Html
$ Html#dir — Property in class Html
$ Html#dirname — Property in class Html
$ Html#disabled — Property in class Html
$ Html#download — Property in class Html
$ Html#draggable — Property in class Html
$ Html#dropzone — Property in class Html
Html::data() — Method in class Html

Setter for data-* attributes. Booleans are converted to 'true' resp. 'false'.

Html::datetime() — Method in class Html
Html::decoding() — Method in class Html
Html::default() — Method in class Html
Html::defer() — Method in class Html
Html::dir() — Method in class Html
Html::dirname() — Method in class Html
Html::disabled() — Method in class Html
Html::download() — Method in class Html
Html::draggable() — Method in class Html
Html::dropzone() — Method in class Html
Image::detectTypeFromFile() — Method in class Image

Returns the type of image from file.

Image::detectTypeFromString() — Method in class Image

Returns the type of image from string.

Json::decode() — Method in class Json

Decodes a JSON string to a PHP value. Use $forceArrays to decode objects as arrays.

E

$ CachingIterator#empty — Property in class CachingIterator
$ CachingIterator#even — Property in class CachingIterator
Arrays::every() — Method in class Arrays
Finder::exclude() — Method in class Finder

Skips entries that matches the given masks relative to the ones defined with the in() or from() methods.

$ Html#emptyElements — Property in class Html
$ Html#enctype — Property in class Html
Html::el() — Method in class Html

Constructs new HTML element.

Html::endTag() — Method in class Html

Returns element's end tag.

Html::enctype() — Method in class Html
Image::extensionToType() — Method in class Image

Returns the image type for given file extension.

Iterables::every() — Method in class Iterables

Tests whether all elements in the iterable pass the test implemented by the provided function.

Json::encode() — Method in class Json

Converts value to JSON format. Use $pretty for formatted output, $asciiSafe for ASCII-only output, $htmlSafe for HTML-safe output, and $forceObjects to encode non-associative arrays as objects.

Process::ensureSuccess() — Method in class Process

Waits for the process to finish and throws ProcessFailedException if exit code is not zero.

Reflection::expandClassName() — Method in class Reflection

Expands the name of the class to full name in the given context of given class.

Strings::endsWith() — Method in class Strings
Validators::everyIs() — Method in class Validators

Finds whether all values are of expected types separated by pipe.

F

FileNotFoundException — Class in namespace Nette

The requested file does not exist.

$ CachingIterator#first — Property in class CachingIterator
ArrayHash::from() — Method in class ArrayHash

Transforms array to ArrayHash.

ArrayList::from() — Method in class ArrayList

Transforms array to ArrayList.

Arrays::first() — Method in class Arrays
Arrays::firstKey() — Method in class Arrays
Arrays::flatten() — Method in class Arrays

Transforms multidimensional array to flat array.

Arrays::filter() — Method in class Arrays
DateTime::from() — Method in class DateTime

Creates a DateTime object from a string, UNIX timestamp, or other DateTimeInterface object.

DateTime::fromParts() — Method in class DateTime

Creates DateTime object.

FileInfo — Class in namespace Nette\Utils

Represents the file or directory returned by the Finder.

FileSystem — Class in namespace Nette\Utils

File system tool.

Finder — Class in namespace Nette\Utils

Searches for files and directories in directory trees.

Finder::find() — Method in class Finder

Begins search for files and directories matching mask.

Finder::findFiles() — Method in class Finder

Begins search for files matching mask.

Finder::findDirectories() — Method in class Finder

Begins search for directories matching mask.

Finder::files() — Method in class Finder

Finds files matching the specified masks.

Finder::from() — Method in class Finder

Searches recursively from the given directories. Wildcards are allowed.

Finder::filter() — Method in class Finder

Yields only entries which satisfy the given filter.

Floats — Class in namespace Nette\Utils

Floating-point numbers comparison.

Helpers::falseToNull() — Method in class Helpers

Converts false to null, does not change other values.

$ Html#for — Property in class Html
$ Html#form — Property in class Html
$ Html#formaction — Property in class Html
$ Html#formenctype — Property in class Html
$ Html#formmethod — Property in class Html
$ Html#formnovalidate — Property in class Html
$ Html#formtarget — Property in class Html
Html::fromHtml() — Method in class Html

Returns an object representing HTML text.

Html::fromText() — Method in class Html

Returns an object representing plain text.

Html::for() — Method in class Html
Html::form() — Method in class Html
Html::formaction() — Method in class Html
Html::formenctype() — Method in class Html
Html::formmethod() — Method in class Html
Html::formnovalidate() — Method in class Html
Html::formtarget() — Method in class Html
Image::fromFile() — Method in class Image

Reads an image from a file and returns its type in $type. If $warnings is passed, recoverable decoder warnings are returned in it instead of being raised as a PHP warning.

Image::fromString() — Method in class Image

Reads an image from a string and returns its type in $type. If $warnings is passed, recoverable decoder warnings are returned in it instead of being raised as a PHP warning.

Image::fromBlank() — Method in class Image

Creates a new true color image of the given dimensions. The default color is black.

Image::filledRectangleWH() — Method in class Image

Draws a filled rectangle using top-left coordinates and dimensions instead of two corner coordinates.

Iterables::first() — Method in class Iterables
Iterables::firstKey() — Method in class Iterables
Iterables::filter() — Method in class Iterables

Returns a generator that yields only elements matching the given $predicate. Maintains original keys.

$ Paginator#firstPage — Property in class Paginator
$ Paginator#firstItemOnPage — Property in class Paginator
$ Paginator#first — Property in class Paginator
Strings::fixEncoding() — Method in class Strings

Removes all invalid UTF-8 characters from a string.

Strings::firstLower() — Method in class Strings

Converts the first character of a UTF-8 string to lower case and leaves the other characters unchanged.

Strings::firstUpper() — Method in class Strings

Converts the first character of a UTF-8 string to upper case and leaves the other characters unchanged.

Strings::findPrefix() — Method in class Strings

Finds the common prefix of strings or returns empty string if the prefix was not found.

Type::fromReflection() — Method in class Type

Creates a Type object based on reflection. Resolves self, static and parent to the actual class name.

Type::fromString() — Method in class Type

Creates the Type object according to the text notation.

Type::fromValue() — Method in class Type

Creates a Type object based on the actual type of value.

G

CachingIterator::getCounter() — Method in class CachingIterator
CachingIterator::getNextKey() — Method in class CachingIterator
CachingIterator::getNextValue() — Method in class CachingIterator
ArrayHash::getIterator() — Method in class ArrayHash
ArrayList::getIterator() — Method in class ArrayList
Arrays::get() — Method in class Arrays

Returns item from array. If it does not exist, it throws an exception, unless a default value is set.

Arrays::getRef() — Method in class Arrays

Returns reference to array item. If the index does not exist, new one is created with value null.

Arrays::getKeyOffset() — Method in class Arrays

Returns zero-indexed position of given array key. Returns null if key is not found.

Arrays::grep() — Method in class Arrays

Returns only those array items, which matches a regular expression $pattern.

FileInfo::getRelativePath() — Method in class FileInfo

Returns the relative directory path.

FileInfo::getRelativePathname() — Method in class FileInfo

Returns the relative path including file name.

Finder::getIterator() — Method in class Finder
Helpers::getLastError() — Method in class Helpers

Returns the last occurred PHP error or an empty string if no error occurred. Unlike error_get_last(), it is not affected by the PHP directive html_errors and always returns text, not HTML.

Helpers::getSuggestion() — Method in class Helpers

Finds the string from $possibilities most similar to $value using Levenshtein distance, or null if none is close enough.

Html::getName() — Method in class Html

Returns element's name.

Html::getAttribute() — Method in class Html

Returns element's attribute.

Html::getHtml() — Method in class Html

Returns element's HTML content.

Html::getText() — Method in class Html

Returns element's textual content.

Html::getIterator() — Method in class Html

Iterates over elements.

Html::getChildren() — Method in class Html

Returns all children.

Image::getSupportedTypes() — Method in class Image

Returns list of image types supported by the GD extension.

Image::getWidth() — Method in class Image

Returns image width.

Image::getHeight() — Method in class Image

Returns image height.

Image::getImageResource() — Method in class Image

Returns image GD resource.

Iterables::getIterator() — Method in class Iterables
ObjectHelpers::getMagicProperties() — Method in class ObjectHelpers

Returns array of magic properties defined by annotation @property.

ObjectHelpers::getSuggestion() — Method in class ObjectHelpers

Finds the best suggestion (for 8-bit encoding).

Paginator::getPage() — Method in class Paginator
Paginator::getFirstPage() — Method in class Paginator
Paginator::getLastPage() — Method in class Paginator
Paginator::getFirstItemOnPage() — Method in class Paginator

Returns the 1-based index of the first item on the current page, or 0 if the page is empty.

Paginator::getLastItemOnPage() — Method in class Paginator

Returns the 1-based index of the last item on the current page.

Paginator::getBase() — Method in class Paginator
Paginator::getPageIndex() — Method in class Paginator

Returns zero-based page number.

Paginator::getPageCount() — Method in class Paginator
Paginator::getItemsPerPage() — Method in class Paginator
Paginator::getItemCount() — Method in class Paginator
Paginator::getOffset() — Method in class Paginator

Returns the absolute index of the first item on current page.

Paginator::getCountdownOffset() — Method in class Paginator

Returns the absolute index of the first item on current page in countdown paging.

Paginator::getLength() — Method in class Paginator

Returns the number of items on current page.

Process::getExitCode() — Method in class Process

Returns the process exit code. If the process is still running, waits until it finishes.

Process::getPid() — Method in class Process

Returns the PID of the running process, or null if it is not running.

Process::getStdOutput() — Method in class Process

Waits for the process to finish and returns everything it wrote to STDOUT.

Process::getStdError() — Method in class Process

Waits for the process to finish and returns everything it wrote to STDERR.

Random::generate() — Method in class Random

Generates a random string of given length from characters specified in second argument.

Reflection::getParameterDefaultValue() — Method in class Reflection

Returns the default value of a parameter. Resolves constants and class constants used as default values.

Reflection::getPropertyDeclaringClass() — Method in class Reflection

Returns a reflection of a class or trait that contains a declaration of given property. Property can also be declared in the trait.

Reflection::getMethodDeclaringMethod() — Method in class Reflection

Returns a reflection of a method that contains a declaration of $method.

Reflection::getUseStatements() — Method in class Reflection

Returns the use statements from the file where the class is defined.

ReflectionMethod::getOriginalClass() — Method in class ReflectionMethod
Type::getNames() — Method in class Type

Returns the array of subtypes that make up the compound type as strings.

Type::getTypes() — Method in class Type

Returns the array of subtypes that make up the compound type as Type objects.

Type::getSingleName() — Method in class Type

Returns the type name for simple types, otherwise null.

H

HtmlStringable — Class in namespace Nette

Represents object convertible to HTML string.

Helpers — Class in namespace Nette\Utils

Miscellaneous utilities.

Html — Class in namespace Nette\Utils

Generates HTML elements with automatic attribute escaping.

$ Html#headers — Property in class Html
$ Html#height — Property in class Html
$ Html#hidden — Property in class Html
$ Html#high — Property in class Html
$ Html#href — Property in class Html
$ Html#hreflang — Property in class Html
Html::htmlToText() — Method in class Html

Converts given HTML code to plain text.

Html::href() — Method in class Html

Special setter for element's attribute.

Html::headers() — Method in class Html
Html::height() — Method in class Html
Html::hidden() — Method in class Html
Html::high() — Method in class Html
Html::hreflang() — Method in class Html
ImageColor::hex() — Method in class ImageColor

Accepts formats #RRGGBB, #RRGGBBAA, #RGB, #RGBA

ObjectHelpers::hasProperty() — Method in class ObjectHelpers

Checks if the public non-static property exists.

I

IOException — Class in namespace Nette

Failed to read from or write to a file or stream.

InvalidArgumentException — Class in namespace Nette

The provided argument has invalid type or format.

InvalidStateException — Class in namespace Nette

The object is in a state that does not allow the requested operation.

CachingIterator::isFirst() — Method in class CachingIterator

Is the current element the first one?

CachingIterator::isLast() — Method in class CachingIterator

Is the current element the last one?

CachingIterator::isEmpty() — Method in class CachingIterator
CachingIterator::isOdd() — Method in class CachingIterator
CachingIterator::isEven() — Method in class CachingIterator
ITranslator — Class in namespace Nette\Localization
Arrays::insertBefore() — Method in class Arrays

Inserts the contents of the $inserted array into the $array immediately before the $key.

Arrays::insertAfter() — Method in class Arrays

Inserts the contents of the $inserted array into the $array immediately after the $key.

Arrays::isList() — Method in class Arrays

Checks if the array is indexed in ascending order of numeric keys from zero, a.k.a list.

Arrays::invoke() — Method in class Arrays

Invokes all callbacks and returns array of results.

Arrays::invokeMethod() — Method in class Arrays

Invokes method on every object in an array and returns array of results.

Callback::invokeSafe() — Method in class Callback

Invokes internal PHP function with own error handler.

Callback::isStatic() — Method in class Callback

Checks whether PHP callback is function or static method.

FileSystem::isAbsolute() — Method in class FileSystem

Determines if the path is absolute.

FileSystem::isValidFilename() — Method in class FileSystem

Determines whether the string is a valid cross-platform filename without any path information.

Finder::in() — Method in class Finder

Searches in the given directories. Wildcards are allowed.

Finder::ignoreUnreadableDirs() — Method in class Finder

Ignores unreadable directories. By default, this is enabled.

Floats::isZero() — Method in class Floats
Floats::isInteger() — Method in class Floats
Floats::isLessThan() — Method in class Floats

Returns true if $a < $b

Floats::isLessThanOrEqualTo() — Method in class Floats

Returns true if $a <= $b

Floats::isGreaterThan() — Method in class Floats

Returns true if $a > $b

Floats::isGreaterThanOrEqualTo() — Method in class Floats

Returns true if $a >= $b

$ Html#id — Property in class Html
$ Html#integrity — Property in class Html
$ Html#inputmode — Property in class Html
$ Html#ismap — Property in class Html
$ Html#itemprop — Property in class Html
Html::isEmpty() — Method in class Html

Checks whether the element is a void (self-closing) element.

Html::insert() — Method in class Html

Inserts child node.

Html::id() — Method in class Html
Html::integrity() — Method in class Html
Html::inputmode() — Method in class Html
Html::ismap() — Method in class Html
Html::itemprop() — Method in class Html
IHtmlString — Class in namespace Nette\Utils
Image — Class in namespace Nette\Utils
Image::isTypeSupported() — Method in class Image

Checks whether the given image type is supported by the GD extension.

ImageColor — Class in namespace Nette\Utils

Represent RGB color (0..255) with opacity (0..1).

ImageException — Class in namespace Nette\Utils

An error occurred while working with the image.

ImageType — Class in namespace Nette\Utils

Type of image file.

Iterables — Class in namespace Nette\Utils

Utilities for iterables.

$ Paginator#itemsPerPage — Property in class Paginator
$ Paginator#itemCount — Property in class Paginator
Paginator::isFirst() — Method in class Paginator
Paginator::isLast() — Method in class Paginator
Process::isRunning() — Method in class Process

Checks if the process is currently running.

Process::isSuccess() — Method in class Process

Returns true if the process terminated with exit code 0.

Reflection::isBuiltinType() — Method in class Reflection
Reflection::isClassKeyword() — Method in class Reflection
Strings::indent() — Method in class Strings

Indents a multiline text from the left. Second argument sets how many indentation chars should be used, while the indent itself is the third argument (tab by default).

Strings::indexOf() — Method in class Strings

Returns position in characters of $nth occurence of $needle in $haystack or null if the $needle was not found.

Type::isUnion() — Method in class Type

Returns true whether it is a union type.

Type::isIntersection() — Method in class Type

Returns true whether it is an intersection type.

Type::isSimple() — Method in class Type

Checks whether it is a simple (non-compound) type. Single nullable types such as ?int are also considered simple.

Type::isSingle() — Method in class Type
Type::isBuiltin() — Method in class Type

Checks whether it is a simple PHP built-in type (int, string, bool, etc.).

Type::isClass() — Method in class Type

Checks whether it is a simple class or interface name (not a built-in type).

Type::isClassKeyword() — Method in class Type

Determines if type is special class name self/parent/static.

Validators::is() — Method in class Validators

Verifies that the value is of expected types separated by pipe.

Validators::isNumber() — Method in class Validators

Checks if the value is an integer or a float.

Validators::isNumericInt() — Method in class Validators

Checks if the value is an integer or a integer written in a string.

Validators::isNumeric() — Method in class Validators

Checks if the value is a number or a number written in a string.

Validators::isCallable() — Method in class Validators

Checks if the value is a syntactically correct callback.

Validators::isUnicode() — Method in class Validators

Checks if the value is a valid UTF-8 string.

Validators::isNone() — Method in class Validators

Checks if the value is 0, '', false or null.

Validators::isMixed() — Method in class Validators
Validators::isList() — Method in class Validators

Checks if a variable is a zero-based integer indexed array.

Validators::isInRange() — Method in class Validators

Checks if the value is in the given range [min, max], where the upper or lower limit can be omitted (null).

Validators::isEmail() — Method in class Validators

Checks if the value is a valid email address. It does not verify that the domain actually exists, only the syntax is verified.

Validators::isUrl() — Method in class Validators

Checks if the value is a valid URL address.

Validators::isUri() — Method in class Validators

Checks if the value is a valid URI address, that is, actually a string beginning with a syntactically valid schema.

Validators::isType() — Method in class Validators

Checks whether the input is a class, interface or trait.

Validators::isPhpIdentifier() — Method in class Validators

Checks whether the input is a valid PHP identifier.

Validators::isBuiltinType() — Method in class Validators

Determines if type is PHP built-in type. Otherwise, it is the class name.

Validators::isClassKeyword() — Method in class Validators

Determines if type is special class name self/parent/static.

Validators::isTypeDeclaration() — Method in class Validators

Checks whether the given type declaration is syntactically valid.

J

DateTime::jsonSerialize() — Method in class DateTime

Returns JSON representation in ISO 8601 (used by JavaScript).

FileSystem::joinPaths() — Method in class FileSystem

Joins all segments of the path and normalizes the result.

Json — Class in namespace Nette\Utils

JSON encoder and decoder.

JsonException — Class in namespace Nette\Utils

JSON encoding or decoding failed.

K

$ Html#kind — Property in class Html
Html::kind() — Method in class Html

L

$ CachingIterator#last — Property in class CachingIterator
Arrays::last() — Method in class Arrays
Arrays::lastKey() — Method in class Arrays
Finder::limitDepth() — Method in class Finder

Sets the maximum depth of entries.

$ Html#label — Property in class Html
$ Html#lang — Property in class Html
$ Html#list — Property in class Html
$ Html#loop — Property in class Html
$ Html#low — Property in class Html
Html::label() — Method in class Html
Html::lang() — Method in class Html
Html::list() — Method in class Html
Html::loop() — Method in class Html
Html::low() — Method in class Html
$ Paginator#lastPage — Property in class Paginator
$ Paginator#lastItemOnPage — Property in class Paginator
$ Paginator#last — Property in class Paginator
$ Paginator#length — Property in class Paginator
Strings::lower() — Method in class Strings

Converts all characters of UTF-8 string to lower case.

Strings::length() — Method in class Strings

Returns number of characters (not bytes) in UTF-8 string.

M

Mapper — Class in namespace Nette\Iterators
MemberAccessException — Class in namespace Nette

Cannot access the requested class property or method.

Arrays::mergeTree() — Method in class Arrays

Recursively merges two arrays. Useful for merging tree structures. Behaves like the + operator: key/value pairs from the second array are added to the first, with the first array's values taking precedence on key collisions. Nested arrays are merged recursively instead of replaced.

Arrays::map() — Method in class Arrays
Arrays::mapWithKeys() — Method in class Arrays
DateTime::modify() — Method in class DateTime
DateTime::modifyClone() — Method in class DateTime

Returns a modified copy of the object. Use (clone $dt)->modify(...) for better type safety.

FileSystem::makeWritable() — Method in class FileSystem

Sets file permissions to $fileMode or directory permissions to $dirMode.

$ Html#max — Property in class Html
$ Html#maxlength — Property in class Html
$ Html#minlength — Property in class Html
$ Html#media — Property in class Html
$ Html#method — Property in class Html
$ Html#min — Property in class Html
$ Html#multiple — Property in class Html
$ Html#muted — Property in class Html
Html::max() — Method in class Html
Html::maxlength() — Method in class Html
Html::minlength() — Method in class Html
Html::media() — Method in class Html
Html::method() — Method in class Html
Html::min() — Method in class Html
Html::multiple() — Method in class Html
Html::muted() — Method in class Html
Iterables::map() — Method in class Iterables

Returns a generator that transforms values by calling $transformer. Maintains original keys.

Iterables::mapWithKeys() — Method in class Iterables

Returns a generator that transforms keys and values by calling $transformer. If it returns null, the element is skipped.

Strings::match() — Method in class Strings

Searches the string for the first match of the regular expression and returns an array with the found expression and individual subexpressions, or null.

Strings::matchAll() — Method in class Strings

Searches the string for all occurrences matching the regular expression and returns an array of arrays containing the found expression and each subexpression.

N

$ CachingIterator#nextKey — Property in class CachingIterator
$ CachingIterator#nextValue — Property in class CachingIterator
CachingIterator::next() — Method in class CachingIterator

Forwards to the next element.

NotImplementedException — Class in namespace Nette

The requested feature is not implemented.

NotSupportedException — Class in namespace Nette

The requested operation is not supported.

Arrays::normalize() — Method in class Arrays

Converts array to associative: items with numeric keys are converted to keys, with $filling as their value.

FileSystem::normalizePath() — Method in class FileSystem

Normalizes .. and . and directory separators in path.

$ Html#name — Property in class Html
$ Html#novalidate — Property in class Html
Html::name() — Method in class Html
Html::novalidate() — Method in class Html
Strings::normalize() — Method in class Strings

Removes control characters, normalizes line breaks to \n, removes leading and trailing blank lines, trims end spaces on lines, normalizes UTF-8 to the normal form of NFC.

Strings::normalizeNewLines() — Method in class Strings

O

$ CachingIterator#odd — Property in class CachingIterator
OutOfRangeException — Class in namespace Nette

The requested array or collection index does not exist.

ArrayHash::offsetSet() — Method in class ArrayHash

Replaces or appends an item.

ArrayHash::offsetGet() — Method in class ArrayHash

Returns an item.

ArrayHash::offsetExists() — Method in class ArrayHash

Determines whether an item exists.

ArrayHash::offsetUnset() — Method in class ArrayHash

Removes the element from this list.

ArrayList::offsetSet() — Method in class ArrayList

Replaces or appends an item.

ArrayList::offsetGet() — Method in class ArrayList

Returns an item.

ArrayList::offsetExists() — Method in class ArrayList

Determines whether an item exists.

ArrayList::offsetUnset() — Method in class ArrayList

Removes the element at the specified position in this list.

FileSystem::open() — Method in class FileSystem

Opens file and returns resource.

$ Html#open — Property in class Html
$ Html#optimum — Property in class Html
Html::offsetSet() — Method in class Html

Inserts (replaces) child node (\ArrayAccess implementation).

Html::offsetGet() — Method in class Html

Returns child node (\ArrayAccess implementation).

Html::offsetExists() — Method in class Html

Exists child node? (\ArrayAccess implementation).

Html::offsetUnset() — Method in class Html

Removes child node (\ArrayAccess implementation).

Html::open() — Method in class Html
Html::optimum() — Method in class Html
ObjectHelpers — Class in namespace Nette\Utils

Nette\SmartObject helpers.

$ Paginator#offset — Property in class Paginator
Strings::ord() — Method in class Strings

Returns a code point of specific character in UTF-8 (number in range 0x0000..D7FF or 0xE000..10FFFF).

P

ArrayList::prepend() — Method in class ArrayList

Prepends an item.

Arrays::pick() — Method in class Arrays

Returns and removes the value of an item from an array. If it does not exist, it throws an exception, or returns $default, if provided.

FileSystem::platformSlashes() — Method in class FileSystem

Converts slashes to platform-specific directory separators.

$ Html#pattern — Property in class Html
$ Html#ping — Property in class Html
$ Html#placeholder — Property in class Html
$ Html#poster — Property in class Html
$ Html#preload — Property in class Html
Html::pattern() — Method in class Html
Html::ping() — Method in class Html
Html::placeholder() — Method in class Html
Html::poster() — Method in class Html
Html::preload() — Method in class Html
Image::place() — Method in class Image

Puts another image into this image. Left and top accepts pixels or percent.

Paginator — Class in namespace Nette\Utils

Paginating math.

$ Paginator#page — Property in class Paginator
$ Paginator#pageCount — Property in class Paginator
Process — Class in namespace Nette\Utils

Represents a process, which can be started and controlled (reading output, writing input, waiting for completion).

ProcessFailedException — Class in namespace Nette\Utils

The process failed to run successfully.

ProcessTimeoutException — Class in namespace Nette\Utils

The process execution exceeded its timeout limit.

Strings::platformNewLines() — Method in class Strings

Converts line endings to platform-specific, i.e. \r\n on Windows and \n elsewhere.

Strings::padLeft() — Method in class Strings

Pads a UTF-8 string to given length by prepending the $pad string to the beginning.

Strings::padRight() — Method in class Strings

Pads UTF-8 string to given length by appending the $pad string to the end.

Strings::pcre() — Method in class Strings

R

CachingIterator::rewind() — Method in class CachingIterator

Rewinds the Iterator.

Arrays::renameKey() — Method in class Arrays

Renames key in array.

DateTime::relativeToSeconds() — Method in class DateTime

Converts a relative time string (e.g. '10 minut') to seconds.

FileInfo::read() — Method in class FileInfo

Returns the contents of the file.

FileSystem::rename() — Method in class FileSystem

Renames or moves a file or a directory. Overwrites existing files and directories by default.

FileSystem::read() — Method in class FileSystem

Reads the content of a file.

FileSystem::readLines() — Method in class FileSystem

Reads the file content line by line. Because it reads continuously as we iterate over the lines, it is possible to read files larger than the available memory.

FileSystem::resolvePath() — Method in class FileSystem

Resolves a path against a base path. If the path is absolute, returns it directly, if it's relative, joins it with the base path.

$ Html#radiogroup — Property in class Html
$ Html#readonly — Property in class Html
$ Html#rel — Property in class Html
$ Html#required — Property in class Html
$ Html#reversed — Property in class Html
$ Html#rows — Property in class Html
$ Html#rowspan — Property in class Html
Html::removeAttribute() — Method in class Html

Unsets element's attribute.

Html::removeAttributes() — Method in class Html

Unsets element's attributes.

Html::removeChildren() — Method in class Html

Removes all children.

Html::render() — Method in class Html

Renders element's start tag, content and end tag. Pass indent level to enable pretty-printing.

Html::radiogroup() — Method in class Html
Html::readonly() — Method in class Html
Html::rel() — Method in class Html
Html::required() — Method in class Html
Html::reversed() — Method in class Html
Html::rows() — Method in class Html
Html::rowspan() — Method in class Html
Image::rgb() — Method in class Image

Returns RGB color (0..255) and transparency (0..127).

Image::resize() — Method in class Image

Scales an image. Width and height accept pixels or percent.

Image::rectangleWH() — Method in class Image

Draws a rectangle using top-left coordinates and dimensions instead of two corner coordinates.

Image::resolveColor() — Method in class Image

Resolves a color to a GD color index for the current image.

ImageColor::rgb() — Method in class ImageColor

Creates a color from RGB components (0..255) and opacity (0..1).

Iterables::repeatable() — Method in class Iterables
Process::runExecutable() — Method in class Process

Starts an executable with given arguments. Because the arguments are passed as an array, the shell is never involved, so they need no escaping and there is no risk of shell injection.

Process::runCommand() — Method in class Process

Starts a process from a command string interpreted by the shell (/bin/sh on POSIX, cmd.exe on Windows).

Random — Class in namespace Nette\Utils

Secure random string generator.

Reflection — Class in namespace Nette\Utils

PHP reflection helpers.

ReflectionMethod — Class in namespace Nette\Utils

ReflectionMethod preserving the original class name.

RegexpException — Class in namespace Nette\Utils

Regular expression pattern or execution failed.

Strings::reverse() — Method in class Strings

Reverses UTF-8 string.

Strings::replace() — Method in class Strings

Replaces all occurrences matching the regular expression $pattern, which can be a string or array in the form pattern => replacement.

Type::resolve() — Method in class Type

Resolves 'self', 'static' and 'parent' to the actual class name.

S

ShouldNotHappenException — Class in namespace Nette

Houston, we have a problem.

SmartObject — Class in namespace Nette

Strict class for better experience.

StaticClass — Class in namespace Nette

Prevents instantiation.

Arrays::searchKey() — Method in class Arrays
Arrays::some() — Method in class Arrays
DateTime::setDate() — Method in class DateTime
DateTime::setTime() — Method in class DateTime
Finder::sortBy() — Method in class Finder

Sets a comparison function for sorting entries within each directory.

Finder::sortByName() — Method in class Finder

Sorts files in each directory naturally by name.

Finder::size() — Method in class Finder

Restricts the search by size. $operator accepts "[operator] [size] [unit]" example: >=10kB

Helpers::splitClassName() — Method in class Helpers

Splits a class name into namespace and short class name.

$ Html#sandbox — Property in class Html
$ Html#scope — Property in class Html
$ Html#selected — Property in class Html
$ Html#shape — Property in class Html
$ Html#size — Property in class Html
$ Html#sizes — Property in class Html
$ Html#slot — Property in class Html
$ Html#span — Property in class Html
$ Html#spellcheck — Property in class Html
$ Html#src — Property in class Html
$ Html#srcdoc — Property in class Html
$ Html#srclang — Property in class Html
$ Html#srcset — Property in class Html
$ Html#start — Property in class Html
$ Html#step — Property in class Html
$ Html#style — Property in class Html
Html::setName() — Method in class Html

Changes element's name.

Html::setAttribute() — Method in class Html

Sets element's attribute.

Html::setHtml() — Method in class Html

Sets element's HTML content.

Html::setText() — Method in class Html

Sets element's textual content.

Html::startTag() — Method in class Html

Returns element's start tag.

Html::sandbox() — Method in class Html
Html::scope() — Method in class Html
Html::selected() — Method in class Html
Html::shape() — Method in class Html
Html::size() — Method in class Html
Html::sizes() — Method in class Html
Html::slot() — Method in class Html
Html::span() — Method in class Html
Html::spellcheck() — Method in class Html
Html::src() — Method in class Html
Html::srcdoc() — Method in class Html
Html::srclang() — Method in class Html
Html::srcset() — Method in class Html
Html::start() — Method in class Html
Html::step() — Method in class Html
Html::style() — Method in class Html
Image::setImageResource() — Method in class Image

Sets image resource.

Image::sharpen() — Method in class Image

Sharpens image a little bit.

Image::save() — Method in class Image

Saves image to the file. Quality is in the range 0..100 for JPEG (default 85), WEBP (default 80) and AVIF (default 30) and 0..9 for PNG (default 9).

Image::send() — Method in class Image

Outputs image to browser. Quality is in the range 0..100 for JPEG (default 85), WEBP (default 80) and AVIF (default 30) and 0..9 for PNG (default 9).

Iterables::some() — Method in class Iterables

Tests whether at least one element in the iterable passes the test implemented by the provided function.

ObjectHelpers::strictGet() — Method in class ObjectHelpers
ObjectHelpers::strictSet() — Method in class ObjectHelpers
ObjectHelpers::strictCall() — Method in class ObjectHelpers
ObjectHelpers::strictStaticCall() — Method in class ObjectHelpers
Paginator::setPage() — Method in class Paginator
Paginator::setBase() — Method in class Paginator
Paginator::setItemsPerPage() — Method in class Paginator
Paginator::setItemCount() — Method in class Paginator
Strings — Class in namespace Nette\Utils

String tools library.

Strings::startsWith() — Method in class Strings
Strings::substring() — Method in class Strings

Returns a part of UTF-8 string specified by starting position and length. If start is negative, the returned string will start at the start'th character from the end of string.

Strings::split() — Method in class Strings

Splits the string by a regular expression. Expressions in parentheses will be captured and returned as well.

T

Translator — Class in namespace Nette\Localization

Translation provider.

Translator::translate() — Method in class Translator

Translates the given string.

Arrays::toObject() — Method in class Arrays

Copies the elements of the $array array to the $object object and then returns it.

Arrays::toKey() — Method in class Arrays

Converts value to array key.

Callback::toString() — Method in class Callback

Converts PHP callback to textual form. Class or method may not exists.

Callback::toReflection() — Method in class Callback

Returns reflection for method or function used in PHP callback.

$ Html#tabindex — Property in class Html
$ Html#target — Property in class Html
$ Html#title — Property in class Html
$ Html#translate — Property in class Html
$ Html#type — Property in class Html
Html::toHtml() — Method in class Html

Converts to HTML.

Html::toText() — Method in class Html

Converts to plain text.

Html::tabindex() — Method in class Html
Html::target() — Method in class Html
Html::title() — Method in class Html
Html::translate() — Method in class Html
Html::type() — Method in class Html
Image::typeToExtension() — Method in class Image

Returns the file extension for the given image type.

Image::typeToMimeType() — Method in class Image

Returns the mime type for the given image type.

Image::toString() — Method in class Image

Outputs image to string. Quality is in the range 0..100 for JPEG (default 85), WEBP (default 80) and AVIF (default 30) and 0..9 for PNG (default 9).

ImageColor::toRGBA() — Method in class ImageColor

Returns GD-compatible color array [R, G, B, alpha].

Process::terminate() — Method in class Process

Terminates the running process if it is still running.

Reflection::toString() — Method in class Reflection

Returns a human-readable string representation of a reflection object.

Strings::toAscii() — Method in class Strings

Converts UTF-8 string to ASCII, ie removes diacritics etc.

Strings::truncate() — Method in class Strings

Truncates a UTF-8 string to given maximal length, while trying not to split whole words. Only if the string is truncated, an ellipsis (or something else set with third argument) is appended to the string.

Strings::trim() — Method in class Strings

Removes all left and right side spaces (or the characters passed as second argument) from a UTF-8 encoded string.

Type — Class in namespace Nette\Utils

PHP type reflection.

U

UnexpectedValueException — Class in namespace Nette

The returned value has unexpected type or format.

Callback::unwrap() — Method in class Callback

Unwraps closure created by Closure::fromCallable().

FileSystem::unixSlashes() — Method in class FileSystem

Converts backslashes to slashes.

$ Html#usemap — Property in class Html
Html::usemap() — Method in class Html
Strings::unixNewLines() — Method in class Strings

Converts line endings to \n used on Unix-like systems.

Strings::upper() — Method in class Strings

Converts all characters of a UTF-8 string to upper case.

UnknownImageFileException — Class in namespace Nette\Utils

The image file is invalid or in an unsupported format.

V

$ Html#value — Property in class Html
Html::value() — Method in class Html
Validators — Class in namespace Nette\Utils

Validation utilities.

$ Validators#validators — Property in class Validators

W

Arrays::wrap() — Method in class Arrays

Returns a copy of $array where every item is cast to string and wrapped with $prefix and $suffix.

FileInfo::write() — Method in class FileInfo

Writes the contents to the file.

FileSystem::write() — Method in class FileSystem

Writes the string to a file. Creates the parent directory if it does not exist. Pass null as $mode to skip chmod.

$ Html#width — Property in class Html
$ Html#wrap — Property in class Html
Html::width() — Method in class Html
Html::wrap() — Method in class Html
Process::wait() — Method in class Process

Finishes the process by waiting for its completion. While waiting, the captured output is read continuously and kept in memory; an optional callback is invoked with each new output/error chunk.

Process::writeStdInput() — Method in class Process

Writes data into the process' STDIN. If STDIN is closed, throws exception.

Strings::webalize() — Method in class Strings

Modifies the UTF-8 string to the form used in the URL, ie removes diacritics and replaces all characters except letters of the English alphabet and numbers with a hyphens.

Type::with() — Method in class Type

Returns a union type that accepts both the current type and the given type.

_

HtmlStringable::__toString() — Method in class HtmlStringable

Returns string in HTML format.

CachingIterator::__construct() — Method in class CachingIterator
Mapper::__construct() — Method in class Mapper
SmartObject::__call() — Method in class SmartObject
SmartObject::__callStatic() — Method in class SmartObject
SmartObject::__get() — Method in class SmartObject
SmartObject::__set() — Method in class SmartObject
SmartObject::__unset() — Method in class SmartObject
SmartObject::__isset() — Method in class SmartObject
DateTime::__construct() — Method in class DateTime
DateTime::__toString() — Method in class DateTime

Returns the date and time in the format 'Y-m-d H:i:s'.

FileInfo::__construct() — Method in class FileInfo
Html::__set() — Method in class Html

Sets element's attribute via property assignment.

Html::__get() — Method in class Html

Returns element's attribute via property access.

Html::__isset() — Method in class Html

Checks if element's attribute is set.

Html::__unset() — Method in class Html

Unsets element's attribute via property unset.

Html::__call() — Method in class Html

Sets or returns element's attribute via method call.

Html::__toString() — Method in class Html

Returns string in HTML format.

Html::__clone() — Method in class Html

Clones all children too.

Image::__construct() — Method in class Image

Wraps GD image.

Image::__toString() — Method in class Image

Outputs image to string.

Image::__call() — Method in class Image

Call to undefined method.

Image::__clone() — Method in class Image
Image::__serialize() — Method in class Image

Prevents serialization.

Iterables::__construct() — Method in class Iterables
Process::__destruct() — Method in class Process
ReflectionMethod::__construct() — Method in class ReflectionMethod
Type::__toString() — Method in class Type