PHPOffice/PHPWord — pull request #7 by SergeC (2012-08-11 20:03:02+00:00)
Title: Update src/PHPWord/Template.php

This function returns array of all variables in template.
Test code:
$PHPWord = new PHPWord();
$document = $PHPWord->loadTemplate('Template.docx');
var_dump($document->getVariables());