- Queries
- All Atoms
- Search
- Advanced Search
Diviner All Atoms
All Atoms
All Atoms
- Method
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- This is an iterator version of `array_chunk()`.
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Models a directed graph in a generic way that works well with graphs stored in a database, and allows you to perform operations like cycle detection.
- Class
- Internal cycle detection implementation. Recursively walks the graph, keeping track of where it's been, and returns the first cycle it finds.
- Method
- Detect if there are any cycles reachable from a given node.
- Method
- Load the graph, building it out so operations can be performed on it. This constructs the graph level-by-level, calling @{method:loadEdges} to expand the graph at each stage until it is complete.
- Method
- Get the nodes in topological order, or some roughly similar order if the graph contains cycles.
- Method
- Get the nodes in topological order.
- Method
- Method
- Seed the graph with known nodes. Often, you will provide the candidate edges that a user is trying to create here, or the initial set of edges you know about.
- Method
- Load the edges for a list of nodes. You must override this method. You will be passed a list of nodes, and should return a dictionary mapping each node to the list of nodes that can be reached by following its the edges which originate at it: for example, the child nodes of an object which has a parent-child relationship to other objects.
- Method
- Concrete subclass of @{class:AbstractDirectedGraph} which can not load any data from external sources.
- Class
- Method
- Class
- This allows you to sort a list of sort vectors using @{function:msortv}.
- Method
- Method
- Method
- Method
- Simple iterator that loads results page-by-page and handles buffering. In particular, this maps well to iterators that load database results page by page and allows you to implement an iterator over a large result set without needing to hold the entire set in memory.
- Class
- Method
- By default, the iterator assigns a "natural" key (0, 1, 2, ...) to each result. This method is intentionally nonfinal so you can substitute a different behavior by overriding it if you prefer.
- Method
- Method
- Method
- Method
- Configure the page size. Note that implementations may ignore this.
- Method
- Get the configured page size.
- Method
- Called when the iterator needs a page of results. You should load the next result page and update your internal cursor to point past it.
- Method
- Called when @{method:rewind} is invoked. You should reset any internal cursor your implementation holds.
- Method
- Function
- Parse a human-readable byte description (like "6MB") into an integer.
- Function
- Format a byte count for human consumption, e.g. "10MB" instead of "10485760".
- Function
- Format a relative time (duration) into weeks, days, hours, minutes, seconds, but unlike phabricator_format_relative_time, does so for more than just the largest unit.
- Function
- Function
- Function
- String-like object which reduces the cost of managing large strings. This is particularly useful for buffering large amounts of data that is being passed to `fwrite()`.
- Class
- Remove a specified number of bytes from the head of the rope.
- Method
- Return the entire rope as a normal string.
- Method
- Get prefix bytes of the rope, up to some maximum size.
- Method
- Get an arbitrary, nonempty prefix of the rope.
- Method
- Get the length of the rope.
- Method
- Append a string to the rope.
- Method
- Get information about the current execution environment.
- Class
- If the PHP configuration setting "variables_order" does not include "E", the `$_ENV` superglobal is not populated with the containing environment. For details, see T12071.
- Method
- Method
- Truncate a UTF-8 string to a some maximum number of bytes, codepoints, or glyphs.
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Class
- Method
- Method
- Method
- Method
- Method