Skip to content
Snippets Groups Projects
Commit ebb061e6 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #1997 from defrance69/patch-26

Update odf.php
parents c41e908d 5586893c
No related branches found
No related tags found
No related merge requests found
......@@ -610,6 +610,21 @@ IMG;
closedir($handle);
}
}
/**
* return the value present on odt in [valuename][/valuename]
* @param string $value name balise in the template
* @return string the value inside the balise
*
*/
public function getvalue($valuename)
{
$searchreg="/\\[".$valuename."\\](.*)\\[\\/".$valuename."\\]/";
preg_match($searchreg, $this->contentXml, $matches);
$this->contentXml = preg_replace($searchreg, "", $this->contentXml);
return $matches[1];
}
}
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment