removed long since deprecated file master origin/HEAD origin/master
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 1 Feb 2011 16:48:20 +0000 (11:48 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 1 Feb 2011 16:52:21 +0000 (11:52 -0500)
ansel/lib/View/Embedded.php [deleted file]

diff --git a/ansel/lib/View/Embedded.php b/ansel/lib/View/Embedded.php
deleted file mode 100644 (file)
index 9a85647..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-/**
- * Ansel_View_Embedded Class wraps output of a javascript embedded gallery/image
- * widget. This view is responsible only for outputting the <script> tags that
- * will embed the view.  Provided as a way to output these views via the
- * renderViews api call. The actual rendering is done via the
- * EmbeddedRenderers/*.php files which are called from the Ajax_Imple_Embed
- * class when it handles the request.
- *
- * Copyright 2008-2011 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- *
- * @author  Michael J. Rubinsky <mrubinsk@horde.org>
- * @package Ansel
- */
-class Ansel_View_Embedded {
-
-    /**
-     * Initialize the view
-     *
-     * This view can take the following parameters:
-     *
-     *  container    The DOM id of the element to contain the embedded view.
-     *               This parameter is required.
-     *
-     *  gallery_id   The gallery id
-     *
-     *  gallery_slug The gallery slug
-     *
-     *  gallery_view The specific view to embed this must match an existing
-     *               EmbeddedRenderer (Mini, Slideshow, Carousel etc..)
-     *               Defaults to 'Mini'
-     *
-     *  start        Start displaying at this image offset. Defaults to the start
-     *               of the gallery.
-     *
-     *  count        Only return this many images. Defaults to returning the
-     *               entire gallery (minus any subgalleries).
-     *
-     *  perpage      Some embedded views support paging. This sets the number of
-     *               images per page. Note that all images are still returned.
-     *               The paging is done via javascript only.
-     *
-     *  images       An array of image ids, not necessarily from the same
-     *               gallery, to be displayed in this view. The gallery parameter
-     *               will be ignored if present.
-     *
-     *  thumbsize    Which type of thumbnail images to display in the view.
-     *               (mini, thumb, prettythumb etc...) Defaults to mini.
-     * @static
-     * @param array $params  Parameters for this view
-     */
-    function makeView($params)
-    {
-        $view = new Ansel_View_Embedded();
-        $view->_params = $params;
-
-        return $view;
-    }
-
-    /**
-     * Return the HTML representing this view.
-     *
-     * @return string  The HTML.
-     *
-     */
-    function html()
-    {
-        /* Are we displaying a gallery or a group of images? */
-        if (!empty($this->_params['images']) && count($this->_params['images'])) {
-            $this->_params['images'] = implode(':', $this->_params['images']);
-        }
-
-        $html = Ansel::embedCode($this->_params);
-
-        return $html;
-    }
-
-    function viewType()
-    {
-        return 'Embedded';
-    }
-
-}