프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$blacklist_views | array | ||
$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 |
메소드 | 설명 | |
---|---|---|
execute ( ) : boolean | Performs a task. | |
redirect ( ) | Redirect to the route stored in $this->redirect | |
setRedirect ( string $path, integer $code = 303 ) | Sets the page redirect. | |
taskFilesSessionRemove ( ) : boolean | Removes a file from the flash object session, before it gets saved | |
taskFilesUpload ( ) : boolean | Handles ajax upload for files. | |
taskRemoveMedia ( ) : boolean | Handles removing a media file |
메소드 | 설명 | |
---|---|---|
authorizeTask ( string $task = '', array $permissions = [] ) : boolean | Checks if the user is allowed to perform the given task with its associated permissions | |
canEditMedia ( string $type = 'media' ) : boolean | Determine if the user can edit media | |
cleanDataKeys ( $source = [] ) | ||
dataPermissions ( ) : array | Gets the permissions needed to access a given view | |
filterAcceptedFiles ( $file, $settings ) | ||
getPost ( array $post ) : array | Prepare and return POST data. | |
isMultilang ( ) : boolean | Return true if multilang is active | |
jsonDecode ( array $data ) : array | Recursively JSON decode data. | |
normalizeFiles ( array $data, string $key = '' ) : object | Internal method to normalize the $_FILES array | |
prepareData ( array $data ) : array | Gets the configuration data for a given view & post | |
storeFiles ( Grav\Common\Page\Page | Grav\Common\Data\Data $obj ) : Grav\Common\Page\Page | Grav\Common\Data\Data | ||
taskGetFilesInFolder ( ) | Used by the filepicker field to get a list of files in a folder. | |
taskRemoveFileFromBlueprint ( ) : boolean | Handle deleting a file from a blueprint | |
validateNonce ( ) |
protected canEditMedia ( string $type = 'media' ) : boolean | ||
$type | string | |
리턴 | boolean | True if the media action is allowed |
protected dataPermissions ( ) : array | ||
리턴 | array | An array of permissions |
protected isMultilang ( ) : boolean | ||
리턴 | boolean | True if multilang is active |
protected jsonDecode ( array $data ) : array | ||
$data | array | |
리턴 | array |
protected prepareData ( array $data ) : array | ||
$data | array | |
리턴 | array |
public setRedirect ( string $path, integer $code = 303 ) | ||
$path | string | The path to redirect to |
$code | integer | The HTTP redirect code |
protected storeFiles ( Grav\Common\Page\Page | Grav\Common\Data\Data $obj ) : Grav\Common\Page\Page | Grav\Common\Data\Data | ||
$obj | Grav\Common\Page\Page | Grav\Common\Data\Data | |
리턴 | Grav\Common\Page\Page | Grav\Common\Data\Data |
public taskFilesSessionRemove ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
public taskFilesUpload ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
protected taskGetFilesInFolder ( ) |
protected taskRemoveFileFromBlueprint ( ) : boolean | ||
리턴 | boolean | True if the action was performed. |
public taskRemoveMedia ( ) : boolean | ||
리턴 | boolean | True if the action was performed |