Method |
Description |
|
__construct ( Grav\Common\Grav $grav, string $base, string $location, string $route ) |
Constructor. |
|
accessLevels ( ) : array |
Get all access levels |
|
addPermissions ( $permissions ) |
Adds a permission to the permissions array |
|
adminLanguages ( ) : array |
Return the languages available in the admin |
|
authenticate ( array $data, array $post ) : boolean |
Authenticate user. |
|
authorize ( string $action = 'admin.login' ) : boolean |
Checks user authorisation to the action. |
|
blueprints ( string $type ) : Grav\Common\Data\Blueprint |
Returns blueprints for the given type. |
|
checkPackagesCanBeInstalled ( $packages ) : boolean |
Check the passed packages list can be updated |
|
cleanContent ( $content ) |
|
|
configurations ( ) : array |
Return the found configuration blueprints |
|
data ( string $type, array $post = [] ) : mixed |
Gets configuration data. |
|
dateformatToMomentJS ( string $php_format ) : string |
|
|
dependenciesThatCanBeRemovedWhenRemoving ( string $slug ) : array | boolean |
Generate an array of dependencies for a package, used to generate a list of
packages that can be removed when removing a package. |
|
field ( string $name ) : string |
Converts dot notation to array notation. |
|
findFormFields ( $type, $fields, $found_fields = [] ) |
|
|
getDependenciesNeededToInstall ( array $packages ) : array | boolean |
Get an array of dependencies needed to be installed or updated for a list of packages
to be installed. |
|
getFeed ( ) : mixed |
Get https://getgrav.org news feed |
|
getLastPageName ( ) : string |
Static helper method to return the last used page name |
|
getLastPageRoute ( ) : string |
Static helper method to return the last used page route |
|
getNonce ( ) : string |
Static helper method to return the admin form nonce |
|
getPackageFromGPM ( $package_slug ) |
|
|
getPackagesThatDependOnPackage ( string $slug ) : array | boolean |
Get list of packages that depend on the passed package slug |
|
getPage ( $path ) : Grav\Common\Page\Page |
Returns the page creating it if it does not exist. |
|
getPagePathFromToken ( $path ) |
|
|
getPermissions ( ) : array |
Gets the entire permissions array |
|
getRouteDetails ( ) |
|
|
getTempDir ( ) |
|
|
gpm ( ) : Grav\Common\GPM\GPM |
Get the GPM instance |
|
guessDateFormat ( $date ) : string |
Guest date format based on euro/US |
|
isPremiumProduct ( object $info ) : boolean |
Determine if the plugin or theme info passed is premium |
|
isTeamGrav ( object $info ) : boolean |
Determine if the plugin or theme info passed is from Team Grav |
|
lastBackup ( ) : array |
Search in the logs when was the latest backup made |
|
latestPages ( integer $count = 10 ) : array | null |
Used by the Dashboard in the admin to display the X latest pages
that have been modified |
|
license ( $package_slug ) |
|
|
logEntry ( ) : string |
Get log file for fatal errors. |
|
messages ( string $type = null ) : array |
Fetch and delete messages from the session queue. |
|
modularTypes ( ) : array |
Get all modular template types |
|
page ( boolean $route = false, null $path = null ) : Grav\Common\Page\Page |
Returns edited page. |
|
pagesCount ( ) : array |
Count the pages |
|
phpinfo ( ) : string |
Renders phpinfo |
|
plugins ( boolean $local = true ) : mixed |
Get all plugins. |
|
processNotifications ( $notifications ) |
|
|
route ( ) : string |
Static helper method to return current route. |
|
routes ( boolean $unique = false ) : array |
Get all routes. |
|
session ( ) : RocketTheme\Toolbox\Session\Session |
Get current session. |
|
setMessage ( string $msg, string $type = 'info' ) |
Add message into the session queue. |
|
setPermissions ( $permissions ) |
Sets the entire permissions array |
|
siteLanguages ( ) : array |
Return the languages available in the site |
|
themes ( boolean $local = true ) : mixed |
Get all themes. |
|
translate ( array | mixed $args, mixed $languages = null ) : string |
Translate a string to the user-defined language |
|
types ( ) : array |
Get all template types |
|
validateDate ( $date, $format ) |
|
|