[ Index ]

PHP Cross Reference of PHK Manager

title

Body

[close]

/PHK/Tools/ -> Util.php (summary)

(no description)

Copyright: Francois Laupretre <phk@tekwire.net>
License: http://www.apache.org/licenses/LICENSE-2.0 Apache License, V 2.0
File Size: 543 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 35 functions

  msg()
  varType()
  envIsWeb()
  envIsWindows()
  fileSuffix()
  combinePath()
  trailingSepar()
  isAbsolutePath()
  mkAbsolutePath()
  loadExtension()
  loadExtensions()
  substr()
  disableMQR()
  restoreMQR()
  timeString()
  httpBaseURL()
  http301Redirect()
  http404Fail()
  http403Fail()
  bool2str()
  readFile()
  scandir()
  trace()
  deltaMS()
  mkArray()
  displaySlowPath()
  slowPath()
  formatError()
  getMinVersion()
  getOptions()
  getBuildInfo()
  callMethod()
  runWebInfo()
  atomicWrite()
  pathUniqueID()

Functions
Functions that are not part of a class:

msg($msg)   X-Ref
No description

varType($var)   X-Ref
No description

envIsWeb()   X-Ref
No description

envIsWindows()   X-Ref
No description

fileSuffix($filename)   X-Ref
No description

combinePath($dir,$rpath)   X-Ref
No description

trailingSepar($path, $separ)   X-Ref
Adds or removes a trailing separator in a path

param: string $path Input
param: bool $flag true: add trailing sep, false: remove it
return: bool The result path

isAbsolutePath($path)   X-Ref
Determines if a given path is absolute or relative

param: string $path The path to check
return: bool True if the path is absolute, false if relative

mkAbsolutePath($path,$separ=false)   X-Ref
Build an absolute path from a given (absolute or relative) path

If the input path is relative, it is combined with the current working
directory.

param: string $path The path to make absolute
param: bool $separ True if the resulting path must contain a trailing separator
return: string The resulting absolute path

loadExtension($ext)   X-Ref
No description

loadExtensions($ext_list)   X-Ref
No description

substr($buf,$position,$len=NULL)   X-Ref
No description

disableMQR()   X-Ref
No description

restoreMQR()   X-Ref
No description

timeString($time=null)   X-Ref
No description

httpBaseURL()   X-Ref
No description

http301Redirect($path)   X-Ref
No description

http404Fail()   X-Ref
No description

http403Fail()   X-Ref
No description

bool2str($cond)   X-Ref
No description

readFile($path)   X-Ref
No description

scandir($path)   X-Ref
No description

trace($msg)   X-Ref
No description

deltaMS($start)   X-Ref
No description

mkArray($data)   X-Ref
No description

displaySlowPath()   X-Ref
No description

slowPath()   X-Ref
No description

formatError($msg)   X-Ref
Sends an \Exception with a message starting with 'Format error'

param: string $msg Message to send
return: void

getMinVersion($mnt,$caching)   X-Ref
No description

getOptions($mnt,$caching)   X-Ref
No description

getBuildInfo($mnt,$caching)   X-Ref
No description

callMethod($object,$method,$args)   X-Ref
No description

runWebInfo($phk)   X-Ref
No description

atomicWrite($path,$data)   X-Ref
No description

pathUniqueID($prefix,$path,&$mtime)   X-Ref
No description



Generated: Thu Jun 4 18:33:15 2015 Cross-referenced by PHPXref 0.7.1