TYPO3 API  SVNRelease
interface.t3lib_browselinkshook.php
Go to the documentation of this file.
00001 <?php
00002 /***************************************************************
00003  *  Copyright notice
00004  *
00005  *  (c) 2007-2011 Ingo Renner <ingo@typo3.org>
00006  *  All rights reserved
00007  *
00008  *  This script is part of the TYPO3 project. The TYPO3 project is
00009  *  free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License as published by
00011  *  the Free Software Foundation; either version 2 of the License, or
00012  *  (at your option) any later version.
00013  *
00014  *  The GNU General Public License can be found at
00015  *  http://www.gnu.org/copyleft/gpl.html.
00016  *  A copy is found in the textfile GPL.txt and important notices to the license
00017  *  from the author is found in LICENSE.txt distributed with these scripts.
00018  *
00019  *
00020  *  This script is distributed in the hope that it will be useful,
00021  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023  *  GNU General Public License for more details.
00024  *
00025  *  This copyright notice MUST APPEAR in all copies of the script!
00026  ***************************************************************/
00027 
00028 
00029 /**
00030  * interface for classes which hook into browse_links
00031  *
00032  * @author  Ingo Renner <ingo@typo3.org>
00033  * @package TYPO3
00034  * @subpackage t3lib
00035  */
00036 interface t3lib_browseLinksHook {
00037 
00038     /**
00039      * initializes the hook object
00040      *
00041      * @param   browse_links    parent browse_links object
00042      * @param   array           additional parameters
00043      * @return  void
00044      */
00045     public function init($parentObject, $additionalParameters);
00046 
00047     /**
00048      * adds new items to the currently allowed ones and returns them
00049      *
00050      * @param   array   currently allowed items
00051      * @return  array   currently allowed items plus added items
00052      */
00053     public function addAllowedItems($currentlyAllowedItems);
00054 
00055     /**
00056      * modifies the menu definition and returns it
00057      *
00058      * @param   array   menu definition
00059      * @return  array   modified menu definition
00060      */
00061     public function modifyMenuDefinition($menuDefinition);
00062 
00063     /**
00064      * returns a new tab for the browse links wizard
00065      *
00066      * @param   string      current link selector action
00067      * @return  string      a tab for the selected link action
00068      */
00069     public function getTab($linkSelectorAction);
00070 
00071     /**
00072      * checks the current URL and determines what to do
00073      *
00074      * @param   unknown_type        $href
00075      * @param   unknown_type        $siteUrl
00076      * @param   unknown_type        $info
00077      * @return  unknown_type
00078      */
00079     public function parseCurrentUrl($href, $siteUrl, $info);
00080 
00081 }
00082 
00083 ?>