wproDirectory

Availability: >= 3.0 

Type: PHP Class Object

Description: This class is used with the addDirectory method of the wysiwygPro class. It is used to add additional directories to the side bar on the file managers.

File to include: You do not need to include any additional files, it is available through the wysiwygPro.class.php file.

Example:

Configuring two image directories: 

// create and configure the first image directory:
$dir1 = new wproDirectory();

// set type of folder:
$dir1->type 'image';

// full file path of the folder:
$dir1->dir dirname(__FILE__).'/images1/';

// URL of the folder:
$dir1->URL dirname($_SERVER['SCRIPT_NAME']).'/images1/';

// Set access permissions:
$dir1->editImages true;
$dir1->renameFiles true;
$dir1->renameFolders true;
$dir1->deleteFiles true;
$dir1->deleteFolders true;
$dir1->copyFiles true;
$dir1->copyFolders true;
$dir1->moveFiles true;
$dir1->moveFolders true;
$dir1->upload true;
$dir1->overwrite true;
$dir1->createFolders true;

// add the directory to the editor
$editor->addDirectory($dir1);


// create and configure the second image directory:
$dir2 = new wproDirectory();

// set type of folder:
$dir2->type 'image';

// full file path of the folder:
$dir2->dir dirname(__FILE__).'/images2/';

// URL of the folder:
$dir2->URL dirname($_SERVER['SCRIPT_NAME']).'/images2/';

// Set access permissions:
$dir2->editImages true;
$dir2->renameFiles true;
$dir2->renameFolders true;
$dir2->deleteFiles true;
$dir2->deleteFolders true;
$dir2->copyFiles true;
$dir2->copyFolders true;
$dir2->moveFiles true;
$dir2->moveFolders true;
$dir2->upload true;
$dir2->overwrite true;
$dir2->createFolders true;

// add the directory to the editor
$editor->addDirectory($dir2); 


copyFiles
copyFiles Availability: >= 3.0 Type: Object Property Description: Can users
createFolders
createFolders Availability: >= 3.0 Type: Object Property Description: Can users
deleteFiles
deleteFiles Availability: >= 3.0 Type: Object Property Description: Can users
deleteFolders
deleteFolders Availability: >= 3.0 Type: Object Property Description: Can users
diskQuota
diskQuota Availability: >= 3.0 Type: Object Property Description: Restricts the
editImages
editImages Availability: >= 3.0 Type: Object Property Description: Can users
filters
filters Availability: >= 3.0 Type: Object Property Description: Hides and
icon
icon Availability: >= 3.0 Type: Object Property Description: Sets a
moveFiles
moveFiles Availability: >= 3.0 Type: Object Property Description: Can users
moveFolders
moveFolders Availability: >= 3.0 Type: Object Property Description: Can users
overwrite
overwrite Availability: >= 3.0 Type: Object Property Description: Can users
renameFiles
renameFiles Availability: >= 3.0 Type: Object Property Description: Can users
renameFolders
renameFolders Availability: >= 3.0 Type: Object Property Description: Can users
name
name Availability: >= 3.0 Type: Object Property Description: Sets a
setPermissions
setPermissions Availability: >= 3.0 Type: Object Method Description: Provides a
type
type Availability: >= 3.0 Type: Object Property Description: Sets the
upload
upload Availability: >= 3.0 Type: Object Property Description: Can users