Back to ToolbarHelper class

Method media_manager

public static void
media_manager
(mixed $directory = '', mixed $alt = 'JTOOLBAR_UPLOAD')
Writes a media_manager button.
Parameters
  • string $directory The subdirectory to upload the media to.
  • string $alt An override for the alt text.
Returns
  • void
Since
  • 1.5
Class: ToolbarHelper
Project: Joomla

Method media_manager - Source code

/**
 * Writes a media_manager button.
 *
 * @param   string  $directory  The subdirectory to upload the media to.
 * @param   string  $alt        An override for the alt text.
 *
 * @return  void
 *
 * @since   1.5
 */
public static function media_manager($directory = '', $alt = 'JTOOLBAR_UPLOAD')
{
    $bar = Toolbar::getInstance('toolbar');
    // Add an upload button.
    $bar->appendButton('Popup', 'upload', $alt, 'index.php?option=com_media&tmpl=component&task=popupUpload&folder=' . $directory, 800, 520);
}