本文整理汇总了PHP中JLToolBarHelper::apply方法的典型用法代码示例。如果您正苦于以下问题:PHP JLToolBarHelper::apply方法的具体用法?PHP JLToolBarHelper::apply怎么用?PHP JLToolBarHelper::apply使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JLToolBarHelper
的用法示例。
在下文中一共展示了JLToolBarHelper::apply方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addToolbar
/**
* Add the page title and toolbar.
*/
protected function addToolbar()
{
// Set toolbar items for the page
if ($this->copy) {
$toolbarTitle = JText::_('COM_JOOMLEAGUE_ADMIN_PROJECT_COPY_PROJECT');
} else {
$toolbarTitle = !$this->edit ? JText::_('COM_JOOMLEAGUE_ADMIN_PROJECT_ADD_NEW') : JText::_('COM_JOOMLEAGUE_ADMIN_PROJECT_EDIT') . ': ' . $this->form->getValue('name');
JToolBarHelper::divider();
}
JToolBarHelper::title($toolbarTitle, 'jl-ProjectSettings');
if (!$this->copy) {
JLToolBarHelper::apply('project.apply');
JLToolBarHelper::save('project.save');
} else {
JLToolBarHelper::save('project.copysave');
}
JToolBarHelper::divider();
if (!$this->edit || $this->copy) {
JLToolBarHelper::cancel('project.cancel');
} else {
// for existing items the button is renamed `close`
JLToolBarHelper::cancel('project.cancel', 'COM_JOOMLEAGUE_GLOBAL_CLOSE');
}
JToolBarHelper::help('screen.joomleague', true);
}
示例2: addToolBar
protected function addToolBar()
{
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETO_TITLE'));
JLToolBarHelper::save('treeto.save');
JLToolBarHelper::apply('treeto.apply');
JToolBarHelper::back('Back', 'index.php?option=com_joomleague&view=treetos&task=treeto.display');
JToolBarHelper::help('screen.joomleague', true);
}
示例3: addToolbar
protected function addToolbar()
{
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_TITLE'), 'Tree');
JLToolBarHelper::apply('treeto.saveshort');
JLToolBarHelper::publishList('treeto.publish');
JLToolBarHelper::unpublishList('treeto.unpublish');
JToolBarHelper::divider();
JLToolBarHelper::addNew('treeto.save');
JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_WARNING'), 'treeto.remove');
JToolBarHelper::divider();
JToolBarHelper::help('screen.joomleague', true);
}
示例4: addToolbar
protected function addToolbar()
{
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_TITLE'), 'Tree');
JLToolBarHelper::apply('treeto.saveshort');
JLToolBarHelper::publishList('treeto.publish');
JLToolBarHelper::unpublishList('treeto.unpublish');
JToolBarHelper::divider();
JLToolBarHelper::addNew('treeto.save');
JLToolBarHelper::deleteList(JText::_('COM_JOOMLEAGUE_ADMIN_TREETOS_WARNING'), 'treeto.remove');
JToolBarHelper::divider();
JLToolBarHelper::onlinehelp();
JToolBarHelper::preferences(JRequest::getCmd('option'));
}
示例5: defined
<?php
defined('_JEXEC') or die('Restricted access');
JHTML::_('behavior.tooltip');
JHTML::_('behavior.modal');
jimport('joomla.html.pane');
JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_TREETONODE_TITLE'));
JLToolBarHelper::save('treetonode.save');
JLToolBarHelper::apply('treetonode.apply');
JToolBarHelper::back('Back', 'index.php?option=com_joomleague&view=treetonodes&task=treetonode.display');
JLToolBarHelper::custom('treetonode.unpublishnode', 'delete.png', 'delete_f2.png', JText::_('COM_JOOMLEAGUE_ADMIN_TREETONODES_UNPUBLISH'), false);
JLToolBarHelper::onlinehelp();
?>
<script>
function submitbutton(pressbutton) {
var form = $('adminForm');
if (pressbutton == 'cancel') {
submitform(pressbutton);
return;
}
submitform(pressbutton);
return;
}
</script>
<style type="text/css">
table.paramlist td.paramlist_key {
width: 92px;
text-align: left;