PHP Class Ouzo\Utilities\Functions

Afficher le fichier Open project: letsdrink/ouzo Class Usage Examples

Méthodes publiques

Méthode Description
append ( $suffix )
call ( $function, $argument )
compose ( $functionA, $functionB ) : callable Returns the composition of two functions.
constant ( $value )
contains ( $element )
endsWith ( $suffix )
equals ( $object )
extract ( null $type = null ) : Ouzo\Utilities\NonCallableExtractor
extractExpression ( $selector, $accessPrivate = false )
extractField ( $name, $accessPrivate = false )
extractFieldRecursively ( $names, $accessPrivate = false )
extractId ( )
formatDateTime ( $format = Date::DEFAULT_TIME_FORMAT )
identity ( )
inArray ( $array )
isArray ( )
isInstanceOf ( $type )
not ( $predicate )
notBlank ( )
notEmpty ( )
notEquals ( $object )
notInArray ( $array )
notNull ( )
prepend ( $prefix )
random ( $min, $max = null )
removePrefix ( $prefix )
startsWith ( $prefix )
surroundWith ( $character )
throwException ( Exception $exception )
toString ( )
trim ( )

Method Details

append() public static méthode

public static append ( $suffix )

call() public static méthode

public static call ( $function, $argument )

compose() public static méthode

composition is defined as the function h such that h(a) == A(B(a)) for each a.
public static compose ( $functionA, $functionB ) : callable
$functionA
$functionB
Résultat callable

constant() public static méthode

public static constant ( $value )

contains() public static méthode

public static contains ( $element )

endsWith() public static méthode

public static endsWith ( $suffix )

equals() public static méthode

public static equals ( $object )

extract() public static méthode

public static extract ( null $type = null ) : Ouzo\Utilities\NonCallableExtractor
$type null
Résultat Ouzo\Utilities\NonCallableExtractor

extractExpression() public static méthode

public static extractExpression ( $selector, $accessPrivate = false )

extractField() public static méthode

public static extractField ( $name, $accessPrivate = false )

extractFieldRecursively() public static méthode

public static extractFieldRecursively ( $names, $accessPrivate = false )

extractId() public static méthode

public static extractId ( )

formatDateTime() public static méthode

public static formatDateTime ( $format = Date::DEFAULT_TIME_FORMAT )

identity() public static méthode

public static identity ( )

inArray() public static méthode

public static inArray ( $array )

isArray() public static méthode

public static isArray ( )

isInstanceOf() public static méthode

public static isInstanceOf ( $type )

not() public static méthode

public static not ( $predicate )

notBlank() public static méthode

public static notBlank ( )

notEmpty() public static méthode

public static notEmpty ( )

notEquals() public static méthode

public static notEquals ( $object )

notInArray() public static méthode

public static notInArray ( $array )

notNull() public static méthode

public static notNull ( )

prepend() public static méthode

public static prepend ( $prefix )

random() public static méthode

public static random ( $min, $max = null )

removePrefix() public static méthode

public static removePrefix ( $prefix )

startsWith() public static méthode

public static startsWith ( $prefix )

surroundWith() public static méthode

public static surroundWith ( $character )

throwException() public static méthode

public static throwException ( Exception $exception )
$exception Exception

toString() public static méthode

public static toString ( )

trim() public static méthode

public static trim ( )