API - Hertox82/lt-pm GitHub Wiki
API
The PackageManger
have this API method:
export declared class PackageManager {
/**
* This function return a List of Latest Plugin avaiable
* @return Plugin[]
*/
public getLatestPluginRepo(): Plugin[];
/**
* this function return the list of latest template
* @return Template []
*/
public getLatestTemplateRepo(): Template[];
/**
* This function return all Plugin Installed into CMS
* @returns Plugin[]
*/
public getListPluginInstalled(): Plugin[];
/**
* This function return all Template Installed into CMS
* @returns Template[]
*/
public getListTemplateInstalled(): Template[];
/**
* This function set installed Plugin into CMS
* @param installedPlugin Plugin[]
*/
public setListPluginInstalled(installedPlugin: Plugin[]);
/**
* This function set installed Template into CMS
* @param installedTemplate Template[]
*/
public setListTemplateInstalled(installedTemplate: Template[]);
/**
* Install the Plugin from Folder compressed
* @param plugin Plugin
*/
public installPlugin(plugin: Plugin);
/**
* This Install the Template from folder compressed
* @param template Template
*/
public installTemplate(template: Template)
/**
* Only erase Plugins Folder and maintain the compressedFile
* @param plugin Plugin
*/
public uninstallPlugin(plugin: Plugin);
/**
* Only erase Template Folder and maintain the compressedFile
* @param template Template
*/
public uninstallTemplate(template: Template);
/**
* Compress the Plugin into folder compressed
* @param plugin Plugin
*/
public packagePlugin(plugin: Plugin);
/**
* This compress the Template into the .tgz file
* @param template Template
*/
public packageTemplate(template: Template);
/**
* Erase the compressed file
* @param plugin Plugin
*/
public deletePlugin(plugin: Plugin);
/**
* this function erase compressed file
* @param template Template
*/
public deleteTemplate(template: Template);
}