PHP Class spec\LdapTools\Query\LdapQueryBuilderSpec

Inheritance: extends PhpSpec\ObjectBehavior
Datei anzeigen Open project: ldaptools/ldaptools

Protected Properties

Property Type Description
$fb LdapTools\Query\Builder\FilterBuilder
$objectSchema LdapTools\Schema\LdapObjectSchema
$schema LdapTools\Factory\SchemaParserFactory
$singleGroupEntry

Public Methods

Method Description
it_is_initializable ( )
it_should_add_LDAP_controls_to_the_query_operation ( )
it_should_add_additional_statements_to_the_AND_section_of_the_filter_when_calling_andWhere ( )
it_should_add_an_order_by_attribute_defaulting_to_asc ( )
it_should_add_an_order_by_attribute_defaulting_with_a_specific_direction ( )
it_should_allow_a_string_as_a_selected_attribute ( )
it_should_allow_the_ldap_server_to_be_set_per_query ( )
it_should_allow_use_paging_to_be_set_per_query ( )
it_should_be_able_to_call_from_with_a_dynamic_schema_type_name ( )
it_should_error_when_neither_a_string_or_array_was_passed_to_select ( )
it_should_filter_by_OUs_when_calling_fromOUs ( )
it_should_generate_a_filter_from_multiple_types ( )
it_should_generate_a_filter_from_multiple_types_when_using_an_alias ( )
it_should_get_a_filter_without_a_schema_or_connection ( )
it_should_hydrate_properly_getting_the_ldap_filter ( $connection )
it_should_not_escape_hex_string_search_values_that_are_already_escaped ( )
it_should_overwrite_order_by_attributes_when_calling_orderBy ( )
it_should_pass_operation_options_on_to_the_LdapQuery_class_correctly ( )
it_should_return_ADFilterBuilder_when_calling_filter_and_the_ldap_type_is_ActiveDirectory ( )
it_should_return_FilterBuilder_when_calling_filter_and_the_ldap_type_is_not_ActiveDirectory ( )
it_should_return_self_when_calling_add ( )
it_should_return_self_when_calling_andWhere ( )
it_should_return_self_when_calling_fromGroups ( )
it_should_return_self_when_calling_fromOUs ( )
it_should_return_self_when_calling_fromUsers ( )
it_should_return_self_when_calling_from_with_a_LdapObjectSchema ( )
it_should_return_self_when_calling_from_with_a_valid_type ( )
it_should_return_self_when_calling_orWhere ( )
it_should_return_self_when_calling_select ( )
it_should_return_self_when_calling_setScopeBase ( )
it_should_return_self_when_calling_setScopeOneLevel ( )
it_should_return_self_when_calling_setScopeSubTree ( )
it_should_return_self_when_calling_where ( )
it_should_return_self_when_setting_the_paging_size_and_use ( )
it_should_return_the_filter_when_calling_toLdapFilter ( )
it_should_return_the_selected_attributes_when_calling_getAttributes ( )
it_should_set_subtree_as_the_default_scope ( )
it_should_set_the_attributes_to_select ( )
it_should_set_the_ldap_server ( )
it_should_set_the_scope_types_correctly ( )
it_should_stack_order_by_attributes_when_calling_addOrderBy ( )
it_should_throw_a_LogicException_when_calling_from_with_a_string_and_a_schema_factory_is_not_set ( )
it_should_throw_a_LogicException_when_calling_getLdapQuery_and_a_ldap_connection_is_not_set ( )
it_should_throw_an_error_if_the_schema_has_no_filter_defined ( )
let ( LdapTools\Connection\LdapConnectionInterface $connection )

Method Details

it_is_initializable() public method

public it_is_initializable ( )

it_should_add_LDAP_controls_to_the_query_operation() public method

it_should_add_additional_statements_to_the_AND_section_of_the_filter_when_calling_andWhere() public method

it_should_add_an_order_by_attribute_defaulting_to_asc() public method

it_should_add_an_order_by_attribute_defaulting_with_a_specific_direction() public method

it_should_allow_a_string_as_a_selected_attribute() public method

it_should_allow_the_ldap_server_to_be_set_per_query() public method

it_should_allow_use_paging_to_be_set_per_query() public method

it_should_be_able_to_call_from_with_a_dynamic_schema_type_name() public method

it_should_error_when_neither_a_string_or_array_was_passed_to_select() public method

it_should_filter_by_OUs_when_calling_fromOUs() public method

it_should_generate_a_filter_from_multiple_types() public method

it_should_generate_a_filter_from_multiple_types_when_using_an_alias() public method

it_should_get_a_filter_without_a_schema_or_connection() public method

it_should_hydrate_properly_getting_the_ldap_filter() public method

it_should_not_escape_hex_string_search_values_that_are_already_escaped() public method

it_should_overwrite_order_by_attributes_when_calling_orderBy() public method

it_should_pass_operation_options_on_to_the_LdapQuery_class_correctly() public method

it_should_return_ADFilterBuilder_when_calling_filter_and_the_ldap_type_is_ActiveDirectory() public method

it_should_return_FilterBuilder_when_calling_filter_and_the_ldap_type_is_not_ActiveDirectory() public method

it_should_return_self_when_calling_add() public method

it_should_return_self_when_calling_andWhere() public method

it_should_return_self_when_calling_fromGroups() public method

it_should_return_self_when_calling_fromOUs() public method

it_should_return_self_when_calling_fromUsers() public method

it_should_return_self_when_calling_from_with_a_LdapObjectSchema() public method

it_should_return_self_when_calling_from_with_a_valid_type() public method

it_should_return_self_when_calling_orWhere() public method

it_should_return_self_when_calling_select() public method

it_should_return_self_when_calling_setScopeBase() public method

it_should_return_self_when_calling_setScopeOneLevel() public method

it_should_return_self_when_calling_setScopeSubTree() public method

it_should_return_self_when_calling_where() public method

it_should_return_self_when_setting_the_paging_size_and_use() public method

it_should_return_the_filter_when_calling_toLdapFilter() public method

it_should_return_the_selected_attributes_when_calling_getAttributes() public method

it_should_set_subtree_as_the_default_scope() public method

it_should_set_the_attributes_to_select() public method

it_should_set_the_ldap_server() public method

it_should_set_the_scope_types_correctly() public method

it_should_stack_order_by_attributes_when_calling_addOrderBy() public method

it_should_throw_a_LogicException_when_calling_from_with_a_string_and_a_schema_factory_is_not_set() public method

it_should_throw_a_LogicException_when_calling_getLdapQuery_and_a_ldap_connection_is_not_set() public method

it_should_throw_an_error_if_the_schema_has_no_filter_defined() public method

let() public method

public let ( LdapTools\Connection\LdapConnectionInterface $connection )
$connection LdapTools\Connection\LdapConnectionInterface

Property Details

$fb protected_oe property

protected FilterBuilder,LdapTools\Query\Builder $fb
return LdapTools\Query\Builder\FilterBuilder

$objectSchema protected_oe property

protected LdapObjectSchema,LdapTools\Schema $objectSchema
return LdapTools\Schema\LdapObjectSchema

$schema protected_oe property

protected SchemaParserFactory,LdapTools\Factory $schema
return LdapTools\Factory\SchemaParserFactory

$singleGroupEntry protected_oe property

protected $singleGroupEntry