/** * Renders the corresponding form field with a label to collect the input data. */ function renderInput() { if (!defined('LITTLED_TEMPLATE_DIR')) { return ''; } PageContent::render(LITTLED_TEMPLATE_DIR . self::TEMPLATE_PATH . "string-text-input.php", array('input' => &$this)); }
/** * Output markup that will preserve the filter's value in an HTML form. */ public function saveInForm() { if (!is_array($this->value)) { return; } if (!defined('LITTLED_TEMPLATE_DIR')) { throw new ConfigurationUndefinedException("LITTLED_TEMPLATE_DIR not found in app settings."); } foreach ($this->value as $value) { PageContent::render(LITTLED_TEMPLATE_DIR . "framework/forms/hidden-input.php", array('key' => $this->key, 'index' => '[]', 'value' => $value)); } }
/** * Prints out markup to save input value in a hidden form input element. */ public function saveInForm() { if (!defined('LITTLED_TEMPLATE_DIR')) { return; } PageContent::render(LITTLED_TEMPLATE_DIR . self::TEMPLATE_PATH . "hidden-input.php", array('key' => $this->key, 'value' => $this->value, 'index' => is_numeric($this->index) ? "[{$this->index}]" : "")); }
/** * Outputs navigation menu markup. */ function render() { PageContent::render($this::$breadcrumbsTemplate, array('breadcrumbs' => &$this)); }
/** * Outputs markup for the the individual navigation menu node. */ public function render() { PageContent::render($this::$breadcrumbsNodeTemplate, array('node' => &$this)); }
/** * render * Outputs markup for the the individual navigation menu node. */ public function render() { PageContent::render($this::$menuNodeTemplate, array('node' => &$this)); }
/** * Outputs navigation menu markup. */ function render() { PageContent::render($this::$menuTemplate, array('menu' => &$this)); }