./ ge-webdesign.de 2024-01 // adapted for CMSimple 4 and 5 ge-webdesign.de 2012-2023 /** * Page-Data - Module page_data_views * Part of the Pluginloader V.2.1.x * * Provides an interface for plugins to * handle the page_data. * * @author Martin Damken * @link http://www.zeichenkombinat.de * @version 1.0.04 * @package pluginloader * @subpackage page_data */ /** * PL_Page_Data_View * * @access public */ class PL_Page_Data_View{ var $page, $tabs; /** * PL_Page_Data_View::PL_Page_Data_View() * * @param mixed $page * @param mixed $tabs * @return */ function __construct($page, $tabs = null){ $this->page = $page; $this -> tabs = $tabs; } /** * PL_Page_Data_View::pd_forms() * * @return string $view Returns created view */ function pd_forms(){ global $h, $plugin_tx, $su, $hjs; $hjs .= ''; $view = "\n". '
'; foreach($this -> tabs as $title => $code){ $view .= ' '.$title.''; } $view .= "\n
\n".'
'; foreach($this -> tabs as $title => $file){ $view .= "\n".'
 '; if(file_exists($file)){ include_once($file); $function = explode('.',basename($file)); $function = $function[0]; $view .= $function($this -> page); } else {$view .= "Could not find ". $file;} $view .= "\n"."
\n"; } $view .= "\n".'
'; $hjs .= "\n".''."\n"; return $view; } } ?>