LEPTON CMS 7.0.0
feel free to keep it strictly simple...
Loading...
Searching...
No Matches
LEPTON_tools Class Reference

Static Public Member Functions

static use_var_dump (bool $bUseVarDump=true)
 
static display (mixed $something_to_display="", string $tag="pre", string|null $css_class=null)
 
static base64ToImage (string $base64_string, string $output_file)
 

Static Public Attributes

static bool $use_var_dump = false
 

Detailed Description

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.

Author
LEPTON Project

Definition at line 20 of file lepton_tools.php.

Member Function Documentation

◆ base64ToImage()

static base64ToImage ( string  $base64_string,
string  $output_file 
)
static

Method to convert a base64 string into an image file

Parameters
string$base64_stringAny valid base64 string
string$output_fileAny local path

example given:

LEPTON_tools::base64ToImage($base64_string, $output_file);
static base64ToImage(string $base64_string, string $output_file)

Definition at line 91 of file lepton_tools.php.

◆ display()

static display ( mixed  $something_to_display = "",
string  $tag = "pre",
string|null  $css_class = null 
)
static

Method to return the result of a "print_r" call for a given object/address.

Parameters
mixed$something_to_displayAny (e.g. mostly an object instance, or e.g. an array)
string$tagOptional a "tag" (-name). Default is "pre".
string | null$css_classOptional a class name for the tag.
Returns
string

example given:

LEPTON_tools::display( $result_array, "code", "example_class" )
static display(mixed $something_to_display="", string $tag="pre", string|null $css_class=null)

will return:

<code class="example_class">
array( [1] => "whatever");
</code>
Examples
C:/Develope/SVN/upload/framework/classes/lepton_database.php, C:/Develope/SVN/upload/framework/classes/lepton_handle.php, and C:/Develope/SVN/upload/framework/classes/lepton_secure_database.php.

Definition at line 63 of file lepton_tools.php.

◆ use_var_dump()

static use_var_dump ( bool  $bUseVarDump = true)
static

Method to change the var_dump_mode

Parameters
boolean$bUseVarDumpTrue, to use "var_dump" instead of "print_r" for the "display"-method, false if not. Default is "true".
See also
display

Definition at line 36 of file lepton_tools.php.

Field Documentation

◆ $use_var_dump

bool $use_var_dump = false
static

Definition at line 27 of file lepton_tools.php.


The documentation for this class was generated from the following file: