XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
add_keywords_description ($description, $keywords='', $limit=50) | |
comments_form ($obj, $params, $type='module', $file=array()) | |
configs ($name='') | |
create_toolbar () | |
current_url () | |
delete_comments ($module, $params) | |
get () | |
get_comments ($obj, $params, $type='module', $parent=0, $user=null, $assign=true) | |
get_groups_names ($groups, $list=true) | |
get_image ($id, $size='') | |
get_modules_list ($active=-1) | |
get_num_records ($table, $filters='') | |
installed_plugins () | |
load_images_categories ($filters='ORDER BY id_cat DESC', $object=false) | |
load_module ($mod) | |
load_plugin ($name) | |
plugin_installed ($dir) | |
plugin_settings ($dir, $values=false) | |
urlencode_array ($array, $name, $separator='&') | |
Private Member Functions | |
getConfValueForOutput ($confs) | |
Private Attributes | |
$plugin_settings = array() | |
Definition at line 11 of file functions.php.
RMFunctions::add_keywords_description | ( | $description, | |
$keywords = '' , |
|||
$limit = 50 |
|||
) |
Add keywords and description metas
string | Description for meta content |
string | Keywords for meta content. If hti svalue is empty then will generate from description |
int | Limit of keywrods to generate |
Definition at line 571 of file functions.php.
References $id, $limit, $tpl, RMTemplate\get(), and TextCleaner\getInstance().
RMFunctions::comments_form | ( | $obj, | |
$params, | |||
$type = 'module' , |
|||
$file = array() |
|||
) |
Create the comments form You need to include the template 'rmc_comments_form.html' where you wish to show this form
string | Object name (eg. mywords, qpages, etc.) |
string | Params to be included in form |
string | Object type (eg. module, plugin, etc.) |
string | File path to get the methods to update comments |
Definition at line 298 of file functions.php.
References $file, $type, $xoopsUser, __(), current_url(), RMEvents\get(), RMTemplate\get(), and RMCURL.
RMFunctions::configs | ( | $name = '' | ) |
Get Common Utilities Configurations
Definition at line 28 of file functions.php.
References $db, $id, $result, $ret, and $sql.
Referenced by RMMailer\__construct(), configure_rm_plugin(), TextCleaner\decrypt(), RmcommonCorePreload\eventCoreHeaderEnd(), RmcommonRmcommonPreload\eventRmcommonXoopsCommonEnd(), RMTemplate\footer(), get_comments(), get_modules_ajax(), and show_rss_content().
RMFunctions::create_toolbar | ( | ) |
Create the module toolbar. This function must be called only from rmcommon module administration
Definition at line 76 of file functions.php.
References $cat, __(), elseif(), RMEvents\get(), RMTemplate\get(), rmc_server_var(), and RMCLOCATION.
Referenced by configure_rm_plugin(), edit_comment(), edit_image(), images_form(), module_install(), module_install_now(), module_uninstall_now(), module_update_now(), new_category(), show_categories(), show_comments(), show_dashboard(), show_images(), show_modules_list(), show_rm_blocks(), show_rm_plugins(), show_users(), update_thumbnails(), and user_form().
RMFunctions::current_url | ( | ) |
Definition at line 377 of file functions.php.
Referenced by comments_form(), RmcommonCorePreload\eventCoreIncludeCommonLanguage(), and RmcommonRmcommonPreload\eventRmcommonXoopsCommonEnd().
RMFunctions::delete_comments | ( | $module, | |
$params | |||
) |
Delete comments assigned to a object
string | Module name |
string | Params |
Definition at line 363 of file functions.php.
References $db, $sql, and RMEvents\get().
RMFunctions::get | ( | ) |
Definition at line 15 of file functions.php.
Referenced by RMFormEditor\__construct(), configure_rm_plugin(), TextCleaner\encrypt(), TextCleaner\get_emotions(), RMPlugin\insert_configs(), RMIPlugin\settings(), show_available_updates(), and TextCleaner\to_display().
RMFunctions::get_comments | ( | $obj, | |
$params, | |||
$type = 'module' , |
|||
$parent = 0 , |
|||
$user = null , |
|||
$assign = true |
|||
) |
Get all comments for given parameters
string | Object id (can be a module name) |
string | Params for comment item |
string | Object type (eg. module, plugin, etc) |
int | Comment parent id, will return all comments under a given parent |
int | User that has been posted the comments |
Definition at line 194 of file functions.php.
References $db, $result, $rmc_config, $sql, $type, $xoopsUser, __(), configs(), elseif(), RMEvents\get(), TextCleaner\getInstance(), and RMCURL.
RMFunctions::get_groups_names | ( | $groups, | |
$list = true |
|||
) |
This functions allows to get the groups names for a single category
array | Groups ids |
bool | Return as list |
Definition at line 137 of file functions.php.
References $db, $result, $ret, $sql, and __().
Referenced by show_categories().
RMFunctions::get_image | ( | $id, | |
$size = '' |
|||
) |
RMFunctions::get_modules_list | ( | $active = -1 | ) |
Get modules list
Definition at line 494 of file functions.php.
References $db, $modules, $result, and $sql.
Referenced by RMBlocksFunctions\get_available_list(), and show_rm_blocks().
RMFunctions::get_num_records | ( | $table, | |
$filters = '' |
|||
) |
Check the number of images category on database
Definition at line 60 of file functions.php.
Referenced by save_category(), show_categories(), and show_images().
|
private |
Definition at line 421 of file functions.php.
References $data.
Referenced by plugin_settings().
RMFunctions::installed_plugins | ( | ) |
Definition at line 512 of file functions.php.
References $db, $plugins, $result, and RMEvents\get().
RMFunctions::load_images_categories | ( | $filters = 'ORDER BY id_cat DESC' , |
|
$object = false |
|||
) |
Load all categories from database
string | SQL Filters |
Definition at line 164 of file functions.php.
References $db, $result, and $sql.
Referenced by edit_image(), images_form(), and show_images().
RMFunctions::load_module | ( | $mod | ) |
Load a module as XoopsModule object
int|string | Module id or module name |
Definition at line 480 of file functions.php.
Referenced by RMBlocksFunctions\construct_blocks(), insertBlock(), DesigniaFunctions\module_icon(), Twop6Functions\moduleIcon(), DesigniaFunctions\moduleMenu(), Twop6Functions\moduleMenu(), RMFormModules\render(), rmc_bkcomments_show(), and show_rm_blocks().
RMFunctions::load_plugin | ( | $name | ) |
RMFunctions::plugin_installed | ( | $dir | ) |
Check if a plugin is installed and active in Common Utilities
Definition at line 446 of file functions.php.
References $dir, and $GLOBALS.
Referenced by show_images().
RMFunctions::plugin_settings | ( | $dir, | |
$values = false |
|||
) |
Get plugins settings
string | Plugin dirname |
bool | Type of values returned |
Definition at line 390 of file functions.php.
References $db, $dir, $result, $ret, $sql, and getConfValueForOutput().
RMFunctions::urlencode_array | ( | $array, | |
$name, | |||
$separator = '&' |
|||
) |
Encode array keys to make a valid url string
array | Array to encode |
string | Var name to generate url |
string | URL separator |
Definition at line 117 of file functions.php.
|
private |
Definition at line 13 of file functions.php.