PHP 클래스 LdapTools\Query\Builder\FilterBuilder

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

공개 메소드들

메소드 설명
aeq ( $attribute, $value ) : Comparison An approximately-equal-to comparison.
bAnd ( $op ) : bAnd A logical AND operator.
bNot ( BaseOperator $op ) : bNot A logical NOT operator.
bOr ( $op ) : bOr A logical OR operator.
bitwiseAnd ( string $attribute, integer $value ) : MatchingRule Perform a bitwise AND operation against an attribute.
bitwiseOr ( string $attribute, integer $value ) : MatchingRule Perform a bitwise OR operation against an attribute.
contains ( $attribute, $value ) : Wildcard Encapsulates the search term with a wildcard on each end.
endsWith ( $attribute, $value ) : Wildcard Places a wildcard at the beginning of the search term.
eq ( $attribute, $value ) : Comparison An equal-to comparison.
getInstance ( LdapTools\Connection\LdapConnectionInterface $connection = null ) : ADFilterBuilder | FilterBuilder Get a FilterBuilder instance based on the connection.
gt ( string $attribute, mixed $value ) : bAnd A greater-than comparison. Since an actual '>' operator does not exist in LDAP, this is a combination of a less-than-or-equal-to operator along with a check if the attribute is set/present. This is encapsulated within a logical 'AND' operator.
gte ( $attribute, $value ) : Comparison A greater-than-or-equal-to comparison.
like ( $attribute, $value ) : Wildcard Do not escape wildcard characters in the value, but will escape all other characters. This allows for searches That may need several arbitrarily placed wildcards (ie. sn=Th*m*s)
lt ( string $attribute, mixed $value ) : bAnd A less-than comparison. Since an actual '<' operator does not exist in LDAP, this is a combination of a greater-than-or-equal-to operator along with a check if the attribute is set/present. This is encapsulated within a logical 'AND' operator.
lte ( $attribute, $value ) : Comparison A less-than-or-equal-to comparison.
neq ( $attribute, $value ) : bNot A convenience method for a not-equal-to comparison.
notPresent ( $attribute ) : bNot Convenience method to check for the non-existence of an attribute.
present ( $attribute ) : Wildcard Checks for the existence of an attribute.
startsWith ( $attribute, $value ) : Wildcard Places a wildcard at the end of the search term.

메소드 상세

aeq() 공개 메소드

An approximately-equal-to comparison.
public aeq ( $attribute, $value ) : Comparison
$attribute
$value
리턴 LdapTools\Query\Operator\Comparison

bAnd() 공개 메소드

A logical AND operator.
public bAnd ( $op ) : bAnd
리턴 LdapTools\Query\Operator\bAnd

bNot() 공개 메소드

A logical NOT operator.
public bNot ( BaseOperator $op ) : bNot
$op LdapTools\Query\Operator\BaseOperator
리턴 LdapTools\Query\Operator\bNot

bOr() 공개 메소드

A logical OR operator.
public bOr ( $op ) : bOr
리턴 LdapTools\Query\Operator\bOr

bitwiseAnd() 공개 메소드

Perform a bitwise AND operation against an attribute.
public bitwiseAnd ( string $attribute, integer $value ) : MatchingRule
$attribute string
$value integer
리턴 LdapTools\Query\Operator\MatchingRule

bitwiseOr() 공개 메소드

Perform a bitwise OR operation against an attribute.
public bitwiseOr ( string $attribute, integer $value ) : MatchingRule
$attribute string
$value integer
리턴 LdapTools\Query\Operator\MatchingRule

contains() 공개 메소드

Encapsulates the search term with a wildcard on each end.
public contains ( $attribute, $value ) : Wildcard
$attribute
$value
리턴 LdapTools\Query\Operator\Wildcard

endsWith() 공개 메소드

Places a wildcard at the beginning of the search term.
public endsWith ( $attribute, $value ) : Wildcard
$attribute
$value
리턴 LdapTools\Query\Operator\Wildcard

eq() 공개 메소드

An equal-to comparison.
public eq ( $attribute, $value ) : Comparison
$attribute
$value
리턴 LdapTools\Query\Operator\Comparison

getInstance() 공개 정적인 메소드

Get a FilterBuilder instance based on the connection.
public static getInstance ( LdapTools\Connection\LdapConnectionInterface $connection = null ) : ADFilterBuilder | FilterBuilder
$connection LdapTools\Connection\LdapConnectionInterface
리턴 ADFilterBuilder | FilterBuilder

gt() 공개 메소드

A greater-than comparison. Since an actual '>' operator does not exist in LDAP, this is a combination of a less-than-or-equal-to operator along with a check if the attribute is set/present. This is encapsulated within a logical 'AND' operator.
public gt ( string $attribute, mixed $value ) : bAnd
$attribute string
$value mixed
리턴 LdapTools\Query\Operator\bAnd

gte() 공개 메소드

A greater-than-or-equal-to comparison.
public gte ( $attribute, $value ) : Comparison
$attribute
$value
리턴 LdapTools\Query\Operator\Comparison

like() 공개 메소드

Do not escape wildcard characters in the value, but will escape all other characters. This allows for searches That may need several arbitrarily placed wildcards (ie. sn=Th*m*s)
public like ( $attribute, $value ) : Wildcard
$attribute
$value
리턴 LdapTools\Query\Operator\Wildcard

lt() 공개 메소드

A less-than comparison. Since an actual '<' operator does not exist in LDAP, this is a combination of a greater-than-or-equal-to operator along with a check if the attribute is set/present. This is encapsulated within a logical 'AND' operator.
public lt ( string $attribute, mixed $value ) : bAnd
$attribute string
$value mixed
리턴 LdapTools\Query\Operator\bAnd

lte() 공개 메소드

A less-than-or-equal-to comparison.
public lte ( $attribute, $value ) : Comparison
$attribute
$value
리턴 LdapTools\Query\Operator\Comparison

neq() 공개 메소드

A convenience method for a not-equal-to comparison.
public neq ( $attribute, $value ) : bNot
$attribute
$value
리턴 LdapTools\Query\Operator\bNot

notPresent() 공개 메소드

Convenience method to check for the non-existence of an attribute.
public notPresent ( $attribute ) : bNot
$attribute
리턴 LdapTools\Query\Operator\bNot

present() 공개 메소드

Checks for the existence of an attribute.
public present ( $attribute ) : Wildcard
$attribute
리턴 LdapTools\Query\Operator\Wildcard

startsWith() 공개 메소드

Places a wildcard at the end of the search term.
public startsWith ( $attribute, $value ) : Wildcard
$attribute
$value
리턴 LdapTools\Query\Operator\Wildcard