本文整理汇总了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();
}
示例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'));
}
示例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'));
}
示例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;
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
}
示例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;
}
示例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;
}
}
示例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())));
}
示例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;
}
示例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;
}