* @category Community Framework
*/
abstract class AbstractSearchIndexManager extends SingletonFactory implements ISearchIndexManager {
+ /**
+ * @inheritDoc
+ */
+ public function set($objectType, $objectID, $message, $subject, $time, $userID, $username, $languageID = null, $metaData = '') {
+ $this->add($objectType, $objectID, $message, $subject, $time, $userID, $username, $languageID, $metaData);
+ }
+
/**
* @inheritDoc
*/
* @category Community Framework
*/
interface ISearchIndexManager {
+ /**
+ * Adds or updates an entry.
+ *
+ * @param string $objectType
+ * @param integer $objectID
+ * @param string $message
+ * @param string $subject
+ * @param integer $time
+ * @param integer $userID
+ * @param string $username
+ * @param integer $languageID
+ * @param string $metaData
+ */
+ public function set($objectType, $objectID, $message, $subject, $time, $userID, $username, $languageID = null, $metaData = '');
+
/**
* Adds a new entry.
*
* @param string $username
* @param integer $languageID
* @param string $metaData
+ * @deprecated 2.2 - please use `set()` instead
*/
public function add($objectType, $objectID, $message, $subject, $time, $userID, $username, $languageID = null, $metaData = '');
* @param string $username
* @param integer $languageID
* @param string $metaData
+ * @deprecated 2.2 - please use `set() instead`
*/
public function update($objectType, $objectID, $message, $subject, $time, $userID, $username, $languageID = null, $metaData = '');
return $this->searchIndexManager;
}
+ /**
+ * @inheritDoc
+ */
+ public function set($objectType, $objectID, $message, $subject, $time, $userID, $username, $languageID = null, $metaData = '') {
+ $this->getSearchIndexManager()->set($objectType, $objectID, $message, $subject, $time, $userID, $username, $languageID, $metaData);
+ }
+
/**
* @inheritDoc
*/