Documentation is available at down.act.php
- <?php
- /**
- * @package polyphony.basket
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: down.act.php,v 1.6 2007/09/19 14:04:54 adamfranco Exp $
- */
- require_once(POLYPHONY."/main/library/AbstractActions/MainWindowAction.class.php");
- require_once(POLYPHONY."/main/library/Basket/Basket.class.php");
- /**
- *
- *
- * @package polyphony.basket
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: down.act.php,v 1.6 2007/09/19 14:04:54 adamfranco Exp $
- */
- class downAction
- extends MainWindowAction
- {
- /**
- * Check Authorizations
- *
- * @return boolean
- * @access public
- * @since 4/26/05
- */
- function isAuthorizedToExecute () {
- // Check that the user can access this collection
- return TRUE;
- }
- /**
- * Return the heading text for this action, or an empty string.
- *
- * @return string
- * @access public
- * @since 4/26/05
- */
- function getHeadingText () {
- return _("Move an Item in Your Selection");
- }
- /**
- * Build the content for this action
- *
- * @return boolean
- * @access public
- * @since 4/26/05
- */
- function buildContent () {
- $actionRows =$this->getActionRows();
- $harmoni = Harmoni::instance();
- $harmoni->request->startNamespace("basket");
- $idManager = Services::getService("Id");
- $authZ = Services::getService("AuthZ");
- $basket = Basket::instance();
- $assetId =$idManager->getId(RequestContext::value("asset_id"));
- $basket->moveDown($assetId);
- $harmoni->request->endNamespace();
- RequestContext::locationHeader($harmoni->request->quickURL("basket", "view"));
- }
- }
Documentation generated on Wed, 19 Sep 2007 10:22:50 -0400 by phpDocumentor 1.3.0RC3