Exemple #1
0
 /**
  * Set search locations
  * 
  * @param array $value
  * @throws Exception
  */
 public static function setSearchLocations($value)
 {
     if (is_array($value)) {
         self::$_searchLocations = $value;
     } else {
         throw new Exception('Invalid parameter passed.');
     }
 }
Exemple #2
0
 function saveDocx($fn)
 {
     require_once __DIR__ . '/../../Document/Word/Writer/IOFactory.php';
     $objWriter = Document_Word_Writer_IOFactory::createWriter($this->writer, 'Word2007');
     $objWriter->save($fn);
 }