protected function getValue(\blaze\web\application\BlazeContext $context, \blaze\web\component\UIComponent $component) { $value = $component->getValue(); if ($value !== null) { return $value; } return ''; }
public function renderBegin(\blaze\web\application\BlazeContext $context, \blaze\web\component\UIComponent $component) { $writer = $context->getResponse()->getWriter(); $value = $component->getValue(); if ($value != null) { $writer->write($value); } }
public function renderBegin(\blaze\web\application\BlazeContext $context, \blaze\web\component\UIComponent $component) { $writer = $context->getResponse()->getWriter(); $writer->write('<meta'); if ($component instanceof \blaze\web\component\html\ContentType) { $writer->write(' http-equiv="Content-Type" content="' . $component->getValue() . '; charset=' . $component->getCharset() . '"'); } else { if ($component instanceof \blaze\web\component\html\ContentLanguage) { $writer->write(' http-equiv="Content-Language" content="' . $component->getValue() . '"'); } else { if ($component instanceof \blaze\web\component\html\Keywords) { $writer->write(' name="keywords" content="' . $component->getValue() . '"'); } else { if ($component instanceof \blaze\web\component\html\Description) { $writer->write(' name="description" content="' . $component->getValue() . '"'); } } } } $writer->write('/>'); }
public function decode(\blaze\web\application\BlazeContext $context, \blaze\web\component\UIComponent $component) { $value = $component->getValue(); if ($value != null) { if ($component->getRowIdentifier() === null) { $rowId = 0; } $found = false; foreach ($value as $tableEntry) { if ($component->getRowIdentifier() !== null) { $component->setRowId($tableEntry->getClass()->getMethod('get' . ucfirst($component->getRowIdentifier()))->invoke($tableEntry)); } $context->getELContext()->getContext(\blaze\web\el\ELContext::SCOPE_REQUEST)->set($context, $component->getRowVar(), $tableEntry); $found = $this->decodeTableRow($context, $component, $found); if ($component->getRowIdentifier() === null) { $component->setRowId($rowId++); } } $component->setRowId(-1); } }
public function renderBegin(\blaze\web\application\BlazeContext $context, \blaze\web\component\UIComponent $component) { $writer = $context->getResponse()->getWriter(); $writer->write('<title>'); $writer->write($component->getValue()); }