/**
* Constructor.
*
- * @param Group $groups The groups handler.
- * @param array $params Connection parameters.
+ * @param Horde_Group $groups The groups handler.
+ * @param array $params Connection parameters.
*/
- public function __construct(Group $groups, $params = array())
+ public function __construct(Horde_Group $groups, $params = array())
{
$this->_groups = $groups;
$this->_params = $params;
*
* @param array $params Connection parameters.
*/
- public function __construct(
- Group $groups
- ) {
+ public function __construct(Horde_Group $groups)
+ {
$this->_groups = $groups;
}
* Constructor.
*
* @param Horde_Imap_Client_Base $imap The IMAP connection handler.
- * @param Group $groups The groups handler.
+ * @param Horde_Group $groups The groups handler.
* @param array $params Connection parameters.
*/
public function __construct(
Horde_Imap_Client_Base $imap,
- Group $groups,
+ Horde_Group $groups,
$params = array()
) {
$this->_imap = $imap;
/**
* Constructor.
*
- * @param Net_IMAP $imap The IMAP connection handler.
- * @param Group $groups The groups handler.
- * @param array $params Connection parameters.
+ * @param Net_IMAP $imap The IMAP connection handler.
+ * @param Horde_Group $groups The groups handler.
+ * @param array $params Connection parameters.
*/
public function __construct(
Net_IMAP $imap,
- Group $groups,
+ Horde_Group $groups,
$params = array()
) {
$this->_imap = $imap;
public function __construct(
$name,
Horde_Kolab_Storage_Folder $folder,
- Group $groups
+ Horde_Group $groups
) {
parent::__construct(__CLASS__ . '::' . $name);
$this->_folder = $folder;
/**
* Constructor.
*
- * @param string $acl The folder ACL element as provided by the driver.
- * @param string $id The group id.
- * @param Group $groups The horde group handler.
+ * @param string $acl The folder ACL element as provided by the driver.
+ * @param string $id The group id.
+ * @param Horde_Group $groups The horde group handler.
*/
- public function __construct($acl, $id, Group $groups)
+ public function __construct($acl, $id, Horde_Group $groups)
{
$this->_id = $id;
$this->_groups = $groups;
* @param Horde_Group $groups The group handler.
* @param string $creator The ID of the folder creator.
*/
- public function __construct(array $acl, Group $groups, $creator)
+ public function __construct(array $acl, Horde_Group $groups, $creator)
{
foreach ($acl as $user => $rights) {
if ($user == $creator) {
/**
* Constructor.
*
- * @param int $permission The folder permission as provided by Horde.
- * @param string $id The group id.
- * @param Group $groups The horde group handler.
+ * @param integer $permission The folder permission as provided by Horde.
+ * @param string $id The group id.
+ * @param Horde_Group $groups The horde group handler.
*/
- public function __construct($permission, $id, Group $groups)
+ public function __construct($permission, $id, Horde_Group $groups)
{
$this->_horde_id = $id;
$this->_kolab_id = 'group:' . $groups->getGroupName($id);
* @param Horde_Group $groups The group handler.
* @param string $creator The ID of the folder creator.
*/
- public function __construct(array $permissions, Group $groups, $creator)
+ public function __construct(array $permissions, Horde_Group $groups, $creator)
{
foreach ($permissions as $user => $user_perms) {
if ($user == 'default') {
{
$this->_storage = $this->getMock('Horde_Kolab_Storage', array(), array(), '', false, false);
$this->_imap = $this->getMock('Horde_Imap_Client_Socket', array(), array(), '', false, false);
- $this->groups = $this->getMock('Group', array(), array(), '', false, false);
+ $this->groups = $this->getMock('Horde_Group', array(), array(), '', false, false);
$this->_connection = new Horde_Kolab_Storage_Driver_Imap($this->_imap, $this->groups);
$this->_imap->expects($this->any())
->method('getNamespaces')
{
public function setUp()
{
- require_once 'Horde/Group.php';
- require_once 'Horde/Group/mock.php';
-
- $this->group = new Group_mock();
+ $this->group = new Horde_Group_Mock();
}
public function testGetNamespaceReturnsNamespaceHandler()
{
public function setUp()
{
- require_once 'Horde/Group.php';
- require_once 'Horde/Group/mock.php';
-
- $this->group = new Group_mock();
+ $this->group = new Horde_Group_Mock();
}
public function testGetNamespaceReturnsNamespaceHandler()
{
public function setUp()
{
- require_once 'Horde/Group.php';
- require_once 'Horde/Group/mock.php';
-
- $this->group = new Group_mock();
+ $this->group = new Horde_Group_Mock();
}
public function testGetAnnotationReturnsAnnotationValue()
{
public function setUp()
{
- require_once 'Horde/Group.php';
- require_once 'Horde/Group/mock.php';
-
- $this->group = new Group_mock();
+ $this->group = new Horde_Group_Mock();
}
public function testGetNamespaceReturnsNamespaceHandler()
public function setUp()
{
$this->folder = $this->getMock('Horde_Kolab_Storage_Folder_Base', array(), array(), '', false, false);
- $this->groups = $this->getMock('Group', array(), array(), '', false, false);
+ $this->groups = $this->getMock('Horde_Group', array(), array(), '', false, false);
$this->perms = new Horde_Perms();
}