
<?php

  public function executeTableCellFormat(sfWebRequest $request)
  {
    // create the document
    $doc = new sfTinyDoc();
    $doc->createFrom(array('extension' => $request->getParameter('extension', 'odt')));
    $doc->loadXml('content.xml');
    $doc->mergeXmlField('data',
      array(
        'date'       => '2009-12-31',
        'datetime'   => '2009-12-31 12:34:56',
        'time'       => '12:34:56',
        'currency'   => '12.34',
        'percentage' => '0.1234',
        'int'        => '1',
        'float'      => '1.234',
        'string'     => 'bob',
      )
    );
    $doc->saveXml();
    $doc->close();

    // send and remove the document
    $doc->sendResponse();
    $doc->remove();

    throw new sfStopException;
  }

?>
