1<?php
2/**
3 * Copyright 2006-2017 Horde LLC (http://www.horde.org/)
4 *
5 * See the enclosed file COPYING for license information (LGPL). If you
6 * did not receive this file, see http://www.horde.org/licenses/lgpl21.
7 *
8 * @category Horde
9 * @package  Perms
10 * @author   Gunnar Wrobel <wrobel@pardus.de>
11 * @license  http://www.horde.org/licenses/lgpl21 LGPL 2.1
12 */
13
14/**
15 * Maps a single Horde default permission element to a Kolab_Storage ACL.
16 *
17 * @category Horde
18 * @package  Perms
19 * @author   Gunnar Wrobel <wrobel@pardus.de>
20 * @license  http://www.horde.org/licenses/lgpl21 LGPL 2.1
21 */
22class Horde_Perms_Permission_Kolab_Element_Default
23extends Horde_Perms_Permission_Kolab_Element
24{
25    /**
26     * Get the Kolab_Storage ACL id for this permission.
27     *
28     * @return string The ACL string.
29     */
30    public function getId()
31    {
32        return 'anyone';
33    }
34
35    /**
36     * Unset the element in the provided permission array.
37     *
38     * @param array &$current The current permission array.
39     */
40    public function unsetInCurrent(&$current)
41    {
42        unset($current['default']);
43    }
44}
45