libraries/tbs/plugins/tbs_plugin_opentbs.php
function OpenXML_Rels_AddNewRid($DocPath, $TargetDir, $FileName) {

		$o = $this->OpenXML_Rels_GetObj($DocPath, $TargetDir);

		$Target = $TargetDir.$FileName;

		if (isset($o->RidLst[$Target])) return $o->RidLst[$Target];

		// Add the Rid in the information
		$NewRid = 'opentbs'.(1+count($o->RidNew));
		$o->RidLst[$Target] = $NewRid;
		$o->RidNew[$Target] = $NewRid;

		$this->IdxToCheck[$o->ParentIdx] = $o->FicIdx;

		return $NewRid;

	}
function OpenXML_Rels_AddNewRid($DocPath, $TargetDir, $FileName) {

		$o = $this->OpenXML_Rels_GetObj($DocPath, $TargetDir);

		$Target = $TargetDir.$FileName;

		if (isset($o->RidLst[$Target])) return $o->RidLst[$Target];

		// Add the Rid in the information
		$NewRid = 'opentbs'.(1+count($o->RidNew));
		$o->RidLst[$Target] = $NewRid;
		$o->RidNew[$Target] = $NewRid;

		$this->IdxToCheck[$o->ParentIdx] = $o->FicIdx;

		return $NewRid;

	}
function OpenXML_Rels_AddNewRid ( $ DocPath , $ TargetDir , $ FileName ) { $ o = $ this -> OpenXML_Rels_GetObj ( $ DocPath , $ TargetDir ) ; $ Target = $ TargetDir . $ FileName ; if ( isset ( $ o -> RidLst [ $ Target ] ) ) return $ o -> RidLst [ $ Target ] ; // Add the Rid in the information $ NewRid = 'opentbs' . ( 1 + count ( $ o -> RidNew ) ) ; $ o -> RidLst [ $ Target ] = $ NewRid ; $ o -> RidNew [ $ Target ] = $ NewRid ; $ this -> IdxToCheck [ $ o -> ParentIdx ] = $ o -> FicIdx ; return $ NewRid ; }
/*
Add a new Rid in the file in the Rels file. Return the Rid.
Rels files are attached to XML files and are listing, and gives all rids and their corresponding targets used in the XML file.
/ * Add a new Rid in the file in the Rels file . Return the Rid . Rels files are attached to XML files and are listing and gives all rids and their corresponding targets used in the XML file .