The Inx_Api_Transformation_TransformationManager can be used to retrieve and create transformations.
The Inx_Api_Transformation_TransformationManager can be used to retrieve and create transformations. Transformations are XSLT resources and used to convert datasource contents in another format or presentation. You can update only the XSLT content of the transformation. Its name is not changable.
The following snippet shows how to create a transformation:
$oTransformationManager = $oSession->getTransformationManager(); $oTransformation = $oTransformationManager->createTransformation( "Name Of Transformation" ); $sXslt = "<pseudo xslt><transform><something>text text</something></transform></pseudo xslt>"; $oTransformation->updateXSLT( $sXslt ); $oTransformation->commitUpdate();
To retrieve existing transformations, use the selectAll() or get(int) methods provided by this manager. The following snippet shows how to retrieve all transformations, ordered by their id, and prints out some information regarding these transformations:
$oTransformationManager = $oSession->getTransformationManager(); $oBOResultSet = $oTransformationManager->selectAll(); for( $i = 0; $i < $oBOResultSet->size(); $i++ ) { $oTransformation = $oBOResultSet->get( $i ); echo "Transformation ".$oTransformation->getName()." has the xslt content ".$oTransformation->getXslt()."<br>"; } $oBOResultSet->close();For more information on transformations, see the Inx_Api_Transformation_Transformation documentation.
Located in /Api/Transformation/TransformationManager.php (line 51)
Inx_Api_BOManager | --Inx_Api_Transformation_TransformationManager
Creates a new transformation.
Creates a new transformation.
Inherited From Inx_Api_BOManager
Inx_Api_BOManager::get()
Inx_Api_BOManager::remove()
Inx_Api_BOManager::selectAll()
Documentation generated on Thu, 17 Sep 2015 14:27:32 +0200 by phpDocumentor 1.3.2