Tangra_Module_Uninstaller __construct(
array
$params
)
|
|
Constructor
Parameter $params is a structured array that must have at least key 'module-conf-path'. Other parameters have to be fed as key-value pairs.
Example $params[''module-conf-path'] = '/some/path';
Parameters:
void check_params(
array
$params
)
|
|
Checks if all required parameters are present
Parameters:
API Tags:
Information Tags:
string generate_drop_columns_sql(
string
$str
)
|
|
Generates SQL for drop column
Parameters:
API Tags:
| Return: | SQL Drop column statement |
| Internal: | |
| Access: | private |
string get_module_conf_path(
)
|
|
Gets module conf path
API Tags:
string get_site_root_dir(
)
|
|
Gets site root dir
API Tags:
boolean is_parameter_present(
array
$params, string
$parameter
)
|
|
Checks if parameter is present
Parameters:
|
array |
$params: |
|
|
string |
$parameter: |
Parameter to be checked |
API Tags:
Loads files list
API Tags:
| Internal: | |
| Access: | private |
array load_site_dirs(
string
$root_dir
)
|
|
Loads hidden, htdocs, scratch and ext_inc paths and returns them as array
Parameters:
|
string |
$root_dir: |
Path to site's root dir |
API Tags:
array prepare_remove_list(
array
$files_list
)
|
|
Prepares list of files to be removed expanding paths to full paths
Can handle with files.list with releative paths
Parameters:
API Tags:
| Internal: | |
| Access: | private |
array remove_db_objects(
)
|
|
Removes DB objects - tables and/or columns
API Tags:
Removes module's files
API Tags:
Sets DBC
Parameters:
API Tags:
void set_module_conf_path(
string
$module_conf_path
)
|
|
Sets module conf path
Parameters:
|
string |
$module_conf_path: |
|
API Tags:
Performs uninstall of the module
API Tags: