[Owncloud] OX_User::useBackend
mlists.owncloud at eideo.de
mlists.owncloud at eideo.de
Mon Aug 6 20:57:47 UTC 2012
Hi Robin,
Am 06.08.12 20:25, schrieb Robin Appelman:
> On Monday 06 August 2012 18:55:52 mlists.owncloud at eideo.de wrote:
>> Hi,
>>
>> I'm trying to develop an user-Backend-App for owncloud 4.
>>
>> As an inspiration I'm looking at the other User-Backend-Apps like
>> "user_ldap" or "user_pwauth". They use the following line in their
>> appinfo/app.php
>>
>> OC_User::useBackend('BACKEND_NAME');
>>
>> I have tested this with my own backend, but the backend is only called,
>> when the "core"-Backend is unsuccessfully. What I want is to inherit the
>> "core"-User-Backend and only extend some methods with some
>> functionalities. Is there a way to do this?
>>
>> --
>> Best wishes,
>> Fabian
> The only way to do that at the moment is removing all other backends before
> adding your custom backend
>
cool, thanks! Calling OC_User::clearBackends() before the
OC_User::useBackend('BACKEND_NAME')-Call works as expected :-).
Fabian
More information about the Owncloud
mailing list