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
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • PHP
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SIWECOS
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • pApiContentAllocation
  • pApiContentAllocationArticle
  • pApiContentAllocationComplexList
  • pApiContentAllocationSelectBox
  • pApiContentAllocationTreeView
  • pApiTree

Functions

  • pica_ArticleListActions
  • pica_GetCustomTabProperties
  • pica_RegisterCustomTab
  • pica_RenderArticleAction
  • Overview
  • Package
  • Function
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: 
 3: /**
 4:  * This file contains various function for the plugin content allocation.
 5:  *
 6:  * @package    Plugin
 7:  * @subpackage ContentAllocation
 8:  * @author     Unknown
 9:  * @copyright  four for business AG <www.4fb.de>
10:  * @license    http://www.contenido.org/license/LIZENZ.txt
11:  * @link       http://www.4fb.de
12:  * @link       http://www.contenido.org
13:  */
14: 
15: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
16: 
17: /**
18:  * @return array
19:  */
20: function pica_RegisterCustomTab()
21: {
22:     return ["con_contentallocation"];
23: }
24: 
25: /**
26:  * @param $sIntName
27:  *
28:  * @return array
29:  */
30: function pica_GetCustomTabProperties($sIntName)
31: {
32:     if ($sIntName == "con_contentallocation") {
33:         return ["con_contentallocation", "con_edit", ""];
34:     }
35: }
36: 
37: /**
38:  * @param $aActions
39:  *
40:  * @return mixed
41:  */
42: function pica_ArticleListActions($aActions)
43: {
44:     $aTmpActions["con_contentallocation"] = "con_contentallocation";
45: 
46:     return $aTmpActions + $aActions;
47: }
48: 
49: /**
50:  * @param $idcat
51:  * @param $idart
52:  * @param $idartlang
53:  * @param $actionkey
54:  *
55:  * @return string
56:  * @throws cException
57:  */
58: function pica_RenderArticleAction($idcat, $idart, $idartlang, $actionkey)
59: {
60:     global $sess;
61: 
62:     $anchor = '';
63:     if ($actionkey == 'con_contentallocation') {
64:         $label  = i18n('Tagging', 'content_allocation');
65:         $url    = $sess->url(
66:             'main.php?area=con_contentallocation&action=con_edit&idart=' . $idart . '&idartlang=' . $idartlang
67:             . '&idcat=' . $idcat . '&frame=4'
68:         );
69:         $image  = '<img src="plugins/content_allocation/images/call_contentallocation.gif" alt="' . $label . '">';
70:         $anchor = '<a title="' . $label . '" alt="' . $label . '" href="' . $url . '">' . $image . '</a>';
71:     }
72: 
73:     return $anchor;
74: }
75: 
76: ?>
CMS CONTENIDO 4.10.1 API documentation generated by ApiGen 2.8.0