AAAAhome/academiac/www/libraries/joomla/html/toolbar/button/popup.php 0000644 00000005120 15137261106 0021241 0 ustar 00 fetchIconClass($name);
$doTask = $this->_getCommand($name, $url, $width, $height, $top, $left);
$html = "\n";
$html .= "\n";
$html .= "\n";
$html .= "$text\n";
$html .= "\n";
return $html;
}
/**
* Get the button id
*
* Redefined from JButton class
*
* @param string $type Button type
* @param string $name Button name
*
* @return string Button CSS Id
*
* @since 11.1
*/
public function fetchId($type, $name)
{
return $this->_parent->getName() . '-' . "popup-$name";
}
/**
* Get the JavaScript command for the button
*
* @param string $name Button name
* @param string $url URL for popup
* @param integer $width Unused formerly width.
* @param integer $height Unused formerly height.
* @param integer $top Unused formerly top attribute.
* @param integer $left Unused formerly left attribure.
*
* @return string JavaScript command string
*
* @since 11.1
*/
protected function _getCommand($name, $url, $width, $height, $top, $left)
{
if (substr($url, 0, 4) !== 'http')
{
$url = JURI::base() . $url;
}
return $url;
}
}