Public Member Functions | Data Fields

ParagraphPlugins Class Reference
[Modules/IliasLearningModule]

Class ParagraphPlugins. More...

Public Member Functions

 ParagraphPlugins ()
 getRegisteredPluginsAsArray ()
 getPluginArray
 registerPlugin ($plugin)
 register plugin
 serializeToString ()
 serializes all plugin to one string format filetype::title::link::image|filetypetitle::link::image|...
 initialize ()
 parses plugin subdirectory and

Data Fields

 $plugins
 $pluginDirectory
 $skipDirectories

Detailed Description

Class ParagraphPlugins.

Author:
Roland K├╝stermann
Version:
Id:
class.ilParagraphPlugin.php 11711 2006-07-30 14:11:38Z akill

Definition at line 32 of file class.ilParagraphPlugin.php.


Member Function Documentation

ParagraphPlugins::getRegisteredPluginsAsArray (  ) 

getPluginArray

Definition at line 49 of file class.ilParagraphPlugin.php.

                                                {
                return $this->plugins;          
        }

ParagraphPlugins::initialize (  ) 

parses plugin subdirectory and

Definition at line 73 of file class.ilParagraphPlugin.php.

References registerPlugin().

                               {                
                foreach (glob($this->pluginDirectory."/*",GLOB_ONLYDIR) as $pluginDir) {
                        if (array_key_exists($pluginDir,$this->skipDirectories))
                                continue;
                        $pluginFile = $pluginDir . "/classes/class.plugin.php";
                        if (file_exists($pluginFile)) {
                                include ($pluginFile);
                                if (is_object($plugin)) {
                                        $this->registerPlugin($plugin);
                                        unset ($plugin);
                                }
                        }
                }       
        }

Here is the call graph for this function:

ParagraphPlugins::ParagraphPlugins (  ) 

Definition at line 37 of file class.ilParagraphPlugin.php.

                                     {
                $this->plugins = array();
                $this->pluginDirectory = ILIAS_ABSOLUTE_PATH."/content/plugins";
                $this->skipDirectories = array ();
                $this->skipDirectories [$this->pluginDirectory."/classes"] = "skip"; 
                $this->skipDirectories [$this->pluginDirectory."/resources"]= "skip";
                $this->skipDirectories [$this->pluginDirectory."/CVS"]= "skip";
        }

ParagraphPlugins::registerPlugin ( plugin  ) 

register plugin

Definition at line 57 of file class.ilParagraphPlugin.php.

Referenced by initialize().

                                          {
                //echo "registered Plugin ".$plugin->getTitle();
                $this->plugins[$plugin->serializeToString()] = $plugin;
        }

Here is the caller graph for this function:

ParagraphPlugins::serializeToString (  ) 

serializes all plugin to one string format filetype::title::link::image|filetypetitle::link::image|...

Definition at line 66 of file class.ilParagraphPlugin.php.

                                     {
                return implode ("|", array_keys($this->plugins));               
        }


Field Documentation

ParagraphPlugins::$pluginDirectory

Definition at line 34 of file class.ilParagraphPlugin.php.

ParagraphPlugins::$plugins

Definition at line 33 of file class.ilParagraphPlugin.php.

ParagraphPlugins::$skipDirectories

Definition at line 35 of file class.ilParagraphPlugin.php.


The documentation for this class was generated from the following file: