Grasenhiller\WkHtmlToX\WkImage
Synopsis
class WkImage
extends WkFile
{
- // members
- private $image;
- // methods
- public void __construct()
- public Image getImage()
- public void setImage()
- public void setOptions()
- public static DBHTMLText get_html()
- public void add()
- public void preview()
- public void download()
- public mixed save()
- public bool|string getAsString()
- // Inherited methods from WkFile
- public void __construct()
- public void autoSetProxy()
- public void autoSetBinary()
- public void autoSetBasicAuth()
- protected string generateValidFileName()
- protected mixed createFile()
- public void setFolder()
- public mixed getFolder()
- public string getServerPath()
- public static DBHTMLText get_html()
- public static mixed replace_img_paths()
- public array getOptions()
- public void setOptions()
- public mixed getOption()
- public void setOption()
- public void removeOption()
- public void removeOptions()
- protected void handleError()
- public void handleMissingYmlConfig()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
290 | if dev or test output with print_r, else log |
311 | if dev or test output with print_r, else log |
Members
private
- $image
protected
- $folder
- $options
Methods
public
- __construct() — WkImage constructor.
- add() — Add content for the image
- download() — Force the image to download
- getAsString() — Get the raw image as string
- getImage()
- get_html()
- preview() — display the image inside the browser
- save() — Save it to the filesystem and return the file
- setImage()
- setOptions()
Inherited from Grasenhiller\WkHtmlToX\WkFile
protected
- createFile()
- generateValidFileName()
- handleError() — Output the error
public
- autoSetBasicAuth() — Set the basic auth credentials if defined in the environment
- autoSetBinary() — Set the binary if defined in the environment
- autoSetProxy() — Set the proxy if defined in the environment and bypass proxy for own site
- getFolder()
- getOption()
- getOptions()
- getServerPath()
- get_html()
- handleMissingYmlConfig()
- removeOption()
- removeOptions()
- replace_img_paths() — Replace all relative image paths with absolute ones
- setFolder()
- setOption() — Overwrite an existing or set a new option
- setOptions() — Overwrite all options with the given ones