public function addComponent($area, GUIComponent $component) { switch ($area) { case GUIAreas::CONTENT: $this->content_area[$component->getName()] = $component->getHTML(); $this->addControlScriptsAndCss($component); break; case GUIAreas::CONTROL: $this->control_area[$component->getName()] = $component->getHTML(); $this->addControlScriptsAndCss($component); break; case GUIAreas::INFO: $this->info_area[$component->getName()] = $component->getHTML(); $this->addControlScriptsAndCss($component); break; case GUIAreas::LOGO: $this->logo_area[$component->getName()] = $component->getHTML(); $this->addControlScriptsAndCss($component); break; case GUIAreas::SEARCH: $this->search_area[$component->getName()] = $component->getHTML(); $this->addControlScriptsAndCss($component); break; case GUIAreas::FOOT: $this->footer_content[$component->getName()] = $component->getHTML(); $this->addControlScriptsAndCss($component); break; case GUIAreas::TOOLBAR: $this->toolbar_content[$component->getName()] = $component->getHTML(); $this->addControlScriptsAndCss($component); break; default: throw new Exception("Área inválida", "INVALID_AREA"); } }
public function __construct($name) { parent::__construct($name); $this->toolbar = new GUITools("mainToolbar"); $this->getControls(); $this->createHTML(); }
public function __construct($name, $options = NULL, GUITableOptionsCondition $cond = NULL) { parent::__construct($name); $this->options = $options; $this->csss[] = "GUITools.css"; $this->condic = $cond; }
function __construct($name, $texto) { parent::__construct($name); $this->csss[] = "/smoothness/jquery-ui-1.8.20.custom.css"; $this->texto = $texto; $this->name = $name; }
function __construct($name) { parent::__construct($name); $this->html = file_get_contents(TEMPLATES_PATH . $this->template_path); // $this->csss[]="/smoothness/jquery-ui-1.8.20.custom.css"; // $this->scripts[]= "jquery.js"; // $this->scripts[]= "jquery-ui.js"; $this->scripts[] = "GUITools.js"; $this->id = $name; $this->components = array(); }
function __construct($name, $titulo = "", $mensaje, $tipo) { parent::__construct($name); $this->html = file_get_contents(TEMPLATES_PATH . $this->template_path); $this->csss[] = "/smoothness/jquery-ui-1.8.20.custom.css"; $class = explode("#", $tipo); $this->html = str_replace("{tipo}", $class[0], $this->html); $this->html = str_replace("{ico}", $class[1], $this->html); $this->html = str_replace("{titulo}", $titulo, $this->html); $this->html = str_replace("{mensaje}", $mensaje, $this->html); }
function __construct($name, $permisos, $user) { parent::__construct($name); $this->user = $user; $this->makeCode($permisos); }
function __construct($name, $html = '') { parent::__construct($name); $this->html = $html; $this->makeCode(); }
function __construct($name) { parent::__construct($name); }