Overview

Packages

  • Perms

Classes

  • Horde_Perms
  • Horde_Perms_Base
  • Horde_Perms_Datatree
  • Horde_Perms_Exception
  • Horde_Perms_Null
  • Horde_Perms_Permission
  • Horde_Perms_Permission_Datatree
  • Horde_Perms_Permission_Kolab
  • Horde_Perms_Permission_Kolab_Acl
  • Horde_Perms_Permission_Kolab_Acl_Anonymous
  • Horde_Perms_Permission_Kolab_Acl_Anyone
  • Horde_Perms_Permission_Kolab_Acl_Creator
  • Horde_Perms_Permission_Kolab_Acl_Group
  • Horde_Perms_Permission_Kolab_Acl_User
  • Horde_Perms_Permission_Kolab_AclIterator
  • Horde_Perms_Permission_Kolab_Element
  • Horde_Perms_Permission_Kolab_Element_Creator
  • Horde_Perms_Permission_Kolab_Element_Default
  • Horde_Perms_Permission_Kolab_Element_Group
  • Horde_Perms_Permission_Kolab_Element_Guest
  • Horde_Perms_Permission_Kolab_Element_User
  • Horde_Perms_Permission_Kolab_ElementIterator
  • Horde_Perms_Permission_Sql
  • Horde_Perms_Sql
  • Horde_Perms_Translation

Interfaces

  • Horde_Perms_Permission_Kolab_Storage
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * @package Perms
 4:  *
 5:  * Copyright 2010-2012 Horde LLC (http://www.horde.org/)
 6:  *
 7:  * See the enclosed file COPYING for license information (LGPL). If you
 8:  * did not receive this file, see http://www.horde.org/licenses/lgpl21.
 9:  */
10: 
11: /**
12:  * Horde_Perms_Translation is the translation wrapper class for Horde_Perms.
13:  *
14:  * @author  Jan Schneider <jan@horde.org>
15:  * @package Perms
16:  */
17: class Horde_Perms_Translation extends Horde_Translation
18: {
19:     /**
20:      * Returns the translation of a message.
21:      *
22:      * @var string $message  The string to translate.
23:      *
24:      * @return string  The string translation, or the original string if no
25:      *                 translation exists.
26:      */
27:     static public function t($message)
28:     {
29:         self::$_domain = 'Horde_Perms';
30:         self::$_directory = '@data_dir@' == '@'.'data_dir'.'@' ? dirname(__FILE__) . '/../../../locale' : '@data_dir@/Horde_Perms/locale';
31:         return parent::t($message);
32:     }
33: 
34:     /**
35:      * Returns the plural translation of a message.
36:      *
37:      * @param string $singular  The singular version to translate.
38:      * @param string $plural    The plural version to translate.
39:      * @param integer $number   The number that determines singular vs. plural.
40:      *
41:      * @return string  The string translation, or the original string if no
42:      *                 translation exists.
43:      */
44:     static public function ngettext($singular, $plural, $number)
45:     {
46:         self::$_domain = 'Horde_Perms';
47:         self::$_directory = '@data_dir@' == '@'.'data_dir'.'@' ? dirname(__FILE__) . '/../../../locale' : '@data_dir@/Horde_Perms/locale';
48:         return parent::ngettext($singular, $plural, $number);
49:     }
50: }
51: 
API documentation generated by ApiGen