PagesLoader::count() PagesLoader::count() PagesLoader::count($selector = '', $options = []) | int | Count and return how many pages will match the given selector string | |
PagesLoader::debug() PagesLoader::debug() PagesLoader::debug($debug = null) | bool | Get or set debug state | |
PagesLoader::find() PagesLoader::find($selector) PagesLoader::find($selector, $options = []) | PageArray array | Given a Selector string, return the Page objects that match in a PageArray. | |
PagesLoader::findByName() PagesLoader::findByName(string $name) PagesLoader::findByName(string $name, array $options = []) | array NullPage Page PageArray | Find page(s) by name | |
PagesLoader::findCache() PagesLoader::findCache($selector) PagesLoader::findCache($selector, $expire = 60, array $options = []) | PageArray array | Find pages and cache the result for specified period of time | |
PagesLoader::findMin() PagesLoader::findMin($selector) PagesLoader::findMin($selector, array $options = []) | PageArray | Minimal find for reduced or delayed overload in some circumstances | |
PagesLoader::findOne() PagesLoader::findOne($selector) PagesLoader::findOne($selector, $options = []) | Page NullPage | Like find() but returns only the first match as a Page object (not PageArray) | |
PagesLoader::get() PagesLoader::get($selector) PagesLoader::get($selector, array $options = []) | Page NullPage | Returns the first page matching the given selector with no exclusions | |
PagesLoader::getAutojoin() PagesLoader::getAutojoin() PagesLoader::getAutojoin() | bool | Get whether autojoin is enabled for page loading queries | |
PagesLoader::getById() PagesLoader::getById($_ids) PagesLoader::getById($_ids, $template = null, $parent_id = null) | PageArray Page NullPage | Given an array or CSV string of Page IDs, return a PageArray | |
PagesLoader::getByPath() PagesLoader::getByPath(string $path) PagesLoader::getByPath(string $path, $options = []) | Page int | Get a page by its path, similar to $pages->get('/path/to/page/') but with more options | |
PagesLoader::getLastPageFinder() PagesLoader::getLastPageFinder() PagesLoader::getLastPageFinder() | PageFinder null | Get last used instance of PageFinder (for debugging purposes) | |
PagesLoader::getNativeColumnValue() PagesLoader::getNativeColumnValue($id, string $column) PagesLoader::getNativeColumnValue($id, string $column) | int string bool | Get value of of a native column in pages table for given page ID | |
PagesLoader::getNativeColumns() PagesLoader::getNativeColumns() PagesLoader::getNativeColumns() | array | Returns an array of all columns native to the pages table | |
PagesLoader::getNumChildren() PagesLoader::getNumChildren($page) PagesLoader::getNumChildren($page) | int | Load total number of children from DB for given page | |
PagesLoader::getOutputFormatting() PagesLoader::getOutputFormatting() PagesLoader::getOutputFormatting() | bool | Get whether loaded pages have their outputFormatting turned on or off | |
PagesLoader::getPath() PagesLoader::getPath($id) PagesLoader::getPath($id, $options = []) | string | Given an ID return a path to a page, without loading the actual page | |
PagesLoader::getTotalPagesLoaded() PagesLoader::getTotalPagesLoaded() PagesLoader::getTotalPagesLoaded() | int | Return the total quantity of pages loaded by getById() | |
PagesLoader::has() PagesLoader::has($selector) PagesLoader::has($selector, bool $verbose = false, array $options = []) | array int | Is there any page that matches the given $selector in the system? (with no exclusions) | |
PagesLoader::isLoading() PagesLoader::isLoading() PagesLoader::isLoading() | bool | Are we currently loading pages? | |
PagesLoader::isNativeColumn() PagesLoader::isNativeColumn($columnName) PagesLoader::isNativeColumn($columnName) | bool | Is the given column name native to the pages table? | |
PagesLoader::setAutojoin() PagesLoader::setAutojoin() PagesLoader::setAutojoin(bool $autojoin = true) | (nothing) | Enable or disable use of autojoin for all queries | |
PagesLoader::setOutputFormatting() PagesLoader::setOutputFormatting() PagesLoader::setOutputFormatting(bool $outputFormatting = true) | (nothing) | Set whether loaded pages have their outputFormatting turned on or off | |