Example #1
0
 public function parse($file)
 {
     $output = '';
     if ($file) {
         ob_start();
         include $file;
         $html = ob_get_contents();
         ob_end_clean();
         $output = \Model\LoadExtensions::AddPlugin($html);
     } else {
         $msg = "Template nicht gefunden";
         $output = \View\Error::errDocument($msg);
     }
     return $output;
 }
<?php

/**
 * Plugin Password Generator
 *
 * *Description* Erzeugen von sicheren Passwörtern
 *
 * @author Alexander Weigelt <*****@*****.**>
 * @link http://alexander-weigelt.de
 * @version PLugin PasswordGenerator 1.0.0
 * @license http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode CC BY-NC-ND 4.0
 */
include_once dirname(__FILE__) . '/classes/PasswordGenerator.php';
\Model\LoadExtensions::AddHTML('library', 'jQuery');
function PasswordGenerator()
{
    $password = new PasswordGenerator();
    return $password->viewHTML();
}
 /**
  * Plugin laden
  *
  * *Description*
  *
  * @param
  *
  * @return array
  */
 private function loadPlugin()
 {
     \Model\LoadExtensions::PluginLoader();
 }