/framework.global.php

Description

Global important functions for working with Kryn.cms

Functions
getArgv

Returns the value in $_REQUEST[$pVal] but with the possibility to escape the value with pEscape.

string|array getArgv (string $pVal, [integer $pEscape = false])
  • string $pVal
  • integer $pEscape: 1: Will be escaped with esc(), 2: will delete character beside a-Z0-9.
json

This convert the argument in json, send the json to the client and exit the script.

void json (mixed $pValue)
  • mixed $pValue
klog

klog saves log informations to the log monitor.

void klog ( $pArea,  $pMsg)
  • $pArea
  • $pMsg
_l

Translate the specified string to the current language if available.

If not available it returns the given string.

  • return: Translated string
string _l (string $pString)
  • string $pString

Documentation generated on Tue, 18 Jan 2011 23:34:38 +0100 by phpDocumentor 1.4.3