AAAAlink.php 0000666 00000003252 15137265110 0006221 0 ustar 00 fetchIconClass($name);
$doTask = $this->_getCommand($url);
$html = "\n";
$html .= "\n";
$html .= "\n";
$html .= "$text\n";
$html .= "\n";
return $html;
}
/**
* Get the button CSS Id
*
* @param string $type The button type.
* @param string $name The name of the button.
*
* @return string Button CSS Id
*
* @since 11.1
*/
public function fetchId($type = 'Link', $name = '')
{
return $this->_parent->getName() . '-' . $name;
}
/**
* Get the JavaScript command for the button
*
* @param object $url Button definition
*
* @return string JavaScript command string
*
* @since 11.1
*/
protected function _getCommand($url)
{
return $url;
}
}
standard.php 0000666 00000005172 15137265110 0007067 0 ustar 00 fetchIconClass($name);
$doTask = $this->_getCommand($text, $task, $list);
$html = "\n";
$html .= "\n";
$html .= "\n";
$html .= "$i18n_text\n";
$html .= "\n";
return $html;
}
/**
* Get the button CSS Id
*
* @param string $type Unused string.
* @param string $name Name to be used as apart of the id
* @param string $text Button text
* @param string $task The task associated with the button
* @param boolean $list True to allow use of lists
* @param boolean $hideMenu True to hide the menu on click
*
* @return string Button CSS Id
*
* @since 11.1
*/
public function fetchId($type = 'Standard', $name = '', $text = '', $task = '', $list = true, $hideMenu = false)
{
return $this->_parent->getName() . '-' . $name;
}
/**
* Get the JavaScript command for the button
*
* @param string $name The task name as seen by the user
* @param string $task The task used by the application
* @param boolean $list True is requires a list confirmation.
*
* @return string JavaScript command string
*
* @since 11.1
*/
protected function _getCommand($name, $task, $list)
{
JHtml::_('behavior.framework');
$message = JText::_('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST');
$message = addslashes($message);
if ($list)
{
$cmd = "if (document.adminForm.boxchecked.value==0){alert('$message');}else{ Joomla.submitbutton('$task')}";
}
else
{
$cmd = "Joomla.submitbutton('$task')";
}
return $cmd;
}
}
custom.php 0000666 00000002333 15137265110 0006575 0 ustar 00 _parent->getName() . '-' . $id;
}
}
confirm.php 0000666 00000005727 15137265110 0006732 0 ustar 00 fetchIconClass($name);
$doTask = $this->_getCommand($msg, $name, $task, $list);
$html = "\n";
$html .= "\n";
$html .= "\n";
$html .= "$text\n";
$html .= "\n";
return $html;
}
/**
* Get the button CSS Id
*
* @param string $type Button type
* @param object $msg The message
* @param string $name Name to be used as apart of the id
* @param string $text Button text
* @param string $task The task associated with the button
* @param boolean $list True to allow use of lists
* @param boolean $hideMenu True to hide the menu on click
*
* @return string Button CSS Id
*
* @since 11.1
*/
public function fetchId($type = 'Confirm', $msg = '', $name = '', $text = '', $task = '', $list = true, $hideMenu = false)
{
return $this->_parent->getName() . '-' . $name;
}
/**
* Get the JavaScript command for the button
*
* @param object $msg The message to display.
* @param string $name Not used.
* @param string $task The task used by the application
* @param boolean $list True is requires a list confirmation.
*
* @return string JavaScript command string
*
* @since 11.1
*/
protected function _getCommand($msg, $name, $task, $list)
{
JHtml::_('behavior.framework');
$message = JText::_('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST');
$message = addslashes($message);
if ($list)
{
$cmd = "if (document.adminForm.boxchecked.value==0){alert('$message');}else{if (confirm('$msg')){Joomla.submitbutton('$task');}}";
}
else
{
$cmd = "if (confirm('$msg')){Joomla.submitbutton('$task');}";
}
return $cmd;
}
}
separator.php 0000666 00000002345 15137265110 0007266 0 ustar 00 \n\n";
}
/**
* Empty implementation (not required for separator)
*
* @return void
*
* @since 11.1
*/
public function fetchButton()
{
}
}
help.php 0000666 00000004620 15137265110 0006214 0 ustar 00 fetchIconClass('help');
$doTask = $this->_getCommand($ref, $com, $override, $component);
$html = "\n";
$html .= "\n";
$html .= "\n";
$html .= "$text\n";
$html .= "\n";
return $html;
}
/**
* Get the button id
*
* Redefined from JButton class
*
* @return string Button CSS Id
*
* @since 11.1
*/
public function fetchId()
{
return $this->_parent->getName() . '-' . "help";
}
/**
* Get the JavaScript command for the button
*
* @param string $ref The name of the help screen (its key reference).
* @param boolean $com Use the help file in the component directory.
* @param string $override Use this URL instead of any other.
* @param string $component Name of component to get Help (null for current component)
*
* @return string JavaScript command string
*
* @since 11.1
*/
protected function _getCommand($ref, $com, $override, $component)
{
// Get Help URL
jimport('joomla.language.help');
$url = JHelp::createURL($ref, $com, $override, $component);
$url = htmlspecialchars($url, ENT_QUOTES);
$cmd = "Joomla.popupWindow('$url', '" . JText::_('JHELP', true) . "', 700, 500, 1)";
return $cmd;
}
}
.htaccess 0000666 00000000177 15137265110 0006354 0 ustar 00
Order allow,deny
Deny from all