LEPTON CMS 7.2.0
feel free to keep it strictly simple...
|
Public Member Functions | |
__call (string $name, array $arguments) | |
Static Public Member Functions | |
static | setDisplay (bool $bUseDisplay=true) |
static | __callStatic (string $name, array $arguments) |
static | install_table (string $table_name='', string $table_fields='') |
static | encrypt_table (string $table_name='', array $aListOfFields=[], string $field_condition='') |
static | decrypt_table (string $table_name='', array $aListOfFields=[], string $field_condition='') |
static | insert_values (string $table_name='', string $field_values='') |
static | drop_table (string $table_name='') |
static | rename_table (string $table_name='') |
static | create_sik_table (string $table_name='') |
static | delete_obsolete_files (string|array ... $aFileNames) |
static | delete_obsolete_directories (array|string $directory_names=[]) |
static | rename_directories (array|string $directory_names=[]) |
static | include_files (array|string $file_names=[], bool $interrupt=true) |
static | require_alternative (string $file_name, string $usage='backend') |
static | install_modules (array $module_names=[]) |
static | upgrade_modules (string|array $module_names=[]) |
static | install_droplets (string $module_name='', string|array $zip_names=[]) |
static | uninstall_droplets (string|array $droplet_names=[]) |
static | register () |
static | checkEmailChars (string $sEmail) |
static | checkStringSecure (string $sString) |
static | checkPasswordChars (string $sPassword) |
static | checkUsernameChars (string $sName) |
static | checkHexChars (string $sHexHash) |
static | restoreSpecialChars (string &$sAnyString, array $aAnyAssocArray=self::SPECIAL_CHARS_RESTORE) |
static | restoreStandardProtection () |
static | createStandardProtection (string $path='/temp/secure/', string $username='') |
static | array_orderby (array $array, string $on, int $order=SORT_ASC) |
static | themeExists (string $sThemeName="") |
static | moveThemeFiles (string $sModuleDirectory="") |
static | copyThemeFilesRecursive (string $dirsource, string $dirdest, int $deep=0) |
static | removeAllThemeFiles (string $sModuleDirectory="") |
static | getModuleDirectory (string $anyNameOrPath="") |
static | getAllThemes () |
static | getPathElements (string $anyNameOrPath="") |
static | createGUID () |
Data Fields | |
const | HTACCESS_PATH = SECURE_PATH.'/.htaccess' |
const | HTPASSWD_PATH = SECURE_PATH.'/.htpasswd' |
const | ALT_BACKEND_FILE = '/templates/'.DEFAULT_THEME.'/backend/backend/' |
const | ALT_FRONTEND_FILE = '/templates/'.TEMPLATE.'/frontend/' |
const | SPECIAL_CHARS_RESTORE |
Static Public Attributes | |
static bool | $display_errors = true |
This file is part of LEPTON Core, released under the GNU GPL Please see LICENSE and COPYING files in your package for details, specially for terms and warranties.
NOTICE:LEPTON CMS Package has several different licenses. Please see the individual license in the header of each single file or info.php of modules and templates.
Definition at line 24 of file lepton_handle.php.
__call | ( | string | $name, |
array | $arguments ) |
Called if a method is unknown.
string | $name | |
array | $arguments |
Definition at line 69 of file lepton_handle.php.
|
static |
Called if a static method is unknown.
string | $name | |
array | $arguments |
Definition at line 82 of file lepton_handle.php.
|
static |
Sort given array.
array | $array | Given array |
string | $on | Key to sort, or comma separated list of keys. |
int | $order | SORT_ASC or SORT_DESC |
Definition at line 1027 of file lepton_handle.php.
|
static |
Returns 'false' if the given string contains a non 'valid' char. Accepted chars are "a" to "z" (case-insensitive) and "0" to "9" with "-", ".", "_".
string | $sEmail | Any string. |
Definition at line 780 of file lepton_handle.php.
|
static |
NOTICE: Strings (hash) consisting only of integers can be checked with "intval()" example: $sValueToCheck = intval($StringToCheck); result: $sValueToCheck is forced to be an integer Returns 'false' if the given string contains a non 'valid' char. Accepted chars are "a" to "f" (case-insensitive) and "0" to "9" with "-"
string | $sHexHash | Any string. |
Definition at line 913 of file lepton_handle.php.
|
static |
Returns 'false' if the given string contains a non 'valid' char. Accepted chars see LEPTON_core around line 26
string | $sPassword | Any string. |
Definition at line 833 of file lepton_handle.php.
|
static |
Returns 'false' if the given string contains a non 'valid' char. Accepted chars see LEPTON_core->string_secure
string | $sString | Any string. |
Definition at line 808 of file lepton_handle.php.
|
static |
Returns 'false' if the given string contains a non 'valid' char. Accepted chars are "a" to "z" (case-insensitive) and "0" to "9" with "-", ".", "_", " " (space).
string | $sName | Any string. |
Definition at line 870 of file lepton_handle.php.
|
static |
string | $dirsource | |
string | $dirdest | |
int | $deep |
Definition at line 1144 of file lepton_handle.php.
|
static |
create sik table
string | $table_name | for table_name |
Definition at line 326 of file lepton_handle.php.
|
static |
Generate a globally unique identifier (GUID) Uses COM extension under Windows otherwise create a random GUID in the same style.
also generate a hash for form validation
Exception |
Definition at line 1278 of file lepton_handle.php.
|
static |
Create passwordfiles in chosen directory
string | $path | Default directory is '/temp/secure/'. |
string | $username | The username the htacess belongs to |
Exception |
Definition at line 977 of file lepton_handle.php.
|
static |
Definition at line 193 of file lepton_handle.php.
|
static |
Delete obsolete directories
array | string | $directory_names | linear array with directory_names to delete |
Definition at line 401 of file lepton_handle.php.
|
static |
Delete obsolete files
string | array | $aFileNames | A linear array with filenames to delete. Since L* IV this method could handle more than one param. |
Definition at line 357 of file lepton_handle.php.
|
static |
drop table
string | $table_name | for table_name |
Definition at line 278 of file lepton_handle.php.
|
static |
Definition at line 138 of file lepton_handle.php.
|
static |
Definition at line 1233 of file lepton_handle.php.
|
static |
string | $anyNameOrPath |
[5.4.5.2] ist the method called from a file inside the given module-dir? see: https://stackoverflow.com/questions/2960805/php-determine-where-function-was-called-from This is to avoid the situation that module 'A' can copy/delete theme-files from module 'B'!
Definition at line 1204 of file lepton_handle.php.
|
staticfinal |
[5.4.7] Internal
string | $anyNameOrPath |
Definition at line 1257 of file lepton_handle.php.
|
static |
include files
array | string | $file_names | linear array with filenames to include |
bool | $interrupt | $file_names = array(
'/framework/initialize.php'
);
LEPTON_handle::include_files ($file_names);
static include_files(array|string $file_names=[], bool $interrupt=true) Definition lepton_handle.php:476 |
Definition at line 476 of file lepton_handle.php.
|
static |
insert data into table
string | $table_name | for table_name |
string | $field_values | for table_fields |
Definition at line 252 of file lepton_handle.php.
|
static |
Install droplets.
string | $module_name | for module name |
string | array | $zip_names | for zip name |
Definition at line 646 of file lepton_handle.php.
|
static |
install modules
array | $module_names | linear array with module_names to install |
Definition at line 542 of file lepton_handle.php.
|
static |
install table
string | $table_name | for table_name |
string | $table_fields | for table_fields |
Definition at line 108 of file lepton_handle.php.
|
static |
[5.4.2] Copies module-specific theme-files to the installed themes during
installation and/or upgrade. The "basefiles" have to be inside the module-directory
inside the subdirectory "backendthemes" e.g. ~modules/foldergallery/backendthemes/talgos ~modules/foldergallery/backendthemes/black_hole
string | $sModuleDirectory | Module-Directory or path to a file inside the module. |
Definition at line 1119 of file lepton_handle.php.
|
static |
Static method to "require" a (LEPTON-) internal function file
example given:
Definition at line 729 of file lepton_handle.php.
|
static |
|
static |
rename recursive directories
array | string | $directory_names | linear array with directory_names to rename as assoziative array |
Definition at line 438 of file lepton_handle.php.
|
static |
rename table
string | $table_name | for table_name |
Definition at line 302 of file lepton_handle.php.
|
static |
include files if exist and end process of start file
string | $file_name | linear array with filenames to include. |
string | $usage | Only "backend" or "frontend" supported. static require_alternative(string $file_name, string $usage='backend') Definition lepton_handle.php:514 |
Definition at line 514 of file lepton_handle.php.
|
static |
To "restore" some given special chars. E.g. per default "<" will be restored to "<";
string | $sAnyString | Any valid string. Pass|call by reference. |
array | $aAnyAssocArray | Optional an assoc. array with the char-pairs. Default is internal const SPECIAL_CHARS_RESTORE |
Definition at line 926 of file lepton_handle.php.
|
static |
Create new passwordfiles in standard protected directory
Default directory is '/temp/secure/.htaccess'
Definition at line 940 of file lepton_handle.php.
|
static |
Method to change the display_errors. As the property is static we can't set it "outside" direct."
boolean | $bUseDisplay | True to use LEPTON_tools::display. |
Definition at line 58 of file lepton_handle.php.
|
static |
Definition at line 1089 of file lepton_handle.php.
|
static |
uninstall droplets
string | array | $droplet_names | for module name |
Definition at line 683 of file lepton_handle.php.
|
static |
upgrade modules
string | array | $module_names | linear array with module_names to update |
Definition at line 593 of file lepton_handle.php.
|
static |
Definition at line 49 of file lepton_handle.php.
const ALT_BACKEND_FILE = '/templates/'.DEFAULT_THEME.'/backend/backend/' |
Definition at line 28 of file lepton_handle.php.
const ALT_FRONTEND_FILE = '/templates/'.TEMPLATE.'/frontend/' |
Definition at line 29 of file lepton_handle.php.
const HTACCESS_PATH = SECURE_PATH.'/.htaccess' |
Definition at line 26 of file lepton_handle.php.
const HTPASSWD_PATH = SECURE_PATH.'/.htpasswd' |
Definition at line 27 of file lepton_handle.php.
const SPECIAL_CHARS_RESTORE |
Definition at line 32 of file lepton_handle.php.