/** * Test the conversion without altering the DOM * * @param string $sTargetVersion The desired version (or the latest possible version if not specified) * @param object $oFactory Full data model (not yet used, aimed at allowing conversion that could not be performed without knowing the whole data model) * @return bool True on success */ public function CheckConvert($sTargetVersion = ITOP_DESIGN_LATEST_VERSION, $oFactory = null) { // Clone the document $this->oDocument = $this->oDocument->cloneNode(true); return $this->Convert($sTargetVersion, $oFactory); }
public function __clone() { $this->dom = $this->dom->cloneNode(true); $this->crawler = new HtmlPageCrawler($this->dom); }
/** * Adds a new restore point */ public function createRestorePoint() { return array_push($this->_restore_points, $this->_template_data->cloneNode(true)) - 1; }