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); 

Properties and methods:

 


This online documentation specifically covers version 3.0 and above, developers using earlier versions should refer to their PDF or MS-Word manual that was included in the product download.

WysiwygPro.com