\PixlrController
The controller that manages requests to and from Pixlr's servers, which in turn provides inline image editing capabilities
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
Synopsis
class PixlrController
extends Controller
{
- // members
- private static string $pixlr_upload_uri = 'http://pixlr.com/store/';
- private static string $pixlr_temp_uri = 'http://pixlr.com/_temp/';
- private static array $allowed_actions = ;
- private static array $allowed_hosts = ;
- private static string $access_permission = 'CMS_ACCESS_AssetAdmin';
- // methods
- public void init()
- public String Link()
- public void sendimage()
- public Form saveimage()
- public String storeimage()
- public Form ImageSaveForm()
- public String closepixlr()
- public void saveappletupload()
- protected File getExistingImage()
Hierarchy
Extends
- Controller
Members
private
- $access_permission
- $allowed_actions
- $allowed_hosts
- $pixlr_temp_uri
- $pixlr_upload_uri
Methods
protected
- getExistingImage() — Determine whether an image exists or not
public
- ImageSaveForm()
- Link()
- closepixlr() — Close the overlay!
- init()
- saveappletupload()
- saveimage() — Called by the pixlr service when it wants to save an image back to silverstripe
- sendimage() — Sends an image to the Pixlr server, receiving back the image ID as the response parameter, which is then forwarded to the browser
- storeimage() — Store an image within silverstripe. This is triggered either by the "create new" form, or passed on directly from the pixlr application