本文整理匯總了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;