LEPTON CMS 7.0.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 $directory_names=[]) |
static | rename_directories (array $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 | 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, string $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 65 of file lepton_handle.php.
|
static |
Called if a static method is unknown.
string | $name | |
array | $arguments |
Definition at line 78 of file lepton_handle.php.
|
static |
Sort given array
array | $array | Given array |
string | $on | key to sort |
string | $order | SORT_ASC OR SORT_DESC |
Definition at line 993 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 768 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 882 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 804 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 839 of file lepton_handle.php.
|
static |
string | $dirsource | |
string | $dirdest | |
int | $deep |
Definition at line 1097 of file lepton_handle.php.
|
static |
create sik table
string | $table_name | for table_name |
Definition at line 324 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 1231 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 946 of file lepton_handle.php.
|
static |
Definition at line 189 of file lepton_handle.php.
|
static |
Delete obsolete directories
array | $directory_names | linear array with directory_names to delete |
Definition at line 399 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 355 of file lepton_handle.php.
|
static |
drop table
string | $table_name | for table_name |
Definition at line 276 of file lepton_handle.php.
|
static |
Definition at line 134 of file lepton_handle.php.
|
static |
Definition at line 1186 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 1157 of file lepton_handle.php.
|
staticfinal |
[5.4.7] Internal
string | $anyNameOrPath |
Definition at line 1210 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:464 |
Definition at line 464 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 250 of file lepton_handle.php.
|
static |
Install droplets.
string | $module_name | for module name |
string | array | $zip_names | for zip name |
Definition at line 634 of file lepton_handle.php.
|
static |
install modules
array | $module_names | linear array with module_names to install |
Definition at line 530 of file lepton_handle.php.
|
static |
install table
string | $table_name | for table_name |
string | $table_fields | for table_fields |
Definition at line 104 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 1071 of file lepton_handle.php.
|
static |
Static method to "require" a (LEPTON-) internal function file
example given:
Definition at line 717 of file lepton_handle.php.
|
static |
|
static |
rename recursive directories
array | $directory_names | linear array with directory_names to rename as assoziative array |
Definition at line 431 of file lepton_handle.php.
|
static |
rename table
string | $table_name | for table_name |
Definition at line 300 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:502 |
Definition at line 502 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 895 of file lepton_handle.php.
|
static |
Create new passwordfiles in standard protected directory
Default directory is '/temp/secure/.htaccess'
Definition at line 909 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 54 of file lepton_handle.php.
|
static |
Definition at line 1041 of file lepton_handle.php.
|
static |
uninstall droplets
string | array | $droplet_names | for module name |
Definition at line 671 of file lepton_handle.php.
|
static |
upgrade modules
string | array | $module_names | linear array with module_names to update |
Definition at line 581 of file lepton_handle.php.
|
static |
Definition at line 45 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.