本文整理汇总了PHP中CsviHelper::getButtons方法的典型用法代码示例。如果您正苦于以下问题:PHP CsviHelper::getButtons方法的具体用法?PHP CsviHelper::getButtons怎么用?PHP CsviHelper::getButtons使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CsviHelper
的用法示例。
在下文中一共展示了CsviHelper::getButtons方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
/**
* CSVI VirtueMart view display method
*
* @return void
*/
function display($tpl = null)
{
// Show the toolbar
JToolBarHelper::title(JText::_('COM_CSVI_CONTROL_PANEL'), 'csvi_logo_48.png');
// Options button.
if (JFactory::getUser()->authorise('core.admin', 'com_csvi')) {
JToolBarHelper::preferences('com_csvi');
}
//JToolBarHelper::help('control_panel.html', true);
// Assign data for display
$helper = new CsviHelper();
$this->cpanel_images = $helper->getButtons();
// Display the page
parent::display($tpl);
}
示例2: die
/**
* CSVI Form helper
*
* @package CSVI
* @author Roland Dalmulder
* @link http://www.csvimproved.com
* @copyright Copyright (C) 2006 - 2012 RolandD Cyber Produksi
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* @version $Id: panel.php 1924 2012-03-02 11:32:38Z RolandD $
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
$jinput = JFactory::getApplication()->input;
// Check if we are running cron, no need to show the panel
if (!$jinput->get('cron', false, 'bool')) {
$helper = new CsviHelper();
$buttons = $helper->getButtons();
// Create the top slider
$topmenu = '<div id="panel-container"><div id="slide-menu">
<div id="top-panel"><div id="main">
<div id="cpanel">';
$topmenu .= $buttons->process;
$topmenu .= $buttons->replacements;
$topmenu .= $buttons->log;
$topmenu .= $buttons->maintenance;
$topmenu .= $buttons->availablefields;
$topmenu .= '</div></div></div>
<div id="sub-panel">
<a href="#" id="toggle"><span id="shText">' . JText::_('COM_CSVI_SHOW_PANEL') . '</span></a>
</div>
</div></div>';
$topmenu = preg_replace("/(\\s\\s+)/", ' ', $topmenu);