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 vButton 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 = vURI::base() . $url; } return $url; } }