Screen\Capture::__construct PHP 메소드

__construct() 공개 메소드

Capture constructor.
public __construct ( $url = null )
    public function __construct($url = null)
    {
        if ($url) {
            $this->setUrl($url);
        }
        $this->binPath = realpath(implode(DIRECTORY_SEPARATOR, array(dirname(__FILE__), '..', 'bin'))) . DIRECTORY_SEPARATOR;
        $this->templatePath = realpath(implode(DIRECTORY_SEPARATOR, array(dirname(__FILE__), '..', 'templates'))) . DIRECTORY_SEPARATOR;
        $this->jobs = new Jobs();
        $this->output = new Output();
        $this->setImageType(Types\Jpg::FORMAT);
    }