[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/admin/tool/generator/classes/ -> backend.php (summary)

Backend generic code.

Copyright: 2013 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 199 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  __construct()
  size_for_name()
  log()
  dot()
  end_log()

Functions
Functions that are not part of a class:

__construct($size, $fixeddataset = false, $filesizelimit = false, $progress = true)   X-Ref
Generic generator class

param: int $size Size as numeric index
param: bool $fixeddataset To use fixed or random data
param: int|bool $filesizelimit The max number of bytes for a generated file
param: bool $progress True if progress information should be displayed

size_for_name($sizename)   X-Ref
Converts a size name into the numeric constant.

param: string $sizename Size name e.g. 'L'
return: int Numeric version

log($langstring, $a = null, $leaveopen = false)   X-Ref
Displays information as part of progress.

param: string $langstring Part of langstring (after progress_)
param: mixed $a Optional lang string parameters
param: bool $leaveopen If true, doesn't close LI tag (ready for dots)

dot($number, $total)   X-Ref
Outputs dots. There is up to one dot per second. Once a minute, it
displays a percentage.

param: int $number Number of completed items
param: int $total Total number of items to complete

end_log()   X-Ref
Ends a log string that was started using log function with $leaveopen.




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