save() public method

Save the file object to disk.
public save ( string $to = null, boolean $append = false ) : File
$to string
$append boolean
return File
Ejemplo n.º 1
0
 /**
  * Save the PDF directly to the server.
  *
  * @param  string  $to
  * @param  boolean $append
  * @throws Exception
  * @return \Pop\Pdf\Pdf
  */
 public function save($to = null, $append = false)
 {
     // Format and finalize the PDF.
     $this->finalize();
     parent::save($to, $append);
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Save the code object to disk.
  *
  * @param  string $to
  * @param  boolean $append
  * @return void
  */
 public function save($to = null, $append = false)
 {
     $this->render(true);
     parent::save($to, $append);
 }