PHP Dummy

AbstractWorldWideWeb extends AbstractCorporate
in package
implements WorldWideWebInterface

AbstractYes

This is a simple World Wide Web implementation that other World Wide Web can inherit from.

Table of Contents

Interfaces

WorldWideWebInterface
Describes World Wide Web interface.

Methods

boolean()  : bool
Retrieve random boolean.
company()  : string
Retrieve random company.
dataProvider()  : string
Retrieve value from data provider.
date()  : string
Retrieve random date.
datetime()  : string
Retrieve random datetime.
department()  : string
Retrieve random department.
domain()  : string
Retrieve random domain name.
float()  : float
Retrieve random float.
getUrlQuery()  : string
Retrieve random url query.
integer()  : int
Retrieve random integer.
mixed()  : mixed
Retrieve random mixed.
name()  : string
Retrieve random name.
option()  : mixed
Retrieve one of value from array element.
product()  : string
Retrieve random product.
profession()  : string
Retrieve random profession.
string()  : string
Retrieve random string.
time()  : string
Retrieve random time.
timestamp()  : int
Retrieve random timestamp.
tld()  : string
Retrieve random top level domain.
url()  : string
Retrieve random url.
website()  : string
Retrieve random website name.
word()  : string
Retrieve random word.
getDataProvider()  : array<string|int, string>
Retrieve values of data provider.
getUrlPath()  : string
Retrieve random url path.

Methods

company()

Retrieve random company.

public company() : string
Return values
string

dataProvider()

Retrieve value from data provider.

public dataProvider(string $Name[, int $Size = 1 ]) : string
Parameters
$Name : string

The build-in data provider name.

$Size : int = 1

The size of name to return.

Return values
string

date()

Retrieve random date.

public date([string|null $From = null ][, string|null $To = null ]) : string
Parameters
$From : string|null = null

The lowest date value.

$To : string|null = null

The highest date value.

Return values
string

datetime()

Retrieve random datetime.

public datetime([string|null $From = null ][, string|null $To = null ]) : string
Parameters
$From : string|null = null

The lowest date value.

$To : string|null = null

The highest date value.

Return values
string

department()

Retrieve random department.

public department() : string
Return values
string

float()

Retrieve random float.

public float([float $Min = PHP_FLOAT_MIN ][, float $Max = PHP_FLOAT_MAX ][, int $Precision = 2 ]) : float
Parameters
$Min : float = PHP_FLOAT_MIN

The minimum number.

$Max : float = PHP_FLOAT_MAX

The maximum number.

$Precision : int = 2

The precision number.

Return values
float

getUrlQuery()

Retrieve random url query.

public getUrlQuery() : string
Return values
string

integer()

Retrieve random integer.

public integer([int $Min = PHP_INT_MIN ][, int $Max = PHP_INT_MAX ]) : int
Parameters
$Min : int = PHP_INT_MIN

The minimum number.

$Max : int = PHP_INT_MAX

The maximum number.

Return values
int

name()

Retrieve random name.

public name([int $Size = 1 ]) : string
Parameters
$Size : int = 1

The size of name to return.

Return values
string

option()

Retrieve one of value from array element.

public option([array<string|int, mixed> $Data = [] ]) : mixed
Parameters
$Data : array<string|int, mixed> = []

The options.

product()

Retrieve random product.

public product() : string
Return values
string

profession()

Retrieve random profession.

public profession() : string
Return values
string

string()

Retrieve random string.

public string([int $Length = 8 ][, string $Characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~+/" ]) : string
Parameters
$Length : int = 8

The character length.

$Characters : string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~+/"

The character possibility.

Return values
string

time()

Retrieve random time.

public time() : string
Return values
string

timestamp()

Retrieve random timestamp.

public timestamp([string|null $From = null ][, string|null $To = null ]) : int
Parameters
$From : string|null = null

The lowest date value.

$To : string|null = null

The highest date value.

Return values
int

word()

Retrieve random word.

public word([int $Size = 1 ]) : string
Parameters
$Size : int = 1

The size of word to return.

Return values
string

getDataProvider()

Retrieve values of data provider.

protected getDataProvider(string $Name) : array<string|int, string>
Parameters
$Name : string

The build-in data provider name.

Return values
array<string|int, string>

getUrlPath()

Retrieve random url path.

private getUrlPath() : string
Return values
string

        
On this page

Search results