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
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Swift_FailoverTransport
  • Swift_LoadBalancedTransport
  • Swift_MailTransport
  • Swift_Plugins_Loggers_ArrayLogger
  • Swift_Plugins_Loggers_EchoLogger
  • Swift_SendmailTransport
  • Swift_SmtpTransport
  • Swift_Transport_AbstractSmtpTransport
  • Swift_Transport_Esmtp_Auth_CramMd5Authenticator
  • Swift_Transport_Esmtp_Auth_LoginAuthenticator
  • Swift_Transport_Esmtp_Auth_PlainAuthenticator
  • Swift_Transport_Esmtp_AuthHandler
  • Swift_Transport_EsmtpTransport
  • Swift_Transport_FailoverTransport
  • Swift_Transport_LoadBalancedTransport
  • Swift_Transport_MailTransport
  • Swift_Transport_SendmailTransport
  • Swift_Transport_SimpleMailInvoker
  • Swift_Transport_StreamBuffer

Interfaces

  • Swift_Plugins_Logger
  • Swift_Plugins_Pop_Pop3Exception
  • Swift_Transport
  • Swift_Transport_Esmtp_Authenticator
  • Swift_Transport_EsmtpHandler
  • Swift_Transport_IoBuffer
  • Swift_Transport_MailInvoker
  • Swift_Transport_SmtpAgent
  • Swift_TransportException
  • Overview
  • Package
  • Function
  • Todo
  • Download
 1: <?php
 2: /**
 3:  * This file contains the class for visualisation and interactions in the left
 4:  * frame.
 5:  *
 6:  * @package Plugin
 7:  * @subpackage UserForum
 8:  * @version SVN Revision $Rev:$
 9:  *
10:  * @author Claus Schunk
11:  * @copyright four for business AG <www.4fb.de>
12:  * @license http://www.contenido.org/license/LIZENZ.txt
13:  * @link http://www.4fb.de
14:  * @link http://www.contenido.org
15:  */
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17: 
18: /**
19:  * This class contains builds the content of the left frame
20:  *
21:  *
22:  * @package Plugin
23:  * @subpackage UserForum
24:  */
25: class ArticleForumLeftBottom extends cGuiPage {
26: 
27:     protected $_collection;
28: 
29:     public function __construct() {
30:         parent::__construct('left_bottom', 'userforum');
31:         $this->_collection = new ArticleForumCollection();
32:         $this->addScript('location.js');
33:         $this->addStyle('right_bottom.css');
34:     }
35: 
36:     protected function getMenu() {
37:         $arts = new ArticleForumCollection();
38:         $result = $arts->getAllCommentedArticles();
39:         if (count($result) == 0) {
40:             echo UserForum::i18n("NOENTRY");
41:         }
42: 
43:         $cfg = cRegistry::getConfig();
44: 
45:         // get all forms of current client in current language
46:         $forms = $arts->getAllCommentedArticles();
47: 
48:         if (false === $forms) {
49:             return '';
50:         }
51: 
52:         global $area;
53: 
54:         $menu = new cGuiMenu();
55:         for ($i = 0; $i < count($forms); $i++) {
56: 
57:             $formName = $result[$i]['title'];
58:             $menu->setTitle($i, $formName);
59: 
60:             // add 'show form' link
61:             $link = new cHTMLLink();
62: 
63:             $link->setCLink($area, 4, 'show_form');
64:             $link->setTargetFrame('right_bottom');
65:             $link->setClass('linktext');
66:             $link->setCustom('idart', $result[$i]['idart']);
67:             $link->setCustom('idcat', $result[$i]['idcat']);
68:             $link->setContent($formName);
69:             $menu->setLink($i, $link);
70: 
71:             $link = new cHTMLLink();
72: 
73:             $arg = $result[$i]['idart'];
74:             $message = UserForum::i18n('ALLDELETEFROMCAT');
75:             $link->setLink('javascript:void(0)');
76:             $link->setAttribute("onclick", 'Con.showConfirmation(&quot;' . $message . '&quot;, function(){ deleteArticlesByIdLeft(' . $arg . '); }); return false;');
77:             $link->setImage($cfg['path']['images'] . 'delete.gif');
78:             $link->setAlt($message);
79:             $menu->setActions($i, 'delete', $link);
80:         }
81: 
82:         return $menu;
83:     }
84: 
85:     public function receiveData(&$get) {
86:         if ($_GET['action'] === 'delete_form') {
87:             $this->_collection->deleteAllCommentsById($get['idart']);
88:         }
89: 
90:         return $this->getMenu();
91:     }
92: 
93: }
94: 
95: ?>
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen