当前位置: 首页>>代码示例>>PHP>>正文


PHP JoomlapackHelperUtils::addLiveHelp方法代码示例

本文整理汇总了PHP中JoomlapackHelperUtils::addLiveHelp方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomlapackHelperUtils::addLiveHelp方法的具体用法?PHP JoomlapackHelperUtils::addLiveHelp怎么用?PHP JoomlapackHelperUtils::addLiveHelp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JoomlapackHelperUtils的用法示例。


在下文中一共展示了JoomlapackHelperUtils::addLiveHelp方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 function display()
 {
     // Decide what to do; delegate data loading to private methods
     $task = JRequest::getCmd('task', 'display');
     $layout = JRequest::getCmd('layout', 'default');
     switch ($layout) {
         case 'default_edit':
             switch ($task) {
                 case 'add':
                     $helpfile = 'eff';
                     JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('EFF_PAGETITLE_NEW') . '</small></small>');
                     $this->_add();
                     break;
                 case 'edit':
                     $helpfile = 'eff';
                     JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('EFF_PAGETITLE_EDIT') . '</small></small>');
                     $this->_edit();
                     break;
             }
             break;
         default:
             $helpfile = 'eff';
             JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('EXTRADIRS') . '</small></small>');
             $this->_default();
             break;
     }
     // Load the util helper
     $this->loadHelper('utils');
     $document =& JFactory::getDocument();
     $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
     // Add a spacer, a help button and show the template
     JToolBarHelper::spacer();
     JoomlapackHelperUtils::addLiveHelp('$helpfile');
     parent::display();
 }
开发者ID:Ratmir15,项目名称:Joomla---formula-of-success,代码行数:35,代码来源:view.html.php

示例2: display

 function display()
 {
     $task = JRequest::getCmd('task', 'default');
     switch ($task) {
         case 'showcomment':
             JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('BUADMIN') . '</small></small>');
             JToolBarHelper::back('Back', 'index.php?option=' . JRequest::getCmd('option') . '&view=buadmin');
             JoomlapackHelperUtils::addLiveHelp('buadmin');
             $document =& JFactory::getDocument();
             $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
             jpimport('models.statistics', true);
             $model =& JoomlapackModelStatistics::getInstance('Statistics', 'JoomlapackModel');
             $model->setId(JRequest::getInt('id'));
             $record =& $model->getStatistic();
             $this->assignRef('record', $record);
             JRequest::setVar('tpl', 'comment');
             break;
         case 'restore':
             JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('BUADMIN') . '</small></small>');
             JRequest::setVar('tpl', 'restore');
             $this->assign('password', JRequest::getVar('password'));
             $this->assign('link', JRequest::getVar('linktarget'));
             break;
         default:
             $registry =& JoomlapackModelRegistry::getInstance();
             $easy = $registry->get('easymode', false);
             if (!$easy) {
                 JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('BUADMIN') . '</small></small>');
             } else {
                 JToolBarHelper::title(JText::_('JOOMLAPACKEASY') . ': <small><small>' . JText::_('BUADMIN') . '</small></small>');
             }
             JToolBarHelper::back('Back', 'index.php?option=' . JRequest::getCmd('option'));
             JToolBarHelper::spacer();
             JToolBarHelper::deleteList();
             JToolBarHelper::custom('deletefiles', 'delete.png', 'delete_f2.png', JText::_('STATS_LABEL_DELETEFILES'), true);
             JToolBarHelper::save('download', JText::_('STATS_LOG_DOWNLOAD'));
             if (!$easy) {
                 JToolBarHelper::editList('showcomment', JText::_('STATS_LOG_VIEWCOMMENT'));
                 if (JPSPECIALEDITION) {
                     JToolBarHelper::publish('restore', JText::_('STATS_LOG_RESTORE'));
                 }
             }
             JToolBarHelper::spacer();
             if (!$easy) {
                 JoomlapackHelperUtils::addLiveHelp('buadmin');
             } else {
                 JoomlapackHelperUtils::addLiveHelp('buadmineasy');
             }
             $document =& JFactory::getDocument();
             $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
             jpimport('models.statistics', true);
             $model =& JoomlapackModelStatistics::getInstance('Statistics', 'JoomlapackModel');
             $list =& $model->getStatisticsListWithMeta();
             $this->assignRef('list', $list);
             $this->assignRef('pagination', $model->getPagination());
             $this->assign('easy', $easy);
             break;
     }
     parent::display(JRequest::getVar('tpl'));
 }
开发者ID:albertobraschi,项目名称:Hab,代码行数:60,代码来源:view.html.php

示例3: display

 function display()
 {
     // Set the toolbar title; add a help button
     JToolBarHelper::title(JText::_('JOOMLAPACKEASY') . ':: <small><small>' . JText::_('CONFIGURATION') . '</small></small>');
     JToolBarHelper::apply();
     JToolBarHelper::save();
     JToolBarHelper::cancel();
     JoomlapackHelperUtils::addLiveHelp('configeasy');
     $document =& JFactory::getDocument();
     $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
     // Load the util helper
     $this->loadHelper('utils');
     // Load the model
     $model =& $this->getModel();
     // Pass on the lists
     $this->assign('actionlogginglist', $model->getActionLoggingList());
     $this->assign('settingsmodelist', $model->getSettingsModeList());
     // Let's pass the data
     $this->assign('OutputDirectory', $model->getVar('OutputDirectoryConfig'));
     $this->assign('TarNameTemplate', $model->getVar('TarNameTemplate'));
     $this->assign('settingsmode', $model->getVar('settingsmode'));
     $this->assign('logLevel', $model->getVar('logLevel'));
     // Also load the Configuration HTML helper
     $this->loadHelper('config');
     parent::display();
 }
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:26,代码来源:view.html.php

示例4: display

 function display()
 {
     // Add toolbar buttons
     JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('VIEWLOG') . '</small></small>');
     JToolBarHelper::back('Back', 'index.php?option=' . JRequest::getCmd('option'));
     JToolBarHelper::spacer();
     $document =& JFactory::getDocument();
     $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
     JoomlapackHelperUtils::addLiveHelp('log');
     parent::display();
 }
开发者ID:rlee1962,项目名称:diylegalcenter,代码行数:11,代码来源:view.html.php

示例5: display

 function display()
 {
     // Set the toolbar title; add a help button
     JToolBarHelper::title(JText::_('JOOMLAPACK') . ':: <small><small>' . JText::_('CONFIGURATION')) . '</small></small>';
     JToolBarHelper::apply();
     JToolBarHelper::save();
     JToolBarHelper::cancel();
     JoomlapackHelperUtils::addLiveHelp('config');
     $document =& JFactory::getDocument();
     $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
     // Load the util helper
     $this->loadHelper('utils');
     // Load the model
     $model =& $this->getModel();
     // Pass on the lists
     $this->assign('backuptypelist', $model->getBackupTypeList());
     $this->assign('loglevellist', $model->getLogLevelList());
     $this->assign('sqlcompatlist', $model->getSqlCompatList());
     $this->assign('algolist', $model->getAlgoList());
     $this->assign('listerlist', $model->getFilelistEngineList());
     $this->assign('dumperlist', $model->getDatabaseEngineList());
     $this->assign('archiverlist', $model->getArchiverEngineList());
     $this->assign('installerlist', $model->getInstallerList());
     $this->assign('backupmethodlist', $model->getBackupMethodList());
     $this->assign('authlist', $model->getAuthLevelList());
     // Let's pass the data
     // -- Common Basic
     $this->assign('OutputDirectory', $model->getVar('OutputDirectory'));
     // -- Common Frontend
     $this->assign('enableFrontend', $model->getVar('enableFrontend'));
     $this->assign('secretWord', $model->getVar('secretWord'));
     $this->assign('frontendemail', $model->getVar('frontendemail'));
     $this->assign('arbitraryfeemail', $model->getVar('arbitraryfeemail'));
     // -- Basic
     $this->assign('BackupType', $model->getVar('BackupType'));
     $this->assign('TarNameTemplate', $model->getVar('TarNameTemplate'));
     $this->assign('logLevel', $model->getVar('logLevel'));
     $this->assign('authlevel', $model->getVar('authlevel'));
     $this->assign('cubeinfile', $model->getVar('cubeinfile'));
     // -- Advanced
     $this->assign('MySQLCompat', $model->getVar('MySQLCompat'));
     $this->assign('dbAlgorithm', $model->getVar('dbAlgorithm'));
     $this->assign('packAlgorithm', $model->getVar('packAlgorithm'));
     $this->assign('listerengine', $model->getVar('listerengine'));
     $this->assign('dbdumpengine', $model->getVar('dbdumpengine'));
     $this->assign('packerengine', $model->getVar('packerengine'));
     $this->assign('InstallerPackage', $model->getVar('InstallerPackage'));
     $this->assign('backupMethod', $model->getVar('backupMethod'));
     $this->assign('throttling', $model->getVar('throttling'));
     $this->assign('enableSizeQuotas', $model->getVar('enableSizeQuotas'));
     $this->assign('enableCountQuotas', $model->getVar('enableCountQuotas'));
     $this->assign('sizeQuota', $model->getVar('sizeQuota'));
     $this->assign('countQuota', $model->getVar('countQuota'));
     $this->assign('enableMySQLKeepalive', $model->getVar('enableMySQLKeepalive'));
     $this->assign('gzipbinary', $model->getVar('gzipbinary'));
     $this->assign('effvfolder', $model->getVar('effvfolder'));
     // -- Magic numbers
     $this->assign('mnRowsPerStep', $model->getVar('mnRowsPerStep'));
     $this->assign('mnMaxFragmentSize', $model->getVar('mnMaxFragmentSize'));
     $this->assign('mnMaxFragmentFiles', $model->getVar('mnMaxFragmentFiles'));
     $this->assign('mnZIPForceOpen', $model->getVar('mnZIPForceOpen'));
     $this->assign('mnZIPCompressionThreshold', $model->getVar('mnZIPCompressionThreshold'));
     $this->assign('mnZIPDirReadChunk', $model->getVar('mnZIPDirReadChunk'));
     $this->assign('mnMaxExecTimeAllowed', $model->getVar('mnMaxExecTimeAllowed'));
     $this->assign('mnMinimumExectime', $model->getVar('mnMinimumExectime'));
     $this->assign('mnExectimeBiasPercent', $model->getVar('mnExectimeBiasPercent'));
     $this->assign('mnMaxOpsPerStep', $model->getVar('mnMaxOpsPerStep'));
     $this->assign('mnArchiverChunk', $model->getVar('mnArchiverChunk'));
     // -- MySQLDump
     $this->assign('mysqldumpPath', $model->getVar('mysqldumpPath'));
     $this->assign('mnMSDDataChunk', $model->getVar('mnMSDDataChunk'));
     $this->assign('mnMSDMaxQueryLines', $model->getVar('mnMSDMaxQueryLines'));
     $this->assign('mnMSDLinesPerSession', $model->getVar('mnMSDLinesPerSession'));
     // Also load the Configuration HTML helper
     $this->loadHelper('config');
     parent::display();
 }
开发者ID:jnvilo,项目名称:tomasinasanctuary.org,代码行数:77,代码来源:view.html.php

示例6: display

    function display()
    {
        $task = JRequest::getCmd('task', 'default');
        switch ($task) {
            case 'showcomment':
                JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('BUADMIN') . '</small></small>');
                JToolBarHelper::back('Back', 'index.php?option=' . JRequest::getCmd('option') . '&view=buadmin');
                JToolBarHelper::save();
                JToolBarHelper::cancel();
                JoomlapackHelperUtils::addLiveHelp('buadmin');
                $document =& JFactory::getDocument();
                $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
                jpimport('models.statistics', true);
                $model =& JoomlapackModelStatistics::getInstance('Statistics', 'JoomlapackModel');
                $model->setId(JRequest::getInt('id'));
                $record =& $model->getStatistic();
                $this->assignRef('record', $record);
                JRequest::setVar('tpl', 'comment');
                break;
            case 'restore':
                JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('BUADMIN') . '</small></small>');
                JRequest::setVar('tpl', 'restore');
                $document =& JFactory::getDocument();
                $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
                $this->assign('password', JRequest::getVar('password'));
                $this->assign('link', JRequest::getVar('linktarget'));
                break;
            default:
                $registry =& JoomlapackModelRegistry::getInstance();
                $easy = $registry->get('easymode', false);
                if (!$easy) {
                    JToolBarHelper::title(JText::_('JOOMLAPACK') . ': <small><small>' . JText::_('BUADMIN') . '</small></small>');
                } else {
                    JToolBarHelper::title(JText::_('JOOMLAPACKEASY') . ': <small><small>' . JText::_('BUADMIN') . '</small></small>');
                }
                JToolBarHelper::back('Back', 'index.php?option=' . JRequest::getCmd('option'));
                JToolBarHelper::spacer();
                JToolBarHelper::deleteList();
                JToolBarHelper::custom('deletefiles', 'delete.png', 'delete_f2.png', JText::_('STATS_LABEL_DELETEFILES'), true);
                // "Show warning first" download button. Joomlantastic!
                //JToolBarHelper::save('download',JText::_('STATS_LOG_DOWNLOAD'));
                $confirmationText = addcslashes(JText::_('STATS_LOG_DOWNLOAD_CONFIRM'), "\n'");
                $baseURI = JURI::base();
                $js = <<<ENDSCRIPT
function confirmDownloadButton()
{
\tvar answer = confirm('{$confirmationText}');
\tif(answer) submitbutton('download');
}

function confirmDownload(id, part)
{
\tvar answer = confirm('{$confirmationText}');
\tvar newURL = '{$baseURI}';
\tif(answer) {
\t\tnewURL += 'index.php?option=com_joomlapack&view=buadmin&task=download&id='+id;
\t\tif( part != '' ) newURL += '&part=' + part
\t\twindow.location = newURL;
\t}
}

ENDSCRIPT;
                $document =& JFactory::getDocument();
                $document->addScriptDeclaration($js);
                $bar =& JToolBar::getInstance('toolbar');
                $bar->appendButton('link', 'save', JText::_('STATS_LOG_DOWNLOAD'), "javascript:confirmDownloadButton();");
                if (!$easy) {
                    JToolBarHelper::editList('showcomment', JText::_('STATS_LOG_EDITCOMMENT'));
                    if (JPSPECIALEDITION) {
                        JToolBarHelper::publish('restore', JText::_('STATS_LOG_RESTORE'));
                    }
                }
                JToolBarHelper::spacer();
                if (!$easy) {
                    JoomlapackHelperUtils::addLiveHelp('buadmin');
                } else {
                    JoomlapackHelperUtils::addLiveHelp('buadmineasy');
                }
                $document =& JFactory::getDocument();
                $document->addStyleSheet(JURI::base() . 'components/com_joomlapack/assets/css/joomlapack.css');
                jpimport('models.statistics', true);
                $model =& JoomlapackModelStatistics::getInstance('Statistics', 'JoomlapackModel');
                $list =& $model->getStatisticsListWithMeta();
                $this->assignRef('list', $list);
                $this->assignRef('pagination', $model->getPagination());
                $this->assign('easy', $easy);
                break;
        }
        parent::display(JRequest::getVar('tpl'));
    }
开发者ID:joomla-example,项目名称:joomla-repo,代码行数:90,代码来源:view.html.php


注:本文中的JoomlapackHelperUtils::addLiveHelp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。