Skip to content

Commit

Permalink
[mms] Add base64img property to Horde_Themes_Image.
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 14, 2013
1 parent 5d0b3fc commit 1530ae5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions framework/Core/lib/Horde/Themes/Image.php
Expand Up @@ -19,6 +19,9 @@
* @copyright 2010-2013 Horde LLC
* @license http://www.horde.org/licenses/lgpl21 LGPL
* @package Core
*
* @property-read string $base64img See Horde_Themes_Image::base64ImgData()
* (since 2.10.0).
*/
class Horde_Themes_Image extends Horde_Themes_Element
{
Expand All @@ -29,6 +32,19 @@ class Horde_Themes_Image extends Horde_Themes_Element
*/
protected $_dirname = 'graphics';

/**
*/
public function __get($name)
{
switch ($name) {
case 'base64img':
return self::base64ImgData($this);

default:
return parent::__get($name);
}
}

/**
* Constructs a correctly-pathed tag to an image.
*
Expand Down
2 changes: 2 additions & 0 deletions framework/Core/package.xml
Expand Up @@ -39,6 +39,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Add base64img property to Horde_Themes_Image.
* [mjr] Do not assume that the filter API is available (Bug #12757).
* [mms] Add ability to load javascript via a HordeCore AJAX response (Request #10971).
* [mms] Add ability to expire CSS cache based on file modification time.
Expand Down Expand Up @@ -3179,6 +3180,7 @@
<date>2013-10-08</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Add base64img property to Horde_Themes_Image.
* [mjr] Do not assume that the filter API is available (Bug #12757).
* [mms] Add ability to load javascript via a HordeCore AJAX response (Request #10971).
* [mms] Add ability to expire CSS cache based on file modification time.
Expand Down

0 comments on commit 1530ae5

Please sign in to comment.