Fix code according to blizzz' notes

This commit is contained in:
Christian Weiske
2014-01-09 21:45:52 +01:00
parent 690a579a26
commit 350afe2d27
6 changed files with 11 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
<?php <?php
OC::$CLASSPATH['OC_User_External_Base']='user_external/lib/base.php'; OC::$CLASSPATH['OCA\user_external\Base']='user_external/lib/base.php';
OC::$CLASSPATH['OC_User_IMAP']='user_external/lib/imap.php'; OC::$CLASSPATH['OC_User_IMAP']='user_external/lib/imap.php';
OC::$CLASSPATH['OC_User_SMB']='user_external/lib/smb.php'; OC::$CLASSPATH['OC_User_SMB']='user_external/lib/smb.php';
OC::$CLASSPATH['OC_User_FTP']='user_external/lib/ftp.php'; OC::$CLASSPATH['OC_User_FTP']='user_external/lib/ftp.php';

View File

@@ -17,15 +17,15 @@
<name>backend</name> <name>backend</name>
<type>text</type> <type>text</type>
<default></default> <default></default>
<notnull>true</notnull> <notnull>false</notnull>
<length>255</length> <length>128</length>
</field> </field>
<field> <field>
<name>uid</name> <name>uid</name>
<type>text</type> <type>text</type>
<default></default> <default></default>
<notnull>true</notnull> <notnull>false</notnull>
<length>64</length> <length>64</length>
</field> </field>

View File

@@ -1,10 +1,12 @@
<?php <?php
namespace OCA\user_external;
/** /**
* Copyright (c) 2013 Christian Weiske <cweiske@cweiske.de> * Copyright (c) 2014 Christian Weiske <cweiske@cweiske.de>
* This file is licensed under the Affero General Public License version 3 or * This file is licensed under the Affero General Public License version 3 or
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
use \OC_DB;
/** /**
* Base class for external auth implementations that stores users * Base class for external auth implementations that stores users
@@ -12,7 +14,7 @@
* This is required for making many of the user-related owncloud functions * This is required for making many of the user-related owncloud functions
* work, including sharing files with them. * work, including sharing files with them.
*/ */
abstract class OC_User_External_Base extends OC_User_Backend{ abstract class Base extends \OC_User_Backend{
protected $backend = ''; protected $backend = '';
public function __construct($backend) { public function __construct($backend) {

View File

@@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
class OC_User_FTP extends OC_User_External_Base{ class OC_User_FTP extends \OCA\user_external\Base{
private $host; private $host;
private $secure; private $secure;
private $protocol; private $protocol;

View File

@@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
class OC_User_IMAP extends OC_User_External_Base { class OC_User_IMAP extends \OCA\user_external\Base {
private $mailbox; private $mailbox;
public function __construct($mailbox) { public function __construct($mailbox) {

View File

@@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
class OC_User_SMB extends OC_User_Backend{ class OC_User_SMB extends \OCA\user_external\Base{
private $host; private $host;
const smbclient='smbclient'; const smbclient='smbclient';