/**
  * Saves the array to a file.
  *
  * The file can be included. It is a valid php file containing one array with the specified name.
  * The array can be multidimensional, but the array(s) can only contain strings and integer.
  *
  * @param array Array to save to file.
  * @todo Use var_export()
  */
 function save($array)
 {
     ksort($array);
     // Not needed, but looks better ;-)
     $lines = array();
     $lines[] = '<?php';
     $lines[] = '$' . $this->varname . ' = array();';
     $stack = Core::constructObject('Core.Util.Structures.Stack');
     $this->addArrayElement($lines, $stack, $array);
     $lines[] = '?>';
     $this->file->writeArray($lines);
 }