\Ansel_Ajax_Application_Handler

Defines the AJAX actions used in Ansel.

Copyright 2012-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Summary

Methods
Properties
Constants
getGallery()
uploadNotification()
checkSlug()
imageSaveGeotag()
deleteFaces()
setFaceName()
addTag()
removeTag()
embed()
No public properties found
No constants found
No protected methods found
$_external
N/A
_getTagHtml()
No private properties found
N/A

Properties

$_external

$_external : 

Type

Methods

getGallery()

getGallery() : mixed

Obtain a gallery

Returns

mixed —

False on failure, object representing the gallery with the following structure:

uploadNotification()

uploadNotification() 

checkSlug()

checkSlug() : boolean

Variables used: - slug

Returns

boolean —

True if slug is valid.

imageSaveGeotag()

imageSaveGeotag() : object

Save/update image geotag.

Returns

object —

Object with 2 parameters:

  • message
  • response

deleteFaces()

deleteFaces() 

Delete a face from an image.

setFaceName()

setFaceName() 

Sets a name in an image.

addTag()

addTag() : array

Adds a new tag to a resource.

Returns

array —

An array of tag hashes representing the objects's current tags (after the new tag is added).

removeTag()

removeTag() : array

Remove tag(s) from a resource.

Returns

array —

An array of tag hashes representing the objects's current tags (after the tags are deleted).

embed()

embed() : \Horde_Core_Ajax_Response_Raw

Javascript code needed for embedding a small gallery widget in external websites.

Throws

\Ansel_Exception

Returns

\Horde_Core_Ajax_Response_Raw —

The Ajax response object.

_getTagHtml()

_getTagHtml(  $tags,   $hasEdit) 

Parameters

$tags
$hasEdit