Example #1
0
 /**
  * Write PHP source code that generates an array containig empty
  * elements.
  * @method  exportEmptyElements
  * @param   string               $filename  Valid path to file.
  * @return  int|false                       No. of bits written or false.
  */
 public function exportEmptyElements($filename = 'emptyElements.php')
 {
     $elements = $this->getEmptyElements();
     $source = NodeRenderer::renderArray($elements, 'elements');
     return FileUtils::write2file($source, $filename, FileUtils::FILE_NEW);
 }