Gregwar\RST\Builder::copy PHP Метод

copy() публичный Метод

Add a file to copy
public copy ( $source, $destination = null )
    public function copy($source, $destination = null)
    {
        if ($destination === null) {
            $destination = basename($source);
        }
        $this->toCopy[] = array($source, $destination);
        return $this;
    }

Usage Example

Пример #1
0
<?php

include '../../autoload.php';
use Gregwar\RST\Builder;
use Gregwar\RST\LaTeX\Kernel;
try {
    // Build the 'input' files to the 'output' directory
    $builder = new Builder(new Kernel());
    $builder->copy('css', 'css');
    $builder->build('input', 'output');
} catch (\Exception $exception) {
    echo "\n";
    echo "Error: " . $exception->getMessage() . "\n";
}
All Usage Examples Of Gregwar\RST\Builder::copy