/** * Index a string with the moduleId and the itemId. * * The function get a string and separate into many words and store each of them. * * @param integer $moduleId The module ID to store. * @param integer $itemId The item ID. * @param string $data String to save. * * @return void */ private function _index($moduleId, $itemId, $data) { $tags = $this->_stringToArray($data); $this->_tagsTableMapper->saveTagsForModuleItem($moduleId, $itemId, $tags); }