Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationMain
    • NavigationTop
  • 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

Classes

  • FrontendLogic
  • frontendlogic_category
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * This file contains the abstract frontend logic class.
 4:  *
 5:  * @package    Plugin
 6:  * @subpackage FrontendLogic
 7:  * @version    SVN Revision $Rev:$
 8:  *
 9:  * @author     Unknown
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: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17: 
18: /**
19:  * FrontendLogic: This is the base class for all frontend related logic.
20:  *
21:  * Basically, the class FrontendLogic is the base class for all your objects in
22:  * the frontend. Your child classes define how your objects are named, which
23:  * actions and items they contain and which item type they've got.
24:  *
25:  * A word on actions: Each single object of a FrontendLogic subclass has the
26:  * same amount of actions. You can't have a different set of actions for
27:  * different objects of the same type.
28:  *
29:  * @package    Plugin
30:  * @subpackage FrontendLogic
31:  */
32: abstract class FrontendLogic {
33: 
34:     /**
35:      * getFriendlyName: Returns the friendly (e.g. display) name of your
36:      * objects.
37:      *
38:      * @return string Name of the object
39:      */
40:     public function getFriendlyName() {
41:         return "Inherited class *must* override getFriendlyName";
42:     }
43: 
44:     /**
45:      * listActions: Lists all actions
46:      *
47:      * The returned array has the format $actionname => $actiondescription
48:      *
49:      * @return array Array of all actions
50:      */
51:     public function listActions() {
52:         return array("Inherited class *must* override listActions");
53:     }
54: 
55:     /**
56:      * listItems: Lists all available items
57:      *
58:      * The returned array has the format $itemid => $itemname
59:      *
60:      * @return array Array of items
61:      */
62:     public function listItems() {
63:         return array("Inherited class *must* override listItems");
64:     }
65: 
66: }
67: 
68: ?>
CMS CONTENIDO 4.9.0 API documentation generated by ApiGen 2.8.0