Overview

Namespaces

  • PHP
  • PhpOptions
    • Types

Classes

  • AType
  • CharType
  • DatetimeType
  • DateType
  • DirectoryType
  • EmailType
  • EnumType
  • FileType
  • InifileType
  • IntegerType
  • RealType
  • SeriesType
  • StringType
  • TimeType
  • Types
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Types

Class for better work with defined types extends ITypes

Namespace: PhpOptions\Types
Author: Viktor Mašíček <viktor@masicek.net>
Located at Types/Types.php
Methods summary
public
# __construct( )
Register default types. There are all files with suffix "Type.php" in this directory. Name type is prefix: "[name of type]Type.php"

Register default types. There are all files with suffix "Type.php" in this directory. Name type is prefix: "[name of type]Type.php"

public
# register( string $name, string $className, string $classPath )
Register new type. It has to by child of abstract class AType. It is possible rewrite already registered types (so defaults too).

Register new type. It has to by child of abstract class AType. It is possible rewrite already registered types (so defaults too).

Parameters

$name
string
Name of type
$className
string
Name of class of type with namespace
$classPath
string
Full path of file contains class of type
public PhpOptions\Types\AType
# getType( string $type, array $settings )
Get class for specifis type of option value.

Get class for specifis type of option value.

Parameters

$type
string
Type of option value
$settings
array
List of setting specific for selected type

Returns

PhpOptions\Types\AType

Throws

PhpOptions\InvalidArgumentException
Undefined type of option.
public array
# getDefaultTypes( )
Return list of all defaults types with their class name and files for including.

Return list of all defaults types with their class name and files for including.

Returns

array
PhpOptions API documentation generated by ApiGen.
Generated using the TokenReflection library.