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


PHP t3lib_div::_POST方法代码示例

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


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

示例1: tx_kickstarter_wizard

 /**
  * Constructor
  */
 function tx_kickstarter_wizard()
 {
     $this->modData = t3lib_div::_POST($this->varPrefix);
     $version = class_exists('t3lib_utility_VersionNumber') ? t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) : t3lib_div::int_from_ver(TYPO3_version);
     if ($version < 4006000) {
         $LOCAL_LANG = t3lib_div::readLLXMLfile(t3lib_extMgm::extPath('setup') . '/mod/locallang.xml', 'default');
         // Getting the available languages
         $theLanguages = t3lib_div::trimExplode('|', TYPO3_languages);
     } else {
         /** @var $xliffParser t3lib_l10n_parser_Xliff */
         $xliffParser = t3lib_div::makeInstance('t3lib_l10n_parser_Xliff');
         $LOCAL_LANG = $xliffParser->getParsedData(t3lib_extMgm::extPath('setup') . '/mod/locallang.xlf', 'default');
         /** @var $locales t3lib_l10n_Locales */
         $locales = t3lib_div::makeInstance('t3lib_l10n_Locales');
         // Getting the available languages
         $theLanguages = $locales->getLocales();
     }
     foreach ($theLanguages as $val) {
         if ($val !== 'default') {
             if ($version < 4006000) {
                 $localLabel = htmlspecialchars($LOCAL_LANG['default']['lang_' . $val]);
             } else {
                 $localLabel = htmlspecialchars($LOCAL_LANG['default']['lang_' . $val][0]['target']);
             }
             $this->languages[$val] = $localLabel;
         }
     }
     asort($this->languages);
     // init reserved words
     $resWords = t3lib_div::makeInstance('tx_kickstarter_reservedWords');
     $this->reservedWords = $resWords->getReservedWords();
 }
开发者ID:jaguerra,项目名称:TYPO3-Kickstarter,代码行数:35,代码来源:class.tx_kickstarter_wizard.php

示例2: setUp

 /**
  * Sets up this testcase
  */
 public function setUp()
 {
     $this->getBackup = t3lib_div::_GET();
     $this->postBackup = t3lib_div::_POST();
     $this->typo3DbBackup = $GLOBALS['TYPO3_DB'];
     $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_DB', array());
     $this->backendConfigurationManager = $this->getMock($this->buildAccessibleProxy('Tx_Extbase_Configuration_BackendConfigurationManager'), array('dummy'));
 }
开发者ID:zsolt-molnar,项目名称:TYPO3-4.5-trunk,代码行数:11,代码来源:BackendConfigurationManager_testcase.php

示例3: setUp

 /**
  * Sets up this testcase
  */
 public function setUp()
 {
     $this->getBackup = t3lib_div::_GET();
     $this->postBackup = t3lib_div::_POST();
     $this->typo3DbBackup = $GLOBALS['TYPO3_DB'];
     $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_DB', array());
     $this->extConfBackup = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase'];
     $this->backendConfigurationManager = $this->getAccessibleMock('Tx_Extbase_Configuration_BackendConfigurationManager', array('getTypoScriptSetup'));
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:12,代码来源:BackendConfigurationManagerTest.php

示例4: getMergedGP

 public static function getMergedGP()
 {
     $gp = array_merge(t3lib_div::_GET(), t3lib_div::_POST());
     $prefix = Tx_Formhandler_Globals::$formValuesPrefix;
     if ($prefix) {
         $gp = $gp[$prefix];
     }
     return $gp;
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:9,代码来源:Tx_Formhandler_StaticFuncs.php

示例5: auswertung

 function auswertung()
 {
     $get = t3lib_div::_GET();
     $post = t3lib_div::_POST();
     $out = '<h1> Hier kommt eine Auswertung </h1>';
     $out .= '<h3>Get: ' . print_r($get, true) . '</h3>';
     $out .= '<h3>Post: ' . print_r($post, true) . '</h3>';
     return $out;
 }
开发者ID:mmirsch,项目名称:he_tools1,代码行数:9,代码来源:class.tx_he_tools_echug.php

示例6: saveSortingState

 /**
  * Saves the sorting order of tasks in the backend user's uc
  *
  * @param	array		array of parameters from the AJAX interface, currently unused
  * @param	TYPO3AJAX	object of type TYPO3AJAX
  * @return	void
  */
 public function saveSortingState(array $params, TYPO3AJAX $ajaxObj)
 {
     $sort = array();
     $items = explode('&', t3lib_div::_POST('data'));
     foreach ($items as $item) {
         $sort[] = substr($item, 12);
     }
     $GLOBALS['BE_USER']->uc['taskcenter']['sorting'] = serialize($sort);
     $GLOBALS['BE_USER']->writeUC();
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:17,代码来源:class.tx_taskcenter_status.php

示例7: main

 /**
  * Updates nested sets
  *
  * @return	string		HTML output
  */
 public function main()
 {
     if (t3lib_div::_POST('nssubmit') != '') {
         $this->updateOverridePaths();
         $content = 'Update finished successfully.';
     } else {
         $content = $this->prompt();
     }
     return $content;
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:15,代码来源:class.ext_update.php

示例8: main

 /**
  * Updates nested sets
  *
  * @return	string		HTML output
  */
 public function main()
 {
     if (t3lib_div::_POST('nssubmit') != '') {
         $res = $this->adoptOldFilelist();
         $content = '<p>Update finished.<br/>' . 'Successfully adopted <b>' . $res['success'] . '</b> file(s).<br/>' . 'Failed for <b>' . $res['fail'] . '</b> file(s).</p>';
     } else {
         $content = $this->prompt();
     }
     return $content;
 }
开发者ID:jonathanheilmann,项目名称:ext-jh_kestats_export,代码行数:15,代码来源:class.ext_update.php

示例9: loadGP

 protected function loadGP()
 {
     $gp = array_merge(t3lib_div::_GET(), t3lib_div::_POST());
     if ($this->formValuesPrefix) {
         $gp = $gp[$this->formValuesPrefix];
     }
     if (!is_array($gp)) {
         $gp = array();
     }
     return $gp;
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:11,代码来源:Tx_Formhandler_PreProcessor_LoadGetPost.php

示例10: setQuery

 /**
  * Set current query
  *
  * @param Tx_Youtubeapi_Domain_Model_Video $query The query
  * @return void
  */
 public function setQuery($settings)
 {
     $this->settings = $settings;
     $this->vars = t3lib_div::_GET('tx_youtubeapi_pi1');
     $this->postvars = t3lib_div::_POST('tx_youtubeapi_pi1');
     if ($this->postvars[search]) {
         $GLOBALS['TSFE']->fe_user->setKey("ses", "search", $this->postvars[search]);
         $this->settings['searchTerms'] = $GLOBALS["TSFE"]->fe_user->getKey("ses", "search");
     }
     if ($this->postvars[maxResults]) {
         $GLOBALS['TSFE']->fe_user->setKey("ses", "maxResults", $this->postvars[maxResults]);
     }
     $this->settings['maxResults'] = $GLOBALS["TSFE"]->fe_user->getKey("ses", "maxResults") ? $GLOBALS["TSFE"]->fe_user->getKey("ses", "maxResults") : $this->settings['maxResults'];
     $limit = $this->settings['maxResults'];
     if ($this->vars) {
         $page = (int) $this->vars[page];
         $start = $page * $limit + 1;
     } else {
         $start = 1;
     }
     $this->yt = new Zend_Gdata_YouTube();
     $this->query = $this->yt->newVideoQuery();
     $this->query->orderBy = $this->settings['orderBy'];
     $this->query->startIndex = $this->vars['start'] ? $this->vars['start'] : (int) $start;
     $this->query->maxResults = (int) $limit;
     print_r($this->settings['channel']);
     // Build search (flexform values will be overidden by searchoptions in FE)
     if ($this->postvars[type] == "") {
         $this->query->videoQuery = $this->postvars[search] ? $this->postvars[search] : $this->settings['searchTerm'];
     }
     // searching by keywords
     if ($this->settings['keywords'] || $this->postvars[type] == "keyword") {
         $keywords = $this->postvars[search] ? $this->postvars[search] : $this->settings['keywords'];
         $this->query->category = $this->_keyworded($keywords);
     }
     // searching by category
     if (($this->settings['category'] || $this->postvars[type] == "category") && !$this->settings['keywords']) {
         $category = $this->postvars[search] ? $this->postvars[search] : $this->settings['category'];
         $this->query->category = $this->_categorized($category);
     }
     // searching by category and keywords
     if (($this->settings['keywords'] || $this->postvars[type] == "keyword") && ($this->settings['category'] || $this->postvars[type] == "category")) {
         if ($this->settings['keywords'] && $this->postvars[type] == "category") {
             $keywords = $this->settings['keywords'];
             $category = $this->postvars[search];
         }
         if ($this->settings['category'] && $this->postvars[type] == "keyword") {
             $keywords = $this->postvars[search];
             $category = $this->settings['category'];
         }
         $this->query->category = $this->_categorized($category) . "/" . $this->_keyworded($keywords);
     }
 }
开发者ID:heaven7,项目名称:youtubeapi,代码行数:59,代码来源:VideoRepository.php

示例11: main

    public function main($parent, $pageId)
    {
        $this->post = t3lib_div::_POST();
        $this->get = t3lib_div::_GET();
        $erg = '<script src="../typo3conf/ext/he_portal/res/jquery/js/jquery-1.7.1b.min.js" type="text/javascript"></script>
						<script src="../typo3conf/ext/he_portal/res/jquery/js/portal.js" type="text/javascript"></script><br>
						<div class="aliasVerwaltung">
						<h1 class="heading">Alias Verwaltung</h1>
						<form method="post" action="">';
        $aliasListe = $this->post['aliasListe'];
        $aliasEingabe = $this->post['aliasEingabe'];
        $aliasSpeichern = $this->post['aliasSpeichern'];
        $filter = $this->post['filter'];
        $alias = $this->post['alias'];
        $url = $this->post['url'];
        $lang = $this->post['lang'];
        $uid = $this->post['uid'];
        $auswahl = '';
        if (empty($aliasListe) && empty($aliasEingabe) && empty($aliasSpeichern) && empty($abbrechen)) {
            $action = $this->get['action'];
            if ($action != '') {
                switch ($action) {
                    case 'edit':
                        $aliasUid = $this->get['aliasUid'];
                        if (!empty($aliasUid)) {
                            $auswahl = $this->aliasBearbeiten($aliasUid, $pageId);
                        }
                        break;
                }
            }
        } else {
            if ($aliasEingabe != '') {
                $auswahl = $this->aliasEingabe($alias, $url, $lang, $pageId);
            } else {
                if ($aliasSpeichern != '') {
                    $erg .= $this->aliasSpeichern($alias, $url, $lang, $uid);
                }
            }
        }
        if (empty($auswahl)) {
            $erg .= $this->aliasEingabe($alias, $url, $lang, $pageId);
            $erg .= $this->aliasListe($filter);
        } else {
            $erg .= $auswahl;
        }
        $erg .= '</div>';
        return $erg;
    }
开发者ID:mmirsch,项目名称:he_tools1,代码行数:48,代码来源:class.tx_he_tools_alias.php

示例12: change_title

 function change_title()
 {
     $conf = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_indexedsearch.'];
     $sitename = $GLOBALS['TSFE']->tmpl->setup['sitetitle'];
     $orig_title = $GLOBALS['TSFE']->config['config']['pageTitleFirst'] ? $GLOBALS['TSFE']->page['title'] . ': ' . $sitename : $sitename . ': ' . $GLOBALS['TSFE']->page['title'];
     $params_search = t3lib_div::_POST('tx_indexedsearch') ? t3lib_div::_POST('tx_indexedsearch') : t3lib_div::_GET('tx_indexedsearch');
     if ($params_search['sword']) {
         $num_page = $params_search['pointer'] ? $params_search['pointer'] + 1 : '1';
         $page_title = $orig_title . ' - ' . $conf['pageTitleAdd'] . ' ' . $params_search['sword'] . ' - ' . $conf['pageTitlePage'] . ' ' . $num_page;
         return $page_title;
     } else {
         // original code from class.tslib_pagegen.php :
         $titleTagContent = $GLOBALS['TSFE']->tmpl->printTitle($GLOBALS['TSFE']->altPageTitle ? $GLOBALS['TSFE']->altPageTitle : $GLOBALS['TSFE']->page['title'], $GLOBALS['TSFE']->config['config']['noPageTitle'], $GLOBALS['TSFE']->config['config']['pageTitleFirst']);
         return $titleTagContent;
     }
 }
开发者ID:rafu1987,项目名称:t3bootstrap-project,代码行数:16,代码来源:user_is_functions.php

示例13: getCacheID

 function getCacheID($cache_id = null)
 {
     // If caching is disabled in TYPO3 make sure it's disabled in Smarty as well
     if ($GLOBALS['TSFE']->no_cache || t3lib_div::_GP('no_cache')) {
         $this->caching = false;
         return;
         // Exit here
     }
     // If cHash is set, use it for the cache_id
     if (t3lib_div::_GP('cHash')) {
         return t3lib_div::_GP('cHash');
     }
     // Otherwise create a unique cache_id from POST/GET vars
     // TODO: Observe how well Smarty caching works in the context of TYPO3. Disabling caching is generally recommended...
     return $cache_id ? $cache_id : t3lib_div::shortMD5(serialize(array_merge(t3lib_div::_GET(), t3lib_div::_POST())));
 }
开发者ID:Tomeno,项目名称:lulcobang,代码行数:16,代码来源:class.tx_smarty_div.php

示例14: main

 public function main($parent, $pageId)
 {
     $this->post = t3lib_div::_POST();
     $this->get = t3lib_div::_GET();
     $erg = '<div class="qrCodes">';
     $erg .= '<h1 class="heading">QR-Codes</h1>';
     $filter = $this->post['filter'];
     $alias = $this->post['alias'];
     $url = $this->post['url'];
     $lang = $this->post['lang'];
     $uid = $this->post['uid'];
     $auswahl = $this->aliasListe($filter);
     $erg .= $auswahl;
     $erg .= '</div>';
     return $erg;
 }
开发者ID:mmirsch,项目名称:he_tools1,代码行数:16,代码来源:class.tx_he_tools_qr_codes.php

示例15: main

 public function main($parent, $pageId)
 {
     $this->post = t3lib_div::_POST();
     $this->get = t3lib_div::_GET();
     $erg .= '<div class="portalFunktionen">';
     $erg .= '<h1>Portal Funktionen</h1>';
     $erg .= '<form name="alias" method="post" action="">';
     $gadgetsAktivieren = $this->post['gadgetsAktivieren'];
     $gadgetAuswahl = $this->post['gadgetAuswahl'];
     if (!empty($gadgetsAktivieren) || !empty($gadgetAuswahl)) {
         $erg .= $this->gadgetsAktivieren($gadgetAuswahl);
     }
     $erg .= '<input type="submit" name="gadgetsAktivieren" value="Gadgets für alle aktivieren"/>';
     $erg .= '</form>';
     $erg .= '</div>';
     return $erg;
 }
开发者ID:mmirsch,项目名称:he_tools1,代码行数:17,代码来源:class.tx_he_tools_portal.php


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