PHP Class spec\LdapTools\Query\LdapQuerySpec

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

Protected Properties

Property Type Description
$containers
$filter LdapTools\Query\OperatorCollection
$ldapEntries
$operation LdapTools\Operation\QueryOperation
$ous
$sortEntries

Public Methods

Method Description
getMatchers ( )
it_is_initializable ( )
it_should_add_order_by_attributes_to_the_selection_if_not_explicitly_done ( $connection )
it_should_allow_setting_the_query_operation ( )
it_should_force_arrays_on_multivalued_attributes_when_returning_results ( $connection )
it_should_have_an_empty_array_for_the_default_order_by ( )
it_should_honor_an_explicitly_set_dn_over_one_from_the_schema_if_specified ( $connection )
it_should_honor_default_attributes_to_select_when_present_in_the_LdapObjectSchema ( $connection )
it_should_limit_the_results_for_subsequent_operations_if_a_size_limit_is_set_so_we_dont_go_over_the_limit ( $connection )
it_should_not_add_an_order_by_attribute_to_the_selection_when_a_wildcard_is_used ( $connection )
it_should_override_default_attributes_to_select_when_explicitly_setting_attributes ( $connection )
it_should_query_results_from_multiple_schema_types ( $connection )
it_should_resolve_base_dn_parameters_when_querying_ldap ( $connection )
it_should_return_a_LdapObjectCollection_by_default ( )
it_should_return_a_null_value_when_calling_getSingleScalarOrNullResult_and_no_attribute_is_found ( $connection )
it_should_return_a_result_when_calling_getResult ( )
it_should_return_a_single_attribute_value_when_calling_getSingleScalarOrNullResult ( $connection )
it_should_return_a_single_attribute_value_when_calling_getSingleScalarResult ( $connection )
it_should_return_a_single_result_when_calling_getOneOrNullResult ( $connection )
it_should_return_a_single_result_when_calling_getSingleResult ( $connection )
it_should_return_an_array_result_when_calling_getArrayResult ( )
it_should_return_null_when_calling_getOneOrNullResult_and_no_results_are_found ( $connection )
it_should_return_the_query_operation ( )
it_should_select_all_LDAP_attributes_with_a_double_wildcard ( $connection )
it_should_select_all_schema_attributes_with_a_wildcard ( $connection )
it_should_set_a_base_dn_from_the_schema_if_specified ( $connection )
it_should_set_the_order_by_attributes ( )
it_should_sort_case_insensitive_by_default ( )
it_should_sort_case_sensitive_if_specified ( $connection )
it_should_sort_results_for_multiple_aliases ( $connection )
it_should_sort_results_when_specified ( $connection )
it_should_throw_EmptyResultException_when_no_results_are_returned_but_one_is_expected ( $connection )
it_should_throw_MultiResultException_when_many_results_are_returned_when_only_one_is_expected ( )
it_should_throw_an_error_when_calling_getSingleScalarResult_and_the_attribute_doesnt_exist ( $connection )
it_should_throw_an_exception_when_calling_getSingleScalarOrNullResult_and_more_than_one_LDAP_object_is_found ( $connection )
it_should_throw_an_exception_when_calling_getSingleScalarOrNullResult_and_more_than_one_attribute_is_selected ( $connection )
it_should_throw_an_exception_when_calling_getSingleScalarOrNullResult_and_no_LDAP_object_is_found ( $connection )
it_should_throw_an_exception_when_calling_getSingleScalarResult_and_more_than_one_LDAP_object_is_found ( $connection )
it_should_throw_an_exception_when_calling_getSingleScalarResult_and_more_than_one_attribute_is_selected ( $connection )
it_should_throw_an_exception_when_calling_getSingleScalarResult_and_no_LDAP_object_is_found ( $connection )
let ( LdapTools\Connection\LdapConnectionInterface $connection )

Method Details

getMatchers() public method

public getMatchers ( )

it_is_initializable() public method

public it_is_initializable ( )

it_should_add_order_by_attributes_to_the_selection_if_not_explicitly_done() public method

it_should_allow_setting_the_query_operation() public method

it_should_force_arrays_on_multivalued_attributes_when_returning_results() public method

it_should_have_an_empty_array_for_the_default_order_by() public method

it_should_honor_an_explicitly_set_dn_over_one_from_the_schema_if_specified() public method

it_should_honor_default_attributes_to_select_when_present_in_the_LdapObjectSchema() public method

it_should_limit_the_results_for_subsequent_operations_if_a_size_limit_is_set_so_we_dont_go_over_the_limit() public method

it_should_not_add_an_order_by_attribute_to_the_selection_when_a_wildcard_is_used() public method

it_should_override_default_attributes_to_select_when_explicitly_setting_attributes() public method

it_should_query_results_from_multiple_schema_types() public method

it_should_resolve_base_dn_parameters_when_querying_ldap() public method

it_should_return_a_LdapObjectCollection_by_default() public method

it_should_return_a_null_value_when_calling_getSingleScalarOrNullResult_and_no_attribute_is_found() public method

it_should_return_a_result_when_calling_getResult() public method

it_should_return_a_single_attribute_value_when_calling_getSingleScalarOrNullResult() public method

it_should_return_a_single_attribute_value_when_calling_getSingleScalarResult() public method

it_should_return_a_single_result_when_calling_getOneOrNullResult() public method

it_should_return_a_single_result_when_calling_getSingleResult() public method

it_should_return_an_array_result_when_calling_getArrayResult() public method

it_should_return_null_when_calling_getOneOrNullResult_and_no_results_are_found() public method

it_should_return_the_query_operation() public method

it_should_select_all_LDAP_attributes_with_a_double_wildcard() public method

it_should_select_all_schema_attributes_with_a_wildcard() public method

it_should_set_a_base_dn_from_the_schema_if_specified() public method

it_should_set_the_order_by_attributes() public method

it_should_sort_case_insensitive_by_default() public method

it_should_sort_case_sensitive_if_specified() public method

it_should_sort_results_for_multiple_aliases() public method

it_should_sort_results_when_specified() public method

public it_should_sort_results_when_specified ( $connection )

it_should_throw_EmptyResultException_when_no_results_are_returned_but_one_is_expected() public method

it_should_throw_MultiResultException_when_many_results_are_returned_when_only_one_is_expected() public method

it_should_throw_an_error_when_calling_getSingleScalarResult_and_the_attribute_doesnt_exist() public method

it_should_throw_an_exception_when_calling_getSingleScalarOrNullResult_and_more_than_one_LDAP_object_is_found() public method

it_should_throw_an_exception_when_calling_getSingleScalarOrNullResult_and_more_than_one_attribute_is_selected() public method

it_should_throw_an_exception_when_calling_getSingleScalarOrNullResult_and_no_LDAP_object_is_found() public method

it_should_throw_an_exception_when_calling_getSingleScalarResult_and_more_than_one_LDAP_object_is_found() public method

it_should_throw_an_exception_when_calling_getSingleScalarResult_and_more_than_one_attribute_is_selected() public method

it_should_throw_an_exception_when_calling_getSingleScalarResult_and_no_LDAP_object_is_found() public method

let() public method

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

Property Details

$containers protected_oe property

protected $containers

$filter protected_oe property

protected OperatorCollection,LdapTools\Query $filter
return LdapTools\Query\OperatorCollection

$ldapEntries protected_oe property

protected $ldapEntries

$operation protected_oe property

protected QueryOperation,LdapTools\Operation $operation
return LdapTools\Operation\QueryOperation

$ous protected_oe property

protected $ous

$sortEntries protected_oe property

protected $sortEntries