class
KalimahApps
/
Daleel
/
Common
Common
Common utilities.
Methods
public
static
debug ( ) : void
Write to log file.
Parameters
-
$messages
mixed
Messages to write to log file
public
static
console ( ) : void
Write to console.
Parameters
-
$messages
mixed
Messages to write to console
public
static
prepareLink ( array $path , $version , $process_extension ) : string
Make changes to the link to make it viewable in the browser.
Parameters
-
$path
array
Path to the file
-
$version
mixed
Version to add to the start of the path
-
$process_extension
bool
Whether to add check if extension should be added to the end of the path
public
static
getPosixPath ( $path , $create ) : string
Get path in posix format.
Parameters
-
$path
string
Path to convert to posix format
-
$create
bool
Create path if not exists
public
static
getTempPath ( $extra ) : string
Get temp folder path in posix format.
Parameters
-
$extra
string
Extra path to append to temp folder path
public
static
getPosixCwd ( $extra , $create ) : string
Get CWD in posix format.
Parameters
-
$extra
string
string Extra path to append to CWD
-
$create
bool
Create path if not exists
public
static
isAbsolutePath ( string $path ) : bool
Check if path is absolute.
Parameters
-
$path
string
Path to check
See
public
static
getProgressBarFormat ( string $title , Symfony\...\SymfonyStyle $console ) : string
Get the format for progress bar.
Parameters
-
$title
string
Title of the progress bar
-
$console
Symfony\...\SymfonyStyle
Console instance
public
static
getConfigFile ( Symfony\...\InputInterface $input ) : bool|string
Get config file.
Parameters
-
$input
Symfony\...\InputInterface
Input interface.
public
static
createError ( $console , string $title , Throwable $error ) : void
Create error message.
Parameters
-
$console
Symfony\...\SymfonyStyle
Console instance.
-
$title
string
Error title.
-
$error
Throwable
Error object.
public
static
replaceTags ( string $content ) : string
Replace tags in content.
Parameters
-
$content
string
Content to replace tags in.