\Ansel_Block_RecentComments

Display most recent image comments for galleries.

Copyright 2007-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
__construct()
No public properties found
No constants found
_params()
_title()
_content()
No protected properties found
N/A
_getGallery()
_asortbyindex()
$_gallery
N/A

Properties

Methods

__construct()

__construct(  $app,   $params = array()) 

Parameters

$app
$params

_params()

_params() : array

Returns

array

_title()

_title() 

_content()

_content() 

_getGallery()

_getGallery() : \Ansel_Gallery

Throws

\Horde_Exception_NotFound
\Horde_Exception_PermissionDenied

Returns

\Ansel_Gallery

_asortbyindex()

_asortbyindex(array  $sortarray, string  $index) 

Numerically sorts an associative array by a specific index.

Designed to ease sorting stories by a timestamp when combining seperate channels into one array.

Parameters

array $sortarray

The array to sort.

string $index

The index that contains the numerical value to sort by.