[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/ -> configonlylib.php (summary)

Minimalistic library, usable even when no other moodle libs are loaded. The only library that gets loaded if you define ABORT_AFTER_CONFIG before including main config.php. You can resume normal script operation if you define ABORT_AFTER_CONFIG_CANCEL and require the setup.php

Copyright: 2009 Petr Skoda (skodak)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 213 lines (7 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  min_optional_param()
  min_clean_param()
  min_fix_utf8()
  min_enable_zlib_compression()
  min_get_slash_argument()

Functions
Functions that are not part of a class:

min_optional_param($name, $default, $type)   X-Ref
Minimalistic parameter validation function.
Can not use optional param because moodlelib.php is not loaded yet

param: string $name
param: mixed $default
param: string $type
return: mixed

min_clean_param($value, $type)   X-Ref
Minimalistic parameter cleaning function.

Note: Can not use optional param because moodlelib.php is not loaded yet.

param: string $value
param: string $type
return: mixed

min_fix_utf8($value)   X-Ref
Minimalistic UTF-8 sanitisation.

Note: This duplicates fix_utf8() intentionally for now.

param: string $value
return: string

min_enable_zlib_compression()   X-Ref
This method tries to enable output compression if possible.
This function must be called before any output or headers.

(IE6 is not supported at all.)

return: boolean, true if compression enabled

min_get_slash_argument($clean = true)   X-Ref
Returns the slashargument part of the URL.

Note: ".php" is NOT allowed in slasharguments,
it is intended for ASCII characters only.

param: boolean $clean - Should we do cleaning on this path argument. If you set this
return: string



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1