프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$data | array | null | ||
$grav | Grav\Common\Grav | ||
$post | array | ||
$route | string | ||
$task | string | ||
$view | string |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$admin | |||
$redirect | string | ||
$redirectCode | integer | ||
$upload_errors | |||
$uri | Grav\Common\Uri |
메소드 | 설명 | |
---|---|---|
checkValidFrontmatter ( string $frontmatter ) : boolean | ||
determineFilenameIncludingLanguage ( string $current_filename, string $language ) : string | The what should be the new filename when saving as a new language | |
initialize ( Grav\Common\Grav $grav = null, string $view = null, string $task = null, string $route = null, array $post = null ) | ||
taskActivate ( ) : boolean | Set the default theme. | |
taskContinue ( ) : boolean | Continue to the new page. | |
taskDisable ( ) : boolean | Disable a plugin. | |
taskEnable ( ) : boolean | Enable a plugin. | |
taskReset ( ) : boolean | Handle the reset password action. | |
taskSave ( ) : boolean | Handles form and saves the input data if its valid. | |
taskSaveNewFolder ( ) : boolean | Handles creating an empty page folder (without markdown file) | |
taskUninstall ( ) : boolean | Handles uninstalling plugins and themes | |
taskUpdategrav ( ) : boolean | Handles updating Grav |
메소드 | 설명 | |
---|---|---|
findFirstAvailable ( string $item, Grav\Common\Page\Page $page ) : string | Find the first available $item ('slug' | 'folder') for a page Used when copying a page, to determine the first available slot | |
prepareData ( array $data ) : object | Gets the configuration data for a given view & post | |
preparePage ( Grav\Common\Page\Page $page, boolean $clean_header = false, string $language = '' ) | Prepare a page to be stored: update its folder, name, template, header and content | |
taskAddmedia ( ) : boolean | Handles adding a media file to a page | |
taskBackup ( ) : boolean | Handle the backup action | |
taskClearCache ( ) : boolean | Clear the cache. | |
taskCopy ( ) : boolean | Save page as a new copy. | |
taskDelete ( ) : boolean | Delete page. | |
taskDelmedia ( ) : boolean | Handles deleting a media file from a page | |
taskFilterPages ( ) | Handles filtering the page by modular/visible/routable in the pages list. | |
taskForgot ( ) : boolean | Handle the email password recovery procedure. | |
taskGetNewsFeed ( ) | ||
taskGetNotifications ( ) | Get Notifications from cache. | |
taskGetPackagesDependencies ( ) : boolean | Handle getting a new package dependencies needed to be installed | |
taskGpmRelease ( ) | Toggle the gpm.releases setting | |
taskHideNotification ( ) : boolean | Clear the cache. | |
taskInstallDependenciesOfPackages ( ) | ||
taskInstallPackage ( ) | ||
taskKeepAlive ( ) | Keep alive | |
taskListmedia ( ) : boolean | Determines the file types allowed to be uploaded | |
taskLogin ( ) : boolean | Handle login. | |
taskLogout ( ) : boolean | Handle logout. | |
taskProcessMarkdown ( ) : boolean | Process the page Markdown | |
taskProcessNotifications ( ) : boolean | Process Notifications. Store the notifications object locally. | |
taskRemovePackage ( ) : boolean | Handle removing a package | |
taskReorder ( ) : boolean | Reorder pages. | |
taskSaveas ( ) : boolean | Save the current page in a different language. Automatically switches to that language. | |
taskSwitchlanguage ( ) | Switch the content language. Optionally redirect to a different page. |
메소드 | 설명 | |
---|---|---|
getNextOrderInFolder ( $path ) : string | Get the next available ordering number in a folder |
public checkValidFrontmatter ( string $frontmatter ) : boolean | ||
$frontmatter | string | |
리턴 | boolean |
public determineFilenameIncludingLanguage ( string $current_filename, string $language ) : string | ||
$current_filename | string | the current file name, including .md. Example: default.en.md |
$language | string | The new language it will be saved as. Example: 'it' or 'en-GB'. |
리턴 | string | The new filename. Example: 'default.it' |
protected findFirstAvailable ( string $item, Grav\Common\Page\Page $page ) : string | ||
$item | string | |
$page | Grav\Common\Page\Page | |
리턴 | string | The first available slot |
protected prepareData ( array $data ) : object | ||
$data | array | |
리턴 | object |
protected preparePage ( Grav\Common\Page\Page $page, boolean $clean_header = false, string $language = '' ) | ||
$page | Grav\Common\Page\Page | |
$clean_header | boolean | |
$language | string |
public taskActivate ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskAddmedia ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskBackup ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskClearCache ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
public taskContinue ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskDelete ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskDelmedia ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
public taskDisable ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
public taskEnable ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskFilterPages ( ) |
protected taskForgot ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskGetPackagesDependencies ( ) : boolean | ||
리턴 | boolean |
protected taskHideNotification ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskListmedia ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskLogout ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskProcessMarkdown ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskProcessNotifications ( ) : boolean | ||
리턴 | boolean |
protected taskRemovePackage ( ) : boolean | ||
리턴 | boolean |
protected taskReorder ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
public taskSaveNewFolder ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskSaveas ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskSwitchlanguage ( ) |
public taskUninstall ( ) : boolean | ||
리턴 | boolean | True if the action was performed |
public taskUpdategrav ( ) : boolean | ||
리턴 | boolean | True if the action was performed |