Skip to content

Commit

Permalink
[mms] Add null driver for the content tagger.
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Feb 13, 2014
1 parent b814892 commit f625641
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 2 deletions.
108 changes: 108 additions & 0 deletions framework/Core/lib/Horde/Core/Tagger/Null.php
@@ -0,0 +1,108 @@
<?php
/**
* Copyright 2014 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
*
* @category Horde
* @copyright 2014 Horde LLC
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Core
*/

/**
* Null driver for the Horde_Content tagger.
*
* @author Michael Slusarz <slusarz@horde.org>
* @category Horde
* @copyright 2014 Horde LLC
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Core
* @since 2.12.0
*/
class Horde_Core_Tagger_Null extends Horde_Core_Tagger
{
/**
*/
public function __construct()
{
}

/**
*/
public function tag($localId, $tags, $owner, $content_type = null)
{
}

/**
*/
public function getTags($localId, $type = null)
{
return array();
}

/**
*/
public function untag($localId, $tags, $content_type = null)
{
}

/**
*/
public function replaceTags($localId, $tags, $owner, $content_type = null)
{
}

/**
*/
public function listTags($token)
{
return array();
}

/**
*/
public function getCloud($user, $limit = 5, $all = false)
{
return array();
}

/**
*/
public function getTagCountsByObjects(array $ids, $type = null)
{
return array();
}

/**
*/
public function browseTags($tags, $user)
{
return array();
}

/**
*/
public function getTagIds($tags)
{
return array();
}

/**
*/
public function getTagInfo(
$tags = null, $limit = 500, $type = null, $user = null
)
{
return array();
}

/**
*/
public function search($tags, array $filter = array())
{
return array();
}

}
10 changes: 8 additions & 2 deletions framework/Core/package.xml
Expand Up @@ -28,7 +28,7 @@
<email>mrubinsk@horde.org</email>
<active>yes</active>
</developer>
<date>2014-02-06</date>
<date>2014-02-13</date>
<version>
<release>2.12.0</release>
<api>2.12.0</api>
Expand All @@ -39,6 +39,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Add null driver for the content tagger.
* [jan] Add database configuration for Oracle.
* [mms] Add Horde_Registry_Application#getInitialPage().
* [mms] Add Horde_Core_Script_Package_Sortable.
Expand Down Expand Up @@ -588,6 +589,9 @@
</dir> <!-- /lib/Horde/Core/Smartmobile/View -->
<file name="Url.php" role="php" />
</dir> <!-- /lib/Horde/Core/Smartmobile -->
<dir name="Tagger">
<file name="Null.php" role="php" />
</dir> <!-- /lib/Horde/Core/Tagger -->
<dir name="Text">
<dir name="Filter">
<file name="Bbcode.php" role="php" />
Expand Down Expand Up @@ -1913,6 +1917,7 @@
<install as="Horde/Core/Share/FactoryCallback.php" name="lib/Horde/Core/Share/FactoryCallback.php" />
<install as="Horde/Core/Smartmobile/Url.php" name="lib/Horde/Core/Smartmobile/Url.php" />
<install as="Horde/Core/Smartmobile/View/Helper.php" name="lib/Horde/Core/Smartmobile/View/Helper.php" />
<install as="Horde/Core/Tagger/Null.php" name="lib/Horde/Core/Tagger/Null.php" />
<install as="Horde/Core/Text/Filter/Bbcode.php" name="lib/Horde/Core/Text/Filter/Bbcode.php" />
<install as="Horde/Core/Text/Filter/Emails.php" name="lib/Horde/Core/Text/Filter/Emails.php" />
<install as="Horde/Core/Text/Filter/Emoticons.php" name="lib/Horde/Core/Text/Filter/Emoticons.php" />
Expand Down Expand Up @@ -3341,9 +3346,10 @@
<stability>
<release>stable</release>
<api>stable</api></stability>
<date>2014-02-06</date>
<date>2014-02-13</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Add null driver for the content tagger.
* [jan] Add database configuration for Oracle.
* [mms] Add Horde_Registry_Application#getInitialPage().
* [mms] Add Horde_Core_Script_Package_Sortable.
Expand Down

0 comments on commit f625641

Please sign in to comment.