/** *@desc Generate page, processing yours childs. *@param DOMNode $current *@return void */ public function generateObject($current) { $this->_genNode = XmlUtil::CreateChild($current, $this->_NODE, ""); XmlUtil::AddAttribute($this->_genNode, "id", $this->getId()); XmlUtil::AddAttribute($this->_genNode, "style", $this->getStyle()); parent::generatePage($this->_genNode); }
/** *@desc Generate page, processing yours childs. *@param DOMNode $current *@return void */ public function generateObject($current) { $nodeWorking = XmlUtil::CreateChild($current, "imagevalidate", ""); XmlUtil::AddAttribute($nodeWorking, "caption", $this->_caption); XmlUtil::AddAttribute($nodeWorking, "challengequestion", $this->_challengeQuestion); XmlUtil::AddAttribute($nodeWorking, "chars", $this->_chars); }
/** *@desc Generate page, processing yours childs. *@param DOMNode $current *@return void */ public function generateObject($current) { XmlUtil::AddAttribute($current, "ENCTYPE", 'multipart/form-data'); $nodeWorking = XmlUtil::CreateChild($current, "file", ""); XmlUtil::AddAttribute($nodeWorking, "caption", $this->_caption); XmlUtil::AddAttribute($nodeWorking, "name", $this->_name); }
/** * @covers ByJG\AnyDataset\Repository\AnyDataset::XML * @covers ByJG\AnyDataset\Repository\AnyDataset::getDomObject */ public function testXML() { $this->object->appendRow(); $this->object->addField('field', 'value'); $xmlDom = \ByJG\Util\XmlUtil::createXmlDocumentFromStr('<?xml version="1.0" encoding="utf-8"?>' . '<anydataset>' . '<row>' . '<field name="field">value</field>' . '</row>' . '</anydataset>'); $xmlDomValidate = \ByJG\Util\XmlUtil::createXmlDocumentFromStr($this->object->xml()); $this->assertEquals($xmlDom, $xmlDomValidate); }
/** *@desc Contains specific instructions to generate all XML informations. This method is processed only one time. Usually is the last method processed. *@param DOMNode $current *@return void */ public function generateObject($current) { try { XmlUtil::innerXML($current, $this->_xml); } catch (Exception $e) { throw new InvalidArgumentException("String bad formated.", 852); } }
public function generateObject($current) { $node = XmlUtil::CreateChild($current, "faq", ""); XmlUtil::AddAttribute($node, "title", $this->_title); foreach ($this->_faqs as $key => $value) { $nodefaq = XmlUtil::CreateChild($node, "item", ""); XmlUtil::AddAttribute($nodefaq, "question", $key); $value->generateObject($nodefaq); } }
/** *@desc Generate page, processing yours childs. *@param DOMNode $current *@return void */ public function generateObject($current) { $nodeWorking = XmlUtil::CreateChild($current, "a", ""); $link = str_replace("&", "&", $this->_src); XmlUtil::AddAttribute($nodeWorking, "href", $link); if ($this->_target != "") { XmlUtil::AddAttribute($nodeWorking, "target", $this->_target); } $this->generatePage($nodeWorking); }
/** *@desc Generate page, processing yours childs using the parent. *@return DOMDocument */ public function makeDomObject() { $xmlDoc = XmlUtil::CreateXmlDocument(); $root = XmlUtil::CreateChild($xmlDoc, "root"); // Process ALL XmlnukeDocumentObject existing in Collection. //---------------------------------------------------------- parent::generatePage($root); //---------------------------------------------------------- return $xmlDoc; }
/** *@desc Generate page, processing yours childs. *@param DOMNode $current *@return void */ public function generateObject($current) { $node = XmlUtil::CreateChild($current, "external"); if ($this->_name != "") { XmlUtil::AddAttribute($node, "name", $this->_name); } XmlUtil::AddAttribute($node, "src", $this->_src); XmlUtil::AddAttribute($node, "width", $this->_width); XmlUtil::AddAttribute($node, "height", $this->_height); }
/** * @access public * @return SingleRow * @throws IteratorException */ public function moveNext() { if (!$this->hasNext()) { throw new IteratorException("No more records. Did you used hasNext() before moveNext()?"); } $node = $this->_nodeList->item($this->_current++); $sr = new SingleRow(); foreach ($this->_colNodes as $key => $colxpath) { $nodecol = XmlUtil::selectNodes($node, $colxpath, $this->_registerNS); if (is_null($nodecol)) { $sr->addField(strtolower($key), ""); } else { foreach ($nodecol as $col) { $sr->addField(strtolower($key), $col->nodeValue); } } } return $sr; }
/** *@desc Generate page, processing yours childs using the parent. *@return DOMDocument */ public function makeDomObject() { $xmlDoc = XmlUtil::CreateXmlDocument(); // Create the First first NODE ELEMENT! $nodePage = $xmlDoc->createElement($this->_rootNode); $xmlDoc->appendChild($nodePage); // Process ALL XmlnukeDocumentObject existing in Collection. //---------------------------------------------------------- parent::generatePage($nodePage); //---------------------------------------------------------- /* // Finalize the Create Page Execution XmlUtil::CreateChild($nodeMeta, "created", $created); XmlUtil::CreateChild($nodeMeta, "modified", date("d/M/y h:m:s")); $elapsed = microtime(true)-$createdTimeStamp; XmlUtil::CreateChild($nodeMeta, "timeelapsed", intval($elapsed/3600) . ":" . intval($elapsed/60)%60 . ":" . $elapsed%60 . "." . substr(intval((($elapsed - intval($elapsed))*1000))/1000, 2) ); XmlUtil::CreateChild($nodeMeta, "timeelapsedsec", $elapsed ); */ return $xmlDoc; }
public function generateObject($current) { $node = XmlUtil::CreateChild($current, "tabview", ""); foreach ($this->_tabs as $key => $value) { $title = $value[0]; $type = $value[1]; $content = $value[2]; $nodetab = XmlUtil::CreateChild($node, "tabitem", ""); XmlUtil::AddAttribute($nodetab, "title", $title); if ($this->_tabDefault == $key) { XmlUtil::AddAttribute($nodetab, "default", "true"); } if ($type == "OBJ") { $content->generateObject($nodetab); } else { XmlUtil::AddAttribute($nodetab, "url", $content); } } }
public function generateObject($current) { $node = XmlUtil::CreateChild($current, "progressbar", ""); XmlUtil::AddAttribute($node, "name", $this->_name); XmlUtil::AddAttribute($node, "value", $this->_value); }
/** *@desc Generate page, processing yours childs. *@param DOMNode $current *@return void */ public function generateObject($current) { $nodeWorking = XmlUtil::CreateChild($current, "hidden", ""); XmlUtil::AddAttribute($nodeWorking, "name", $this->_name); XmlUtil::AddAttribute($nodeWorking, "value", $this->_value); }
/** *@desc Contains specific instructions to generate all XML informations. This method is processed only one time. Usually is the last method processed. *@param DOMNode $current *@return void */ public function generateObject($current) { if ($this->_readonly) { // XmlInputLabelField ic $ic = new XmlInputLabelField($this->_caption, $this->_value); $ic->generateObject($current); // XmlInputHidden $ih $ih = new XmlInputHidden($this->_name, $this->_value); $ih->generateObject($current); } else { $nodeWorking = XmlUtil::CreateChild($current, "memo", ""); XmlUtil::AddAttribute($nodeWorking, "caption", $this->_caption); XmlUtil::AddAttribute($nodeWorking, "name", $this->_name); XmlUtil::AddAttribute($nodeWorking, "cols", $this->_cols); XmlUtil::AddAttribute($nodeWorking, "rows", $this->_rows); XmlUtil::AddAttribute($nodeWorking, "wrap", $this->_wrap); if ($this->_visualEditor) { XmlUtil::AddAttribute($nodeWorking, "visualedit", "true"); XmlUtil::AddAttribute($nodeWorking, "visualeditbasehref", $this->_visualEditorBaseHref); } elseif ($this->_maxLength > 0) { XmlUtil::AddAttribute($nodeWorking, "maxlength", $this->_maxLength); } XmlUtil::AddTextNode($nodeWorking, $this->_value); } }
/** * @access public * @return DBIterator */ public function getIterator() { $it = new XmlIterator(XmlUtil::selectNodes($this->_domDocument->documentElement, $this->_rowNode, $this->_registerNS), $this->_colNodes, $this->_registerNS); return $it; }
/** * Get the \DOMElement row objet * @return \DOMElement */ public function getDomObject() { if (is_null($this->_node)) { $this->_node = XmlUtil::createXmlDocumentFromStr("<row />"); $root = $this->_node->getElementsByTagName("row")->item(0); foreach ($this->_row as $key => $value) { if (!is_array($value)) { $field = XmlUtil::createChild($root, "field", $value); XmlUtil::addAttribute($field, "name", $key); } else { foreach ($value as $valueItem) { $field = XmlUtil::createChild($root, "field", $valueItem); XmlUtil::addAttribute($field, "name", $key); } } } } return $this->_node; }
/** *@desc Contains specific instructions to generate all XML informations-> This method is processed only one time-> Usually is the last method processed-> *@param DOMNode $current *@return void */ public function generateObject($current) { if ($this->_readonly) { // XmlInputLabelField $ic; if ($this->_checked) { // XmlInputHidden $ih $ih = new XmlInputHidden($this->_name, $this->_value); $ic = new XmlInputLabelField($this->_caption, "[X]"); $ih->generateObject($current); } else { $ic = new XmlInputLabelField($this->_caption, "[ ]"); } $ic->generateObject($current); } else { // XmlNode $nodeWorking; if ($this->_inputCheckType == InputCheckType::CHECKBOX) { $nodeWorking = XmlUtil::CreateChild($current, "checkbox", ""); } else { $nodeWorking = XmlUtil::CreateChild($current, "radiobox", ""); } XmlUtil::AddAttribute($nodeWorking, "caption", $this->_caption); XmlUtil::AddAttribute($nodeWorking, "name", $this->_name); XmlUtil::AddAttribute($nodeWorking, "value", $this->_value); if ($this->_checked) { XmlUtil::AddAttribute($nodeWorking, "selected", "yes"); } } }
/** *@param string $strTitle *@return void *@desc Title config */ protected function setTitlePage($strTitle) { //\DOMNode $tit = XmlUtil::SelectSingleNode($this->_px->getDomObject()->documentElement, "blockcenter[title='Menu']/title"); $this->_px->setTitle($this->_px->getTitle() . " - " . $strTitle); $this->_px->setAbstract($this->_px->getTitle()); $tit->nodeValue = $strTitle; }
/** * * @param string $file * @throws DatabaseException */ public function save($file = null) { if (!is_null($file)) { if (is_string($file)) { $this->_path = $file; } else { throw new InvalidArgumentException('Invalid file name'); } } if (is_null($this->_path)) { throw new DatabaseException("No such file path to save anydataset"); } XmlUtil::saveXmlDocument($this->getDomObject(), $this->_path); }
public function saveDocumentStr($documentName, $xmlstr) { $xml = XmlUtil::CreateXmlDocumentFromStr($xmlstr); self::saveDocumentXML($documentName, $xml); }
public function addFlash($movie, $width, $height) { $nodeWorking = XmlUtil::CreateChild($this->_nodePage, "script", ""); XmlUtil::AddAttribute($nodeWorking, "movie", $movie); XmlUtil::AddAttribute($nodeWorking, "width", (string) $width); XmlUtil::AddAttribute($nodeWorking, "height", (string) $height); }
public function generateObject($current) { $mediaGallery = XmlUtil::CreateChild($current, "mediagallery"); XmlUtil::AddAttribute($mediaGallery, "name", $this->_name); XmlUtil::AddAttribute($mediaGallery, "api", $this->_api ? "true" : "false"); XmlUtil::AddAttribute($mediaGallery, "visible", $this->_visible ? "true" : "false"); XmlUtil::AddAttribute($mediaGallery, "showthumbcaption", $this->_showCaptionOnThumb ? "true" : "false"); $this->generatePage($mediaGallery); return $mediaGallery; }
public function generateObject($current) { $node = XmlUtil::CreateChild($current, "inputgroup", ""); XmlUtil::AddAttribute($node, "name", $this->_name); if ($this->_caption) { XmlUtil::AddAttribute($node, "caption", $this->_caption); } if ($this->_canhide) { XmlUtil::AddAttribute($node, "canhide", "true"); } if ($this->_breakline) { XmlUtil::AddAttribute($node, "breakline", "true"); } if (!$this->_visible) { XmlUtil::AddAttribute($node, "visible", "false"); } parent::generatePage($node); }
/** *@desc Generate $page, processing yours childs. *@param DOMNode $current *@return void */ public function generateObject($current) { $nodeWorking = XmlUtil::CreateChild($current, "editlist", ""); XmlUtil::AddAttribute($nodeWorking, "module", $this->_module); XmlUtil::AddAttribute($nodeWorking, "title", $this->_title); XmlUtil::AddAttribute($nodeWorking, "name", $this->_name); if ($this->_new) { XmlUtil::AddAttribute($nodeWorking, "new", "true"); } if ($this->_edit) { XmlUtil::AddAttribute($nodeWorking, "edit", "true"); } if ($this->_view) { XmlUtil::AddAttribute($nodeWorking, "view", "true"); } if ($this->_delete) { XmlUtil::AddAttribute($nodeWorking, "delete", "true"); } if ($this->_readonly) { XmlUtil::AddAttribute($nodeWorking, "readonly", "true"); } if ($this->_selecttype == SelectType::CHECKBOX) { XmlUtil::AddAttribute($nodeWorking, "selecttype", "check"); } if ($this->_extraParam != null) { foreach ($this->_extraParam as $key => $value) { $param = XmlUtil::CreateChild($nodeWorking, "param", ""); XmlUtil::AddAttribute($param, "name", $key); XmlUtil::AddAttribute($param, "value", $value); } } $processor = new ParamProcessor(); if ($this->_customButton != null) { for ($i = 0, $customButtonsLength = sizeof($this->_customButton); $i < $customButtonsLength; $i++) { // CustomButtons $cb $cb = $this->_customButton[$i]; if ($cb->enabled) { $nodeButton = XmlUtil::CreateChild($nodeWorking, "button"); if ($cb->url != "") { $cb->url = str_replace("&", "&", $processor->GetFullLink($cb->url)); } XmlUtil::AddAttribute($nodeButton, "custom", $i + 1); XmlUtil::AddAttribute($nodeButton, "acao", $cb->action); XmlUtil::AddAttribute($nodeButton, "alt", $cb->alternateText); XmlUtil::AddAttribute($nodeButton, "url", $cb->url); XmlUtil::AddAttribute($nodeButton, "img", $cb->icon); XmlUtil::AddAttribute($nodeButton, "multiple", $cb->multiple); XmlUtil::AddAttribute($nodeButton, "message", $cb->message); } } } $qtd = 0; $qtdPagina = 0; $page = 0; $started = !$this->_enablePages; $first = true; $firstRow = true; $summaryFields = array(); if (!$this->_it instanceof IteratorInterface) { throw new InvalidArgumentException('You have to pass an IteratorInterface object to the XmlEditList'); } // Generate XML With Data while ($this->_it->hasNext()) { //com.xmlnuke.anydataset.SingleRow $registro = $this->_it->moveNext(); // Insert fields if none is passed. if (sizeof($this->_fields) == 0) { foreach ($registro->getFieldNames() as $key => $fieldname) { $fieldtmp = new EditListField(true); $fieldtmp->editlistName = $fieldname; $fieldtmp->fieldData = $fieldname; $fieldtmp->fieldType = EditListFieldType::TEXT; $this->addEditListField($fieldtmp); if (sizeof($this->_fields) == 1) { $this->addEditListField($fieldtmp); } } } // Fill values if ($this->_enablePages) { $page = intval($qtd / $this->_qtdRows) + 1; $started = $page == $this->_curPage; } if ($started) { //\DOMNode $row = XmlUtil::CreateChild($nodeWorking, "row", ""); $currentNode = null; if (is_null($this->_fields)) { throw new InvalidArgumentException("No such EditListField Object", 850); } foreach ($this->_fields as $chave => $field) { if ($field->newColumn || $currentNode == null) { $currentNode = XmlUtil::CreateChild($row, "field", ""); if ($firstRow) { if (!$first) { XmlUtil::AddAttribute($currentNode, "name", $field->editlistName); } else { $first = false; } XmlUtil::AddAttribute($currentNode, "source", $field->fieldData); } } else { XmlUtil::CreateChild($currentNode, "br", ""); } $this->renderColumn($currentNode, $registro, $field); // Check if this fields requires summary if ($field->summary != EditListFieldSummary::NONE) { $summaryFields[$field->fieldData] += $this->_context->Language()->getDoubleVal($registro->getField($field->fieldData)); } } $firstRow = false; $qtdPagina++; } $qtd += 1; } // Generate SUMMARY Information if (sizeof($summaryFields) > 0) { $anydata = new AnyDataset(); $anydata->appendRow(); foreach ($this->_fields as $chave => $field) { switch ($field->summary) { case EditListFieldSummary::SUM: $value = $summaryFields[$field->fieldData]; break; case EditListFieldSummary::AVG: $value = $summaryFields[$field->fieldData] / $qtdPagina; break; case EditListFieldSummary::COUNT: $value = $qtdPagina; break; default: $value = ""; break; } $anydata->addField($field->fieldData, $value); } $ittemp = $anydata->getIterator(); $registro = $ittemp->moveNext(); $row = XmlUtil::CreateChild($nodeWorking, "row", ""); XmlUtil::AddAttribute($row, "total", "true"); foreach ($this->_fields as $chave => $field) { $currentNode = null; if ($field->newColumn || $currentNode == null) { $currentNode = XmlUtil::CreateChild($row, "field", ""); } else { XmlUtil::CreateChild($currentNode, "br", ""); } $this->renderColumn($currentNode, $registro, $field); } } // Create other properties XmlUtil::AddAttribute($nodeWorking, "cols", sizeof($this->_fields)); if ($this->_enablePages) { if ($this->_curPage > 1) { XmlUtil::AddAttribute($nodeWorking, "pageback", strval($this->_curPage - 1)); } if (!$started) { XmlUtil::AddAttribute($nodeWorking, "pagefwd", strval($this->_curPage + 1)); } XmlUtil::AddAttribute($nodeWorking, "curpage", strval($this->_curPage)); XmlUtil::AddAttribute($nodeWorking, "offset", strval($this->_qtdRows)); XmlUtil::AddAttribute($nodeWorking, "pages", strval($page)); } if ($this->_customsubmit != "") { XmlUtil::AddAttribute($nodeWorking, "customsubmit", $this->_customsubmit); } if (!is_null($this->_objXmlHeader)) { $nodeHeader = XmlUtil::CreateChild($nodeWorking, "xmlheader", ""); $this->_objXmlHeader->generateObject($nodeHeader); } return $nodeWorking; }
/** *@desc Generate page, processing yours childs. *@param DOMNode $current *@return void */ public function generateObject($current) { XmlUtil::CreateChild($current, "caption", $this->_caption); }
public function saveDocument($documentName, $xml, $btree) { $btree = BTreeUtil::navigateNodes($xml->documentElement, $documentName . "#/", $btree); $documentName = self::getFullFileName($documentName); FileUtil::ForceDirectories(self::getPathFromFile($documentName)); $xml->normalize(); XmlUtil::SaveXmlDocument($xml, $documentName); return $btree; }
/** * Get Node * * @param Array $list * @param DOMDocument $doc * @return null */ private function getNode($list, $doc) { foreach ($list as $item) { $result = XmlUtil::selectSingleNode($doc->documentElement, $item); if ($result != null) { return $result; } } return null; }
public function CreatePage() { parent::CreatePage(); $onlyGroup = $this->_context->get("onlygroup") != ""; $urlXml = "module:Xmlnuke.Admin.ManageXML"; $urlGrp = "module:Xmlnuke.Admin.ManageGroup"; $this->myWords = $this->WordCollection(); $this->setTitlePage($this->myWords->Value("TITLE")); $this->setHelp($this->myWords->Value("DESCRIPTION")); if (!$onlyGroup) { $this->addMenuOption($this->myWords->Value("EDITALLXML"), $urlXml . "?id=_all"); $this->addMenuOption($this->myWords->Value("NEWXML"), $urlXml); } $this->addMenuOption($this->myWords->Value("NEWGROUP"), $urlGrp); // Open Index File $indexFile = new XMLFilenameProcessor("index"); //XmlDocument $index = $this->_context->getXMLDataBase()->getDocument($indexFile->FullQualifiedName(), null); $groupList = XmlUtil::SelectNodes($index->documentElement, "group"); $table = new XmlTableCollection(); foreach ($groupList as $node) { $groupText = XmlUtil::SelectSingleNode($node, "title")->nodeValue; $groupId = XmlUtil::SelectSingleNode($node, "id")->nodeValue; $row = new XmlTableRowCollection(); $col = new XmlTableColumnCollection(); $anchor = new XmlAnchorCollection($urlGrp . "?id=" . $groupId, ""); $anchor->addXmlnukeObject(new XmlnukeText($this->myWords->Value("TXT_EDIT"), true, false, false)); $col->addXmlnukeObject($anchor); $row->addXmlnukeObject($col); $col = new XmlTableColumnCollection(); $anchor = new XmlAnchorCollection($urlGrp . "?id=" . $groupId . "&action=delete", ""); $anchor->addXmlnukeObject(new XmlnukeText($this->myWords->Value("TXT_DELETE"), true, false, false)); $col->addXmlnukeObject($anchor); $row->addXmlnukeObject($col); $col = new XmlTableColumnCollection(); $col->addXmlnukeObject(new XmlnukeText($groupText, true, false, false)); $row->addXmlnukeObject($col); $table->addXmlnukeObject($row); if (!$onlyGroup) { $fileList = XmlUtil::SelectNodes($index->documentElement, "group[id='" . $groupId . "']/page"); foreach ($fileList as $nodeFile) { $fileText = XmlUtil::SelectSingleNode($nodeFile, "title")->nodeValue; $fileId = XmlUtil::SelectSingleNode($nodeFile, "id")->nodeValue; $fileAbstract = XmlUtil::SelectSingleNode($nodeFile, "summary")->nodeValue; $row = new XmlTableRowCollection(); $col = new XmlTableColumnCollection(); $anchor = new XmlAnchorCollection($urlXml . "?id=" . $fileId, ""); $anchor->addXmlnukeObject(new XmlnukeText($this->myWords->Value("TXT_EDIT"))); $col->addXmlnukeObject($anchor); $row->addXmlnukeObject($col); $col = new XmlTableColumnCollection(); $anchor = new XmlAnchorCollection($urlXml . "?id=" . $fileId . "&action=delete", ""); $anchor->addXmlnukeObject(new XmlnukeText($this->myWords->Value("TXT_DELETE"))); $col->addXmlnukeObject($anchor); $row->addXmlnukeObject($col); $col = new XmlTableColumnCollection(); $col->addXmlnukeObject(new XmlnukeText($fileText)); $col->addXmlnukeObject(new XmlnukeBreakLine()); $col->addXmlnukeObject(new XmlnukeText($fileAbstract, false, true, false)); $row->addXmlnukeObject($col); $table->addXmlnukeObject($row); } } } $block = new XmlBlockCollection($this->myWords->Value("WORKINGAREA"), BlockPosition::Center); $paragraph = new XmlParagraphCollection(); $paragraph->addXmlnukeObject($table); $block->addXmlnukeObject($paragraph); $this->defaultXmlnukeDocument->addXmlnukeObject($block); return $this->defaultXmlnukeDocument->generatePage(); }
/** * @desc Generate page, processing yours childs. * @param DOMNode $current * @return void */ public function generateObject($current) { $datetimebox = XmlUtil::CreateChild($current, "datetimebox"); $date = DateUtil::TimeStampFromStr($this->_date, $this->_dateformat); XmlUtil::AddAttribute($datetimebox, "name", $this->_name); XmlUtil::AddAttribute($datetimebox, "caption", $this->_caption); XmlUtil::AddAttribute($datetimebox, "day", date('j', $date)); // Day without leading zeros XmlUtil::AddAttribute($datetimebox, "month", date('n', $date)); // Month without leading zeros XmlUtil::AddAttribute($datetimebox, "year", date('Y', $date)); XmlUtil::AddAttribute($datetimebox, "dateformat", INPUTTYPE::DATE); XmlUtil::AddAttribute($datetimebox, "date", $this->_date); if ($this->_showHour) { $time = explode(":", $this->_time); XmlUtil::AddAttribute($datetimebox, "showhour", "true"); XmlUtil::AddAttribute($datetimebox, "hour", $this->removeLeadingZero($time[0])); // Hour without leading zeros XmlUtil::AddAttribute($datetimebox, "minute", $this->removeLeadingZero($time[1])); } XmlUtil::AddAttribute($datetimebox, "yearmin", $this->_yearmin); XmlUtil::AddAttribute($datetimebox, "yearmax", $this->_yearmax); XmlUtil::AddAttribute($datetimebox, "showday", $this->_showDay ? 'true' : 'false'); }