Code Index

Namespaces

Classes


Class CKFinder.dataTypes.ResourceType

Class Summary
Constructor Attributes Constructor Name and Description
 
Resource data type.
Method Summary
Method Attributes Method Name and Description
 
Returns the list of allowed extensions
 
Returns root folder of current resource type.
 
isExtensionAllowed(extension)
Checks whether given extension is allowed in the current resource type.
Class Detail
CKFinder.dataTypes.ResourceType(app, definition)
Since: 2.0
Resource data type.
Note: the CKFinder.dataTypes namespace is not directly accessible (CKFinder.dataTypes is undefined).
Data types are used internally by CKFinder and returned by many functions, like CKFinder.dataTypes.Folder#getResourceType.
var resourceType = api.getSelectedFolder().getResourceType();
Parameters:
{Undefined} app
{Undefined} definition
See:
CKFinderAPI.resourceTypes
Method Detail
{String} allowedExtensions()
Since: 2.0
Returns the list of allowed extensions
var folder = api.getSelectedFolder();
if ( folder )
	alert( folder.getResourceType().allowedExtensions() );
Returns:
{String} Allowed extensions. Eg. "gif,jpg,png".

{CKFinder.dataTypes.Folder} getRootFolder()
Since: 2.0
Returns root folder of current resource type.
Returns:
{CKFinder.dataTypes.Folder}

{Boolean} isExtensionAllowed(extension)
Since: 2.0
Checks whether given extension is allowed in the current resource type.
Parameters:
{String} extension
File extension.
Returns:
{Boolean} True if extension is allowed.

Copyright © 2007-2015, CKSource - Frederico Knabben. All rights reserved.