XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
add_slash ($string) | |
delete_directory ($path) | |
delete_file ($filepath) | |
format_version ($version, $name=false) | |
formatBytesSize ($size) | |
get () | |
get_count ($table, $cond='') | |
getVersion ($includename=true, $module='', $type=0) | |
image_manager ($name, $id='', $default='') | |
make_url ($ruta) | |
module_config ($modname, $option='') | |
randomString ($size, $digit=true, $special=false, $upper=false, $alpha=true) | |
Private Member Functions | |
hexToRGB ($color) | |
Definition at line 11 of file utilities.php.
RMUtilities::add_slash | ( | $string | ) |
Add a slash (/) to the end of string
Definition at line 276 of file utilities.php.
RMUtilities::delete_directory | ( | $path | ) |
Elimina directorios y todos los archivos contenidos
string | $path | Ruta del directorio |
Definition at line 309 of file utilities.php.
RMUtilities::delete_file | ( | $filepath | ) |
Elimina un archivo existente del servidor
string | $filepath | Ruta completa al archivo |
Definition at line 38 of file utilities.php.
RMUtilities::format_version | ( | $version, | |
$name = false |
|||
) |
Definition at line 120 of file utilities.php.
References $rtn.
Referenced by load_modules_page(), rmc_available_mods(), and show_modules_list().
RMUtilities::formatBytesSize | ( | $size | ) |
Format bytes to MB, GB, KB, etc
int | $size | Tamaño de bytes |
Definition at line 286 of file utilities.php.
References __(), and elseif().
RMUtilities::get | ( | ) |
Obtiene una ?nica instancia de esta clase
Definition at line 16 of file utilities.php.
Referenced by ajax_load_updates(), ajax_update_details(), download_file(), RMFormImage\render(), and show_available_updates().
RMUtilities::get_count | ( | $table, | |
$cond = '' |
|||
) |
Comprueba si existe un elemento en una tabla expec?fica
string | $table | Nombre de la tabla |
string | $cond | Condici?n de b?squeda |
Definition at line 52 of file utilities.php.
RMUtilities::getVersion | ( | $includename = true , |
|
$module = '' , |
|||
$type = 0 |
|||
) |
Obtiene la version del mdulo actual Esta funci?n solo funciona con m?dulos de Red M?xico Soft o compatibles
bool | $includename | Mostrar todo el nombre del m?dulo |
string | $module | Obtener Versi?n del M?dulo Espec?ficado |
int | $type | 0 = String, 1 = Array |
Definition at line 67 of file utilities.php.
References $mod, $rtn, $type, $xoopsConfig, and $xoopsModule.
|
private |
Determina el color rgb a partir de una cadena HEX
Definition at line 219 of file utilities.php.
References elseif().
RMUtilities::image_manager | ( | $name, | |
$id = '' , |
|||
$default = '' |
|||
) |
Muestra los controles para lanzar el administrador de imágenes desde cualqueir punto
string | Element name for inputs |
Definition at line 332 of file utilities.php.
References $id, $ret, $tpl, __(), RMTemplate\get(), and RMCURL.
RMUtilities::make_url | ( | $ruta | ) |
Funci?n para obtener la URL apartir de una ruta absoluta en el servidor.
string | $ruta | Ruta fisica en el servidor |
Definition at line 29 of file utilities.php.
RMUtilities::module_config | ( | $modname, | |
$option = '' |
|||
) |
Permite obtener opciones de ocnfiguraci?n de un m?dulo cualquiera
string | $modname | Nombre del M?dulo |
string | $option | Nombre de la opci?n de configuraci?n |
Definition at line 180 of file utilities.php.
References $xoopsModule, and $xoopsModuleConfig.
RMUtilities::randomString | ( | $size, | |
$digit = true , |
|||
$special = false , |
|||
$upper = false , |
|||
$alpha = true |
|||
) |
Genera una cadena aleatoria en base a par?metros especificados
Definition at line 240 of file utilities.php.