egroupware/addressbook/inc/class.addressbook_univention.inc.php

41 lines
1.0 KiB
PHP
Raw Normal View History

2014-11-06 17:54:33 +01:00
<?php
/**
* Addressbook - Univention Backend
*
* @link http://www.egroupware.org
* @author Ralf Becker <rb@stylite.de>
* @package addressbook
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
/**
* Univention backend for addressbook
2014-11-06 17:54:33 +01:00
*
* Different mail attribute is only difference to LDAP backend
2014-11-06 17:54:33 +01:00
*/
class addressbook_univention extends addressbook_ldap
{
function __construct($ldap_config = null, $ds = null)
{
$this->schema2egw['univentionmail'] = array(
'email' => accounts_univention::MAIL_ATTR,
);
parent::__construct($ldap_config, $ds);
}
2015-09-18 09:20:08 +02:00
/**
* saves the content of data to the db
*
* @param array $keys if given $keys are copied to data before saveing => allows a save as
* @return int 0 on success and errno != 0 else
*/
function save($keys=null)
{
// UCS lowercases email when storing
$keys['email'] = strtolower(!empty($keys['email']) ? $keys['email'] : $this->data['email']);
return parent::save($keys);
}
2014-11-06 17:54:33 +01:00
}