You are here

interface PhantomJSCaptureHelperInterface in PhantomJS Capture 8

Define an interface for a basic phantomjs helper.

Hierarchy

Expanded class hierarchy of PhantomJSCaptureHelperInterface

All classes that implement PhantomJSCaptureHelperInterface

3 files declare their use of PhantomJSCaptureHelperInterface
PhantomJSCaptureHelper.php in src/PhantomJSCaptureHelper.php
PhantomJSCaptureInfoController.php in src/Controller/PhantomJSCaptureInfoController.php
PhantomJSCaptureTestForm.php in src/Form/PhantomJSCaptureTestForm.php

File

src/PhantomJSCaptureHelperInterface.php, line 10

Namespace

Drupal\phantomjs_capture
View source
interface PhantomJSCaptureHelperInterface {

  /**
   * Return whether or not the binary exists at the
   * given path on the server.
   *
   * @param string $path
   * @return mixed
   */
  public function binaryExists($path);

  /**
   * Return the version of the phantomjs binary on the
   * server.
   *
   * @return mixed
   */
  public function getVersion();

  /**
   * Perform a capture with PhantomJS.
   *
   * @param $url
   * @param $destination
   * @param $filename
   * @param null $element
   * @return mixed
   */
  public function capture(Url $url, $destination, $filename, $element = NULL);

}

Members

Namesort descending Modifiers Type Description Overrides
PhantomJSCaptureHelperInterface::binaryExists public function Return whether or not the binary exists at the given path on the server. 1
PhantomJSCaptureHelperInterface::capture public function Perform a capture with PhantomJS. 1
PhantomJSCaptureHelperInterface::getVersion public function Return the version of the phantomjs binary on the server. 1