PHP 클래스 LdapTools\Resolver\ParameterResolver

저자: Chad Sikorra ([email protected])
파일 보기 프로젝트 열기: ldaptools/ldaptools 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes All of the attributes to iterate through.
$parameters Any explicitly set parameters.
$requirements Contains the attribute name with an array of parameters it requires.
$resolvedParameters Parameters that have been resolved to their final values.

공개 메소드들

메소드 설명
__construct ( array $attributes, array $parameters )
hasParameters ( array | string $value ) : boolean Check whether the value has any parameters in it.
resolve ( ) : array Gets the attributes with all of the parameters resolved.

보호된 메소드들

메소드 설명
checkForCircularDependency ( string $parent, array $parentParameters ) Given an attribute with parameter dependencies, check if any of them will become circular.
doResolveParametersForAttribute ( string $attribute, array $parameters ) Sets the value for an attribute with the specified parameters.
evaluateRequirements ( array $attributes ) Check all attributes for what parameters they require. This populates the '$this->requirements' array. It will then iterate back over the requirements to check for issues.
getDependentAttributes ( array $parameters ) : array Checks for required parameter attributes that depend on other parameter attributes. Returns an array of of dependencies.
getParametersInValue ( string | array $value ) : array Given an attribute value get all parameters it expects.
getValueForParameters ( array $parameters, array | string $original, array $attributes ) : string Takes all parameters (%username%, %someParameter%) within an attribute value and first checks for explicitly set values for the parameter, then checks to see if the parameter name is a different attribute. If found it takes the value either explicitly set or of the other attribute and replaces it within the original attribute.
resolveAllParameters ( ) Iterates over each requirement to resolve the parameters it contains.
resolveParametersForAttribute ( $attribute, array $parameters ) Given a specific attribute with parameters, this will resolve it while first resolving any dependent attributes that first need to be resolved.
setRequirementsForAttribute ( string $attribute, array $value ) Given an attribute, set what parameters it requires.

메소드 상세

__construct() 공개 메소드

public __construct ( array $attributes, array $parameters )
$attributes array
$parameters array

checkForCircularDependency() 보호된 메소드

Given an attribute with parameter dependencies, check if any of them will become circular.
protected checkForCircularDependency ( string $parent, array $parentParameters )
$parent string
$parentParameters array

doResolveParametersForAttribute() 보호된 메소드

Sets the value for an attribute with the specified parameters.
protected doResolveParametersForAttribute ( string $attribute, array $parameters )
$attribute string
$parameters array

evaluateRequirements() 보호된 메소드

Check all attributes for what parameters they require. This populates the '$this->requirements' array. It will then iterate back over the requirements to check for issues.
protected evaluateRequirements ( array $attributes )
$attributes array

getDependentAttributes() 보호된 메소드

Checks for required parameter attributes that depend on other parameter attributes. Returns an array of of dependencies.
protected getDependentAttributes ( array $parameters ) : array
$parameters array
리턴 array

getParametersInValue() 보호된 정적인 메소드

Given an attribute value get all parameters it expects.
protected static getParametersInValue ( string | array $value ) : array
$value string | array
리턴 array

getValueForParameters() 보호된 메소드

Takes all parameters (%username%, %someParameter%) within an attribute value and first checks for explicitly set values for the parameter, then checks to see if the parameter name is a different attribute. If found it takes the value either explicitly set or of the other attribute and replaces it within the original attribute.
protected getValueForParameters ( array $parameters, array | string $original, array $attributes ) : string
$parameters array All of the parameters found within the value.
$original array | string The original value for the attribute, containing the parameters.
$attributes array All of the attributes being sent to LDAP.
리턴 string The attribute value after the passed parameters have been set.

hasParameters() 공개 정적인 메소드

Check whether the value has any parameters in it.
public static hasParameters ( array | string $value ) : boolean
$value array | string
리턴 boolean

resolve() 공개 메소드

Gets the attributes with all of the parameters resolved.
public resolve ( ) : array
리턴 array

resolveAllParameters() 보호된 메소드

Iterates over each requirement to resolve the parameters it contains.
protected resolveAllParameters ( )

resolveParametersForAttribute() 보호된 메소드

Given a specific attribute with parameters, this will resolve it while first resolving any dependent attributes that first need to be resolved.
protected resolveParametersForAttribute ( $attribute, array $parameters )
$attribute
$parameters array

setRequirementsForAttribute() 보호된 메소드

Given an attribute, set what parameters it requires.
protected setRequirementsForAttribute ( string $attribute, array $value )
$attribute string
$value array

프로퍼티 상세

$attributes 보호되어 있는 프로퍼티

All of the attributes to iterate through.
protected $attributes

$parameters 보호되어 있는 프로퍼티

Any explicitly set parameters.
protected $parameters

$requirements 보호되어 있는 프로퍼티

Contains the attribute name with an array of parameters it requires.
protected $requirements

$resolvedParameters 보호되어 있는 프로퍼티

Parameters that have been resolved to their final values.
protected $resolvedParameters