本文整理汇总了PHP中JToolbarHelper::editListX方法的典型用法代码示例。如果您正苦于以下问题:PHP JToolbarHelper::editListX方法的具体用法?PHP JToolbarHelper::editListX怎么用?PHP JToolbarHelper::editListX使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JToolbarHelper
的用法示例。
在下文中一共展示了JToolbarHelper::editListX方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
* @license GPL
*/
// ====================== példa, jelentősen átirandó ============================
// no direct access
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
$session = JFactory::getSession();
// manipuláló gombok ha toolbar -t használunk
JToolbarHelper::tirle($this->title);
foreach ($this->buttons as $button) {
if (pos(buttontask, '.add') > 0) {
JToolbarHelper::addNewX($buttons[0], $button[2]);
} else {
if (pos(buttontask, '.edit') > 0) {
JToolbarHelper::editListX($buttons[0], $button[2]);
} else {
if (pos(buttontask, '.delete') > 0) {
JToolbarHelper::deleteListX('', $buttons[0], $button[2]);
} else {
if (pos(buttontask, '.save') > 0) {
JToolbarHelper::save($buttons[0], $button[2]);
} else {
if (pos(buttontask, '.cancel') > 0) {
JToolbarHelper::cancel($buttons[0], $button[2]);
} else {
if (pos(buttontask, '.back') > 0) {
JToolbarHelper::back($buttons[0], $button[2]);
} else {
JToolbarHelper::custom($buttons[0], $buttons[1], $buttons[2], false);
}
示例2: ProviderDefault
/**
* Default Provider Toolbar
*
*/
function ProviderDefault()
{
JToolbarHelper::spacer();
JToolbarHelper::editListX();
JToolbarHelper::cancel();
}
示例3: onBrowse
/**
* Renders the toolbar for the component's Browse pages (the plural views)
*
* @return void
*/
public function onBrowse()
{
// On frontend, buttons must be added specifically
if (FOFPlatform::getInstance()->isBackend() || $this->renderFrontendSubmenu) {
$this->renderSubmenu();
}
if (!FOFPlatform::getInstance()->isBackend() && !$this->renderFrontendButtons) {
return;
}
// Set toolbar title
$option = $this->input->getCmd('option', 'com_foobar');
$subtitle_key = strtoupper($option . '_TITLE_' . $this->input->getCmd('view', 'cpanel'));
JToolbarHelper::title(JText::_(strtoupper($option)) . ': ' . JText::_($subtitle_key), str_replace('com_', '', $option));
// Add toolbar buttons
if ($this->perms->create) {
if (version_compare(JVERSION, '3.0', 'ge')) {
JToolbarHelper::addNew();
} else {
JToolbarHelper::addNewX();
}
}
if ($this->perms->edit) {
if (version_compare(JVERSION, '3.0', 'ge')) {
JToolbarHelper::editList();
} else {
JToolbarHelper::editListX();
}
}
if ($this->perms->create || $this->perms->edit) {
JToolbarHelper::divider();
}
if ($this->perms->editstate) {
JToolbarHelper::publishList();
JToolbarHelper::unpublishList();
JToolbarHelper::divider();
}
if ($this->perms->delete) {
$msg = JText::_($this->input->getCmd('option', 'com_foobar') . '_CONFIRM_DELETE');
JToolbarHelper::deleteList(strtoupper($msg));
}
}