Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Functions

  • cecCreateBaseHref
  • cecCreateMetatags
  • cecFrontendCategoryAccess
  • cecFrontendCategoryAccess_Backend
  • cecIndexArticle
  • cecParseTemplate
  • CheckIfMetaTagExists
  • Overview
  • Package
  • Function
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: 
 3: /**
 4:  * CONTENIDO Chain.
 5:  * Generate index of article content entries.
 6:  *
 7:  * @package Core
 8:  * @subpackage Chain
 9:  * @author Marcus Gnaß <marcus.gnass@4fb.de>
10:  * @copyright four for business AG <www.4fb.de>
11:  * @license http://www.contenido.org/license/LIZENZ.txt
12:  * @link http://www.4fb.de
13:  * @link http://www.contenido.org
14:  */
15: 
16: // assert CONTENIDO framework
17: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
18: 
19: /**
20:  * Generate index of article content entries.
21:  *
22:  * @param array $articleIds
23:  *         containing keys idclient, idlang, idcat, idcatlang, idart, idartlang
24:  */
25: function cecIndexArticle(array $articleIds) {
26: 
27:     $cfg = cRegistry::getConfig();
28:     $db = cRegistry::getDb();
29: 
30:     // Indexing an article depends on the complete content with all content
31:     // types, i.e it can not by differentiated by specific content types.
32:     // Therefore one must fetch the complete content array.
33:     $aContent = conGetContentFromArticle($articleIds['idartlang']);
34: 
35:     // cms types to be excluded from indexing
36:     $aOptions = $cfg['search_index']['excluded_content_types'];
37: 
38:     // start indexing
39:     $index = new cSearchIndex($db);
40:     $index->start($articleIds['idart'], $aContent, 'auto', $aOptions);
41: }
42: 
43: ?>
CMS CONTENIDO 4.9.11 API documentation generated by ApiGen 2.8.0