PHP Class CKFinder_Connector_CommandHandler_CommandHandlerBase

Show file Open project: forkcms/forkcms

Protected Properties

Property Type Description
$_connector CKFinder_Connector_Core_Connector CKFinder_Connector_Core_Connector object
$_currentFolder CKFinder_Connector_Core_FolderHandler CKFinder_Connector_Core_FolderHandler object
$_errorHandler CKFinder_Connector_ErrorHandler_Base | CKFinder_Connector_ErrorHandler_FileUpload | CKFinder_Connector_ErrorHandler_Http Error handler object

Public Methods

Method Description
__construct ( )
getFolderHandler ( ) : CKFinder_Connector_Core_FolderHandler Get Folder Handler

Protected Methods

Method Description
checkConnector ( ) Check whether Connector is enabled
checkCsrfToken ( string $tokenParamName = 'ckCsrfToken', string $tokenCookieName = 'ckCsrfToken', integer $minTokenLength = 32 ) : boolean Checks if the request contains a valid token that matches the value sent in the cookie.
checkRequest ( ) Check request

Method Details

__construct() public method

public __construct ( )

checkConnector() protected method

Check whether Connector is enabled
protected checkConnector ( )

checkCsrfToken() protected method

Checks if the request contains a valid token that matches the value sent in the cookie.
See also: https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)_Prevention_Cheat_Sheet#Double_Submit_Cookies
protected checkCsrfToken ( string $tokenParamName = 'ckCsrfToken', string $tokenCookieName = 'ckCsrfToken', integer $minTokenLength = 32 ) : boolean
$tokenParamName string
$tokenCookieName string
$minTokenLength integer
return boolean true if token is valid, false otherwise

checkRequest() protected method

Check request
protected checkRequest ( )

getFolderHandler() public method

Get Folder Handler
public getFolderHandler ( ) : CKFinder_Connector_Core_FolderHandler
return CKFinder_Connector_Core_FolderHandler

Property Details

$_connector protected property

CKFinder_Connector_Core_Connector object
protected CKFinder_Connector_Core_Connector $_connector
return CKFinder_Connector_Core_Connector

$_currentFolder protected property

CKFinder_Connector_Core_FolderHandler object
protected CKFinder_Connector_Core_FolderHandler $_currentFolder
return CKFinder_Connector_Core_FolderHandler

$_errorHandler protected property

Error handler object
protected CKFinder_Connector_ErrorHandler_Base|CKFinder_Connector_ErrorHandler_FileUpload|CKFinder_Connector_ErrorHandler_Http $_errorHandler
return CKFinder_Connector_ErrorHandler_Base | CKFinder_Connector_ErrorHandler_FileUpload | CKFinder_Connector_ErrorHandler_Http