Property | Type | Description | |
---|---|---|---|
$alias | The alias this operator is associated with, if any. | ||
$attribute | The attribute name. | ||
$convertedAliasValue | The attribute value for specific aliases that were used. | ||
$convertedValue | The attribute name after any possible schema has been applied. | ||
$converterAliasUsed | Whether or not an attribute converter was used for a specific alias. | ||
$converterUsed | Whether or not an Attribute Converter was used. | ||
$operatorSymbol | The operator symbol (ie. &, |, =, <=, >=, etc) | ||
$shouldUseConverter | Whether or not a converter, if present, will be used against this operator. | ||
$translatedAliasAttribute | The attribute name for a specific alias after its schema has been applied. | ||
$translatedAttribute | The attribute name after any possible schema has been applied. | ||
$validOperators | The valid operator symbols that can be set. | ||
$value | The value for the attribute without any possible converters. |
Method | Description | |
---|---|---|
getAlias ( ) : string | null | Get the alias this operator is associated with. If none is assigned this will be null. | |
getAttribute ( ) : string | null | Get the attribute. | |
getConvertedValue ( string | null $alias = null ) : mixed | Get the converted value. | |
getLdapFilter ( null $alias = null ) : string | ||
getOperatorSymbol ( ) : string | Get the operator symbol in use. | |
getTranslatedAttribute ( string | null $alias = null ) : string | null | Get the translated attribute (the attribute after the schema conversion). | |
getUseConverter ( ) : boolean | Get whether a converter should be used or not. | |
getValue ( ) : mixed | Get the attribute value. | |
getWasConverterUsed ( string | null $alias = null ) : boolean | Get whether a converter was used or not. | |
setAlias ( $alias ) | Set the alias this operator is associated with. To assign no alias set it to null. | |
setAttribute ( string $attribute ) | Set the attribute. | |
setConvertedValue ( mixed $value, string | null $alias = null ) | Set the converted value. | |
setOperatorSymbol ( $symbol ) | Set the operator symbol in use. | |
setTranslatedAttribute ( $attribute, string | null $alias = null ) | Set the translated attribute (the attribute after the schema conversion). | |
setUseConverter ( boolean $value ) | Set whether a converter should be used or not. | |
setValue ( mixed $value ) | Set the attribute value. | |
setWasConverterUsed ( boolean $value, string | null $alias = null ) | Set whether a converter was used or not. | |
toLdapFilter ( string | null $alias = null ) : string | Returns the operator translated to its LDAP filter string value. |
Method | Description | |
---|---|---|
getAttributeToQuery ( null | string $alias ) : string | This will get the translated attribute or just the attribute if no schema translation was done. | |
getValueForQuery ( null | string $alias ) : mixed | Depending on whether a converter was used, get the value that should be used for the query. | |
skipFilterForAlias ( string | null $alias ) : boolean | Determine whether the operator should actually produce a filter (only if alias is null or matches the current one) |
public getAttribute ( ) : string | null | ||
return | string | null |
public getLdapFilter ( null $alias = null ) : string | ||
$alias | null | |
return | string |
public getOperatorSymbol ( ) : string | ||
return | string |
public getUseConverter ( ) : boolean | ||
return | boolean |
public setAlias ( $alias ) |
public setAttribute ( string $attribute ) | ||
$attribute | string |
public setOperatorSymbol ( $symbol ) | ||
$symbol |
public setTranslatedAttribute ( $attribute, string | null $alias = null ) | ||
$alias | string | null |
public setUseConverter ( boolean $value ) | ||
$value | boolean |
protected $convertedAliasValue |
protected $convertedValue |
protected $converterAliasUsed |
protected $converterUsed |
protected $operatorSymbol |
protected $shouldUseConverter |
protected $translatedAliasAttribute |
protected $translatedAttribute |
protected $validOperators |