App\Core_EditorManager

Inherited from cmsApplication_CategorizedList

Protected Attributes

protected $default_editor 
protected $override_limited_profile_id 
protected $override_full_profile_id 

Protected Methods

protected initializeMyWysiwygEditorByProfileID(int $profile_id)
Inits $this->default_editor

Public Methods

public __construct()
public arrayfindDuplicateCategories(array $data)
Returns duplicate item, given item title $SystemDB
public getDefaultWYSIWYGID($type='frontend')
public arraygetWysiwygEditorByName(string $virtual_filename)
Return the editor by virtual filename $SystemDB
public arraygetItemsByVirtualFilename(string $input_filename, int $category_id=-1)
Returns one or more item with the same virtual filename. Used in later classes. There's a parameter $category_id that's not supposed to be in this class but it's there for compatibility with inherited classes $SystemDB
public viewInitScript(int $profile_id)
Loading WYSIWYG configuration script
public overrideFullPrivilegeWysiwygEditor(int $profile_id)
Override the default full provilege WYSIWYG editor. Usually called by admin class with specific need for a specific editor
public overrideLimitedPrivilegeWysiwygEditor(int $profile_id)
Override the default limited WYSIWYG editor. Usually called by admin class with specific need for a specific editor
public runDefaultLimitedPrivilegeWysiwygEditor()
Run the default WYSIWYG profile - backend $SystemConfig
public runDefaultFullPrivilegeWysiwygEditor()
Run the default WYSIWYG profile - backend $SystemConfig
public runWysiwygEditorByProfileID(int $profile_id)
Run the WYSIWYG Editor by ID $HTMLHeader $SystemConfig $SystemLog
public spellCheck($editor_name)
public callEditorFunction($command)
public arraygetProfilesByEditorName(string $editor_name)
Return the editor by virtual filename $SystemDB
public booleancreateEmptyProfile(string $editor_name, string $profile_code_name, string $profile_name, bool $is_system, array $config)
Create an empty editor profile and populate it with data $SystemDB type $WYSIWYGEditor
public booleanRun(string $command)
Runs command. If return value is true, then it will be displayed as a full page If return value is false, AJAX method is assumed

Public Static Methods

public static getEditorInstanceByProfileID(int $id)
Returns an editor instance
public static stringgetProfileNameByID(int $profile_id)
Returns the editor name by profile id $SystemDB
public static stringgetClassNameByProfileID(int $profile_id)
Returns the editor name by profile id $SystemDB
public static arraygetAllWysiwygProfiles()
Return the editor by virtual filename $SystemDB