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


PHP JApplicationHelper::getPath方法代码示例

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


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

示例1: display

 function display($tpl = null)
 {
     /*Ověření, jestli jde o přístup z administrace nebo front-endu*/
     if (JPATH_BASE == JPATH_ADMINISTRATOR) {
         require_once JApplicationHelper::getPath('toolbar_html');
         TOOLBAR_ginclude::_DEFAULT();
     } else {
         echo '<div class="componentheading">' . JText::_('GINCLUDE-UPDATE') . '</div>';
         $doc =& JFactory::getDocument();
         $doc->addStyleSheet('components/com_ginclude/css/general.css');
         $doc->addStyleSheet('components/com_ginclude/css/component.css');
     }
     /**/
     $model = $this->getModel();
     echo '<div>' . JText::_('RELOAD_PARTS_ABOUT') . '</div>';
     /*css*/
     $doc =& JFactory::getDocument();
     $declaration = "div.oldDiv {background-color:#F0C0FF;border:2px solid red;color:black;}\r\n     div.newDiv {background-color:#C0FFA0;border:2px solid green;color:black;}\r\n     hr#system-readmore {border:1px dotted red;}\r\n     div.radioDiv {background-color:#ECECEC;border:2px solid black;padding:2px;color:black;}";
     $doc->addStyleDeclaration($declaration);
     $article = $model->getArticleDB($this->articleId);
     $article = $article[0];
     echo '<div style="padding-left:10px;"><h2>' . $article->title . '</h2></div>';
     echo '<form action="index.php?option=com_ginclude&amp;task=reloadPartsSave" method="post">
       <input type="hidden" name="article" value="' . $this->articleId . '" />
       <div style="padding:10px;margin:5px;border:1px dotted gray;">';
     /*vypsani dat z modelu*/
     echo $model->getPartsView($this->articleId);
     echo '</div><div style="padding:10px;"><input type="submit" value="' . JText::_('SAVE_ARTICLE_CHANGES') . '" /></div>';
     echo '</form>';
 }
开发者ID:KIZI,项目名称:sewebar-cms,代码行数:30,代码来源:parts.html.php

示例2: display

 function display($tpl = null)
 {
     /*Ověření, jestli jde o přístup z administrace nebo front-endu*/
     $doc =& JFactory::getDocument();
     $doc->addScript('components/com_bkef/influences/influences.js');
     echo "<h1>Mutual Influences: " . $this->articleTitle . "</h1>";
     $user =& JFactory::getUser();
     echo "<script type=\"text/javascript\">prihlasenyUzivatel=\"" . $user->name . "\";</script>";
     if (JPATH_BASE == JPATH_ADMINISTRATOR) {
         //$doc->addStyleSheet('components/com_bkef/influences/style.css');
         //$doc->addScript('components/com_bkef/influences/influences.js');
         require_once JApplicationHelper::getPath('toolbar_html');
         TOOLBAR_bkef::_DEFAULT();
     } else {
         $doc->addStyleSheet('components/com_bkef/css/general.css');
         $doc->addStyleSheet('components/com_bkef/css/component.css');
         //$doc->addScript('components/com_bkef/influences/influences.js');
         echo '<div class="componentheading">' . JText::_('BKEF') . '</div>';
     }
     $doc->addScriptDeclaration("cestaKObrazku='components/com_bkef/influences/img/';");
     $doc->addScriptDeclaration("prihlasenyUzivatel='" . $this->username . "';");
     //$doc->addScript('components/com_bkef/influences/influences.js');
     /**/
     echo $this->influencesHTML();
 }
开发者ID:KIZI,项目名称:sewebar-cms,代码行数:25,代码来源:influences.html.php

示例3: display

 function display($tpl = null)
 {
     /*Ověření, jestli jde o přístup z administrace nebo front-endu*/
     $doc =& JFactory::getDocument();
     if (JPATH_BASE == JPATH_ADMINISTRATOR) {
         require_once JApplicationHelper::getPath('toolbar_html');
         TOOLBAR_mapping::_DEFAULT();
     } else {
         echo '<div class="componentheading">' . JText::_('COM_MAPPING') . '</div>';
         $doc->addStyleSheet('components/com_mapping/css/general.css');
         $doc->addStyleSheet('components/com_mapping/css/component.css');
     }
     /**/
     echo '<h1>' . JText::_('MAPPING_FINALIZATION') . '</h1>';
     echo '<p>' . JText::_('MAPPING_SAVED_INFO') . '</p>';
     if ($this->redirectUrl) {
         echo '<p>' . JText::_('REDIRECT_INFO') . '</p>';
         echo '<script type="text/javascript">
           function redirectToUrl(){
             location.href="' . $this->redirectUrl . '";
           }
           var t=setTimeout("redirectToUrl();",5000);
           
         </script>';
     }
 }
开发者ID:KIZI,项目名称:sewebar-cms,代码行数:26,代码来源:finalizedMapping_info.html.php

示例4: getUnidades

 function getUnidades()
 {
     $joopoa_helper = JApplicationHelper::getPath('helper', 'com_joopoa');
     require $joopoa_helper;
     $unidades =& JoopoaHelper::getUnidades();
     return $unidades;
 }
开发者ID:LMSeXT,项目名称:mod_joopoalogin,代码行数:7,代码来源:helper.php

示例5: display

 function display($tpl = null)
 {
     global $option;
     $db =& JFactory::getDBO();
     $user =& JFactory::getUser();
     $client = JRequest::getWord('client', 'site');
     $cid = JRequest::getVar('cid', array(0), '', 'array');
     JArrayHelper::toInteger($cid, array(0));
     $lists = array();
     $row =& JTable::getInstance('plugin');
     // load the row from the db table
     $row->load($cid[0]);
     // fail if checked out not by 'me'
     if ($row->isCheckedOut($user->get('id'))) {
         $msg = JText::sprintf('DESCBEINGEDITTED', JText::_('The plugin'), $row->title);
         $this->setRedirect('index.php?option=' . $option . '&client=' . $client, $msg, 'error');
         return false;
     }
     if ($client == 'admin') {
         $where = "client_id='1'";
     } else {
         $where = "client_id='0'";
     }
     // get list of groups
     if ($row->access == 99 || $row->client_id == 1) {
         $lists['access'] = 'Administrator<input type="hidden" name="access" value="99" />';
     } else {
         // build the html select list for the group access
         $lists['access'] = JHTML::_('list.accesslevel', $row);
     }
     if ($cid[0]) {
         $row->checkout($user->get('id'));
         if ($row->ordering > -10000 && $row->ordering < 10000) {
             // build the html select list for ordering
             $query = 'SELECT ordering AS value, name AS text' . ' FROM #__plugins' . ' WHERE folder = ' . $db->Quote($row->folder) . ' AND published > 0' . ' AND ' . $where . ' AND ordering > -10000' . ' AND ordering < 10000' . ' ORDER BY ordering';
             $order = JHTML::_('list.genericordering', $query);
             $lists['ordering'] = JHTML::_('select.genericlist', $order, 'ordering', 'class="inputbox" size="1"', 'value', 'text', intval($row->ordering));
         } else {
             $lists['ordering'] = '<input type="hidden" name="ordering" value="' . $row->ordering . '" />' . JText::_('This plugin cannot be reordered');
         }
         $lang =& JFactory::getLanguage();
         $lang->load('plg_' . trim($row->folder) . '_' . trim($row->element), JPATH_ADMINISTRATOR);
         $data = JApplicationHelper::parseXMLInstallFile(JPATH_SITE . DS . 'plugins' . DS . $row->folder . DS . $row->element . '.xml');
         $row->description = $data['description'];
     } else {
         $row->folder = '';
         $row->ordering = 999;
         $row->published = 1;
         $row->description = '';
     }
     $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $row->published);
     // get params definitions
     $params = new JParameter($row->params, JApplicationHelper::getPath('plg_xml', $row->folder . DS . $row->element), 'plugin');
     $this->assignRef('lists', $lists);
     $this->assignRef('plugin', $row);
     $this->assignRef('params', $params);
     parent::display($tpl);
 }
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:58,代码来源:view.html.php

示例6: login

 public function login()
 {
     $helper = JApplicationHelper::getPath('helper');
     if (JDEBUG) {
         dump($helper, "helper");
     }
     require_once $helper;
     JoopoauserHelper::login();
 }
开发者ID:LMSeXT,项目名称:com_joopoauser,代码行数:9,代码来源:controller.php

示例7: _form

 function _form($tpl = null)
 {
     parent::_form($tpl);
     // the row is already loaded in base view so this might not be needed leaving this hear to help figure this out in joomla 1.5 if needed.
     if (!version_compare(JVERSION, '1.6.0', 'ge')) {
         $row = $this->getModel()->getItem();
         $params = new DSCParameter($row->params, JApplicationHelper::getPath('plg_xml', $row->folder . '/' . $row->element), 'plugin');
         $this->assignRef('params', $params);
     }
 }
开发者ID:annggeel,项目名称:tienda,代码行数:10,代码来源:view.html.php

示例8: _actionRenderlegacy

 /**
  * After dispatching legacy render the toolbar.
  *
  * (non-PHPdoc)
  *
  * @see LibBaseDispatcherComponent::_actionRenderlegacy()
  */
 protected function _actionRenderlegacy(KCommandContext $context)
 {
     parent::_actionRenderlegacy($context);
     global $mainframe;
     jimport('joomla.application.helper');
     if (($path = JApplicationHelper::getPath('toolbar')) && $mainframe->isAdmin()) {
         // Get the task again, in case it has changed
         $task = JRequest::getString('task');
         // Make the toolbar
         include_once $path;
     }
 }
开发者ID:stonyyi,项目名称:anahita,代码行数:19,代码来源:default.php

示例9: display

 function display($tpl = null)
 {
     $model = $this->getModel();
     $doc =& JFactory::getDocument();
     if (JPATH_BASE != JPATH_ADMINISTRATOR) {
         $doc->addStyleSheet('components/com_bkef/css/general.css');
         $doc->addStyleSheet('components/com_bkef/css/component.css');
     }
     JHTML::_('behavior.modal');
     $doc->addStyleSheet('components/com_bkef/css/main.css');
     /*Ověření, jestli jde o přístup z administrace nebo front-endu*/
     require_once JApplicationHelper::getPath('toolbar_html');
     if (JPATH_BASE == JPATH_ADMINISTRATOR) {
         TOOLBAR_bkef::_DEFAULT();
     } else {
         TOOLBAR_bkef::frontend();
     }
     /**/
     echo '<h1>' . JText::_('NEW_BKEF_ARTICLE_H1') . '</h1>';
     echo '<div class="infotext">' . JText::_('NEW_BKEF_ARTICLE_INFO') . '</div>';
     echo '<form method="post" action="index.php?option=com_bkef&amp;task=newArticle">';
     echo '<strong>' . JText::_('NEW_BKEF_ARTICLE_NAME') . '</strong><br />';
     echo '<input type="text" name="articleName" value="" style="width:600px;"/><br />';
     echo '<strong>' . JText::_('NEW_BKEF_ARTICLE_CONTENT') . '</strong> ' . JText::_('NEW_BKEF_ARTICLE_CONTENT2') . '<br />';
     echo '<textarea name="articleContent" style="width:600px;height:300px;"></textarea><br />';
     echo '<br />';
     echo '<h3>' . JText::_('NEW_BKEF_ARTICLE_JOOMLA') . '</h3>';
     echo '<div class="infotext">' . JText::_('NEW_BKEF_ARTICLE_SECTION_INFO') . '</div>';
     echo '<table><tr><td><strong>' . JText::_('SECTIONCATEGORY') . '&nbsp;&nbsp;</strong></td>';
     echo '<td><select name="articleSection">';
     echo '<option value="-1">--none--</option>';
     $sections = $model->getSections();
     if (count($sections) > 0) {
         foreach ($sections as $key => $value) {
             echo '<option value="' . $key . '_0" >' . $value . '</option>';
             $categories = $model->getCategories($key);
             if (count($categories) > 0) {
                 foreach ($categories as $keyC => $valueC) {
                     echo '<option value="' . $key . '_' . $keyC . '" >&nbsp;&nbsp;-&nbsp;' . $valueC . '</option>';
                 }
             }
         }
     }
     echo '</select></td></tr>';
     echo '<tr><td><strong>' . JText::_('ARTICLE_STATE') . '&nbsp;&nbsp;</strong></td>';
     echo '<td><select name="articleState"><option value="1">' . JText::_('PUBLISHED') . '</option><option value="0">' . JText::_('UNPUBLISHED') . '</option></select></td></tr></table>';
     echo '<br /><input type="submit" value="' . JText::_('NEW_BKEF_ARTICLE_SUBMIT') . '"/></form>';
     ?>
   
   
   <?php 
 }
开发者ID:KIZI,项目名称:sewebar-cms,代码行数:52,代码来源:newArticle.html.php

示例10: display

 function display($tpl = null)
 {
     $doc =& JFactory::getDocument();
     $declaration = "\r\n     function gSelectArticle(oldId,newId,title) {\r\n       document.getElementById('art'+oldId).value=newId;\r\n       document.getElementById('input'+oldId).value=title;\r\n\t     document.getElementById('sbox-window').close();\r\n     }";
     $doc->addScriptDeclaration($declaration);
     JHTML::_('behavior.modal');
     /*Ověření, jestli jde o přístup z administrace nebo front-endu*/
     if (JPATH_BASE == JPATH_ADMINISTRATOR) {
         require_once JApplicationHelper::getPath('toolbar_html');
         TOOLBAR_ginclude::_DEFAULT();
     } else {
         echo '<div class="componentheading">' . JText::_('GINCLUDE-UPDATE') . '</div>';
         $doc =& JFactory::getDocument();
         $doc->addStyleSheet('components/com_ginclude/css/general.css');
         $doc->addStyleSheet('components/com_ginclude/css/component.css');
     }
     /**/
     $model = $this->getModel();
     $article = $model->getArticleDB($this->articleId);
     $article = $article[0];
     echo '<h3>' . JText::_('RELOAD_SELECT_ARTICLES0') . '</h3>';
     echo '<table><tr><td width="100">' . JText::_('TITLE') . ':</td><td><strong>' . $article->title . '</strong></td><td rowspan="2" style="padding-left:50px;"><button onclick="location.href=\'index.php?option=com_ginclude&task=reload\';">' . JText::_('SELECT_OTHER_ARTICLE') . '</button></td></tr>';
     echo '<tr><td>' . JText::_('CREATED') . ':</td><td>' . $article->cdate . '</td></tr></table>';
     echo '<h3>' . JText::_('RELOAD_SELECT_ARTICLES') . '</h3>';
     $linkArr = $model->getArticleLinks($this->articleId);
     if (count($linkArr) > 0) {
         /*ve článku je nějaký odkaz => nabídneme aktualizaci*/
         echo '<div>' . JText::_('RELOAD_SELECT_ARTICLES_ABOUT') . '</div>';
         echo '<form method="post" action="index.php?option=com_ginclude&amp;task=reloadParts">';
         echo '<input type="hidden" name="article" value="' . $this->articleId . '" />';
         echo '<table border="0" class="adminlist" cellspacing="1" style="margin-top:10px;margin-bottom:10px;"><tbody>';
         if (count($linkArr) > 0) {
             foreach ($linkArr as $artId => $artTitle) {
                 $art = $model->getArticleDB($artId);
                 $art = $art[0];
                 echo '<tr><td width="100">' . JText::_('ORIGINAL_ARTICLE') . '</td><td><strong>' . $art->title . '</strong>';
                 if (htmlspecialchars($art->title, ENT_QUOTES, 'utf-8') != $artTitle) {
                     echo '<span style="color:red;">&nbsp;-&nbsp;' . JText::_('ORIGINAL_ARTICLE_TITLE') . ' <strong>' . $artTitle . '</strong>&nbsp;!</span>';
                 }
                 echo '</td></tr>';
                 echo '<tr class="row1"><td>' . JText::_('RELOADED_ARTICLE') . '</td><td><input type="hidden" value="' . $art->id . '" name="art' . $art->id . '" id="art' . $art->id . '" /><input id="input' . $art->id . '" type="text" name="input' . $art->id . '" value="' . htmlspecialchars($art->title, ENT_QUOTES, 'utf-8') . '" style="width:250px;" readonly="readonly"/>&nbsp;&nbsp;&nbsp;' . $this->getSelectButton($art->id) . '</td></tr>';
             }
         }
         echo '</tbody></table>';
         echo '<div"><input type="submit" value="' . JText::_('SHOW_RELOADABLE_PARTS') . '" /></div></form>';
     } else {
         /*nenalezen žádný odkaz => zobrazíme upozornění...*/
         echo '<div>' . JText::_('NO_RELOADABLE_PARTS_ABOUT') . '</div>';
     }
 }
开发者ID:KIZI,项目名称:sewebar-cms,代码行数:50,代码来源:article.html.php

示例11: onAuthenticate

 /**
  *
  * @see JAuthenticationResponse para obter detalhes de resposta da autenticação.
  *
  * @param array $param
  * @param array $options
  * @param JAuthenticationResponse &$response
  */
 function onAuthenticate($credentials, $options, &$response)
 {
     if (JDEBUG) {
         dump($credentials, "Credentials");
     }
     if (JDEBUG) {
         dump($options, "Options");
     }
     if (JDEBUG) {
         dump($response, "Response");
     }
     jimport('joomla.user.helper');
     // Joomla does not like blank passwords
     if (empty($credentials['password'])) {
         $response->status = JAUTHENTICATE_STATUS_FAILURE;
         $response->error_message = 'Não é permitido senha em Branco';
         return false;
     }
     $joopoa_helper = JApplicationHelper::getPath('helper', 'com_joopoa');
     if (JDEBUG) {
         dump($joopoa_helper, 'Path para o helper do com_joopoa');
     }
     require $joopoa_helper;
     $sawee = JoopoaHelper::getSaweeWSClientLib();
     // $matricula, $password, $tipo='aluno', $unidade=NULL, $periodo=NULL
     $usuario = $sawee->login_login($credentials['username'], $credentials['password'], 'aluno', $credentials['unit']);
     if ($usuario) {
         $joopoauser_helper = JApplicationHelper::getPath('helper', 'com_joopoauser');
         if (JDEBUG) {
             dump($joopoauser_helper, 'Path para o helper do com_joopoauser');
         }
         require $joopoauser_helper;
         $user = JoopoauserHelper::getJoomlaUser($usuario);
         // Bring this in line with the rest of the system
         if (JDEBUG) {
             dump($user, 'Usuário criado com base nos dados obtidos no SAWEE');
         }
         $response->email = $user->email;
         $response->fullname = $user->name;
         $response->status = JAUTHENTICATE_STATUS_SUCCESS;
         $response->error_message = '';
         return true;
     } else {
         $response->status = JAUTHENTICATE_STATUS_FAILURE;
         $response->error_message = 'User does not exist';
     }
     return false;
 }
开发者ID:LMSeXT,项目名称:plg_joopoalogin,代码行数:56,代码来源:joopoalogin.php

示例12: display

 function display($tpl = null)
 {
     /*Ověření, jestli jde o přístup z administrace nebo front-endu*/
     if (JPATH_BASE == JPATH_ADMINISTRATOR) {
         require_once JApplicationHelper::getPath('toolbar_html');
         TOOLBAR_ginclude::_DEFAULT();
     } else {
         echo '<div class="componentheading">' . JText::_('GINCLUDE-UPDATE') . '</div>';
         $doc =& JFactory::getDocument();
         $doc->addStyleSheet('components/com_ginclude/css/general.css');
         $doc->addStyleSheet('components/com_ginclude/css/component.css');
     }
     /**/
     echo '<h2>' . $this->title . '</h2>';
     echo '<div>' . $this->text . '</div>';
 }
开发者ID:KIZI,项目名称:sewebar-cms,代码行数:16,代码来源:message.html.php

示例13: display

 function display($tpl = null)
 {
     /*Ověření, jestli jde o přístup z administrace nebo front-endu*/
     if (JPATH_BASE == JPATH_ADMINISTRATOR) {
         require_once JApplicationHelper::getPath('toolbar_html');
         TOOLBAR_mapping::_DEFAULT();
     } else {
         echo '<div class="componentheading">' . JText::_('COM_MAPPING') . '</div>';
         $doc =& JFactory::getDocument();
         $doc->addStyleSheet('components/com_mapping/css/general.css');
         $doc->addStyleSheet('components/com_mapping/css/component.css');
     }
     /**/
     echo '<h1>' . JText::_('ERROR') . '!</h1>';
     echo '<div style="border:2px solid red;">' . $this->text . '</div>';
     echo '<div><a href="' . $this->link . '">OK</a></div>';
 }
开发者ID:KIZI,项目名称:sewebar-cms,代码行数:17,代码来源:error.html.php

示例14: display

 function display($tpl = null)
 {
     $doc =& JFactory::getDocument();
     $doc->addStyleSheet('components/com_mapping/css/useredit.css');
     $doc->addScript("components/com_mapping/js/jquery1.4.min.js");
     $doc->addScript("components/com_mapping/js/scroll.js");
     $doc->addScript("components/com_mapping/js/mapping_" . JText::_('langEN') . ".js");
     $doc->addScript("components/com_mapping/js/useredit.js");
     /*Ověření, jestli jde o přístup z administrace nebo front-endu*/
     if (JPATH_BASE == JPATH_ADMINISTRATOR) {
         require_once JApplicationHelper::getPath('toolbar_html');
         TOOLBAR_mapping::_DEFAULT();
     } else {
         echo '<div class="componentheading">' . JText::_('COM_MAPPING') . '</div>';
         $doc =& JFactory::getDocument();
         $doc->addStyleSheet('components/com_mapping/css/general.css');
         $doc->addStyleSheet('components/com_mapping/css/component.css');
     }
     /**/
 }
开发者ID:KIZI,项目名称:sewebar-cms,代码行数:20,代码来源:useredit.html.php

示例15:

 function &_getXML()
 {
     if (!$this->_xml) {
         $clientId = $this->getState('clientId', 0);
         $path = $clientId == 1 ? 'mod1_xml' : 'mod0_xml';
         $module =& $this->getModule();
         if ($module->module == 'custom') {
             $xmlpath = JApplicationHelper::getPath($path, 'mod_custom');
         } else {
             $xmlpath = JApplicationHelper::getPath($path, $module->module);
         }
         if (file_exists($xmlpath)) {
             $xml =& JFactory::getXMLParser('Simple');
             if ($xml->loadFile($xmlpath)) {
                 $this->_xml =& $xml;
             }
         }
     }
     return $this->_xml;
 }
开发者ID:bizanto,项目名称:Hooked,代码行数:20,代码来源:module.php


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