本文整理汇总了PHP中t3lib_div::logDeprecatedFunction方法的典型用法代码示例。如果您正苦于以下问题:PHP t3lib_div::logDeprecatedFunction方法的具体用法?PHP t3lib_div::logDeprecatedFunction怎么用?PHP t3lib_div::logDeprecatedFunction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类t3lib_div
的用法示例。
在下文中一共展示了t3lib_div::logDeprecatedFunction方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printPalette
/**
* Creates the HTML content for the palette
* (Horizontally, for display in the top frame)
* (Used if GET var "backRef" IS set)
*
* @deprecated since TYPO3 4.3, will be removed in TYPO3 4.6
* @param array Array of information from which the fields are built.
* @return string HTML output
*/
function printPalette($palArr)
{
t3lib_div::logDeprecatedFunction();
$out = '';
// For each element on the palette, write a few table cells with the field name, content and control images:
foreach ($palArr as $content) {
$iRow[] = '
<td>' . '<img name="req_' . $content['TABLE'] . '_' . $content['ID'] . '_' . $content['FIELD'] . '" class="c-reqIcon" src="clear.gif" width="10" height="10" alt="" />' . '<img name="cm_' . $content['TABLE'] . '_' . $content['ID'] . '_' . $content['FIELD'] . '" class="c-cmIcon" src="clear.gif" width="7" height="10" alt="" />' . '</td>
<td class="c-label">' . $content['NAME'] . ' ' . '</td>
<td class="c-csh">' . $content['ITEM'] . $content['HELP_ICON'] . '</td>';
}
// Finally, wrap it all in a table:
$out = '
<!--
TCEforms palette, rendered in top frame.
-->
<table border="0" cellpadding="0" cellspacing="0" id="typo3-TCEforms-palette">
<tr>
<td class="c-close">' . '<a href="#" onclick="closePal();return false;">' . t3lib_iconWorks::getSpriteIcon('actions-document-close', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.close', TRUE))) . '</a>' . '</td>' . implode('', $iRow) . '
</tr>
</table>
';
// Return the result:
return $out;
}
示例2: getInstance
/**
* Retrieves the singleton instance of the factory.
*
* @deprecated 2014-08-28 Use t3lib_div::makeInstance instead
*
* @return Tx_Oelib_MailerFactory the singleton factory
*/
public static function getInstance()
{
t3lib_div::logDeprecatedFunction();
/** @var Tx_Oelib_MailerFactory $mailerFactory */
$mailerFactory = t3lib_div::makeInstance('Tx_Oelib_MailerFactory');
return $mailerFactory;
}
示例3: getObject
/**
* Returns a fresh or existing instance of the object specified by $objectName.
*
* Important:
*
* If possible, instances of Prototype objects should always be created with the
* Object Factory's create() method and Singleton objects should rather be
* injected by some type of Dependency Injection.
*
* @param string $objectName The name of the object to return an instance of
* @return object The object instance
* @deprecated since Extbase 1.3.0; will be removed in Extbase 1.5.0. Please use Tx_Extbase_Object_ObjectManager instead
*/
public function getObject($objectName)
{
t3lib_div::logDeprecatedFunction();
$arguments = array_slice(func_get_args(), 1);
if (in_array('t3lib_Singleton', class_implements($objectName))) {
$object = $this->get($objectName, $arguments);
} else {
$object = $this->create($objectName, $arguments);
}
return $object;
}
示例4: fe_headerNoCache
/**
* Frontend hook: If the page is not being re-generated this is our chance to force it to be (because re-generation of the page is required in order to have the indexer called!)
*
* @param array Parameters from frontend
* @param object TSFE object (reference under PHP5)
* @return void
* @deprecated since TYPO3 4.3, this function will be removed in TYPO3 4.6, the method was extracted to hooks/class.tx_indexedsearch_tslib_fe_hook.php
*/
function fe_headerNoCache(&$params, $ref)
{
t3lib_div::logDeprecatedFunction();
require_once t3lib_extMgm::extPath('indexed_search') . 'hooks/class.tx_indexedsearch_tslib_fe_hook.php';
t3lib_div::makeInstance('tx_indexedsearch_tslib_fe_hook')->headerNoCache($params, $ref);
}
示例5: whereSelectFromList
/**
* Returns a part for a WHERE clause (without preceeding operator) which will select records based on the presence of a certain string in a string-list inside the record.
* Example: If you have a record with a field, "usergroup" and that field might contain a list like "1,2,3" (with no spaces between the values) then you can select all records having eg. "2" in this list by calling this function. This is regardless of whether the number "2" is in the start, end or middle of the list - or the only value at all.
*
* @param string The field name to look in
* @param string The value to look for.
* @return string
* @deprecated since TYPO3 3.6, will be removed in TYPO3 4.6 - Use $GLOBALS['TYPO3_DB']->listQuery() directly!
*/
function whereSelectFromList($field, $value)
{
t3lib_div::logDeprecatedFunction();
return $GLOBALS['TYPO3_DB']->listQuery($field, $value, '');
}
示例6: fw
/**
* Deprecated fontwrap function. Is just transparent now.
*
* @param string Input string
* @return string Output string (in the old days this was wrapped in <font> tags)
* @deprecated since TYPO3 3.6
*/
function fw($str)
{
t3lib_div::logDeprecatedFunction();
return $str;
}
示例7: convertName
/**
* Converts a name field
* Deprecated since TYPO3 4.0
*
* @param string $name: the name
* @return string the name
* @deprecated since TYPO3 4.0, will be removed in TYPO3 4.6
*/
public function convertName($name)
{
t3lib_div::logDeprecatedFunction();
return $name;
}
示例8: getHiddenFields
/**
* Outputs an empty string. This function is obsolete and kept for the
* compatibility only.
*
* @param string $unused Unused
* @return string HTML output
* @deprecated since TYPO3 4.3, all the functionality was put in $this->startForm() and $this->addFields_hidden
*/
function getHiddenFields($unused = '')
{
t3lib_div::logDeprecatedFunction();
return '';
}
示例9: showItems
/**
* Start creation of result list
*
* @param string $content
* @param array $items
* @param tx_mklib_mod1_decorator_Base $decorator
* @param tx_mklib_mod1_searcher_Base $callingClass
* @param bool $bAddMiscColumns
* @deprecated tx_mklib_mod1_searcher_abstractBase nutzen
*/
public static function showItems(&$content, $items, tx_mklib_mod1_decorator_Base $decorator, tx_mklib_mod1_searcher_Base $callingClass, $columns, $bAddMiscColumns = true)
{
t3lib_div::logDeprecatedFunction();
$funcId = $callingClass->getFuncId();
//allgmeine Spalten hinzufügen
if ($bAddMiscColumns) {
self::addMiscColumns($columns, $decorator);
}
if ($items) {
tx_rnbase::load('tx_rnbase_mod_Tables');
$arr = tx_rnbase_mod_Tables::prepareTable($items, $columns, $callingClass->getFormTool(), $callingClass->getOptions());
$out = $callingClass->getModule()->getDoc()->table($arr[0]);
} else {
$out = '<p><strong>###LABEL_NO_' . strtoupper($funcId) . '_FOUND###</strong></p><br/>';
}
$content .= $out;
}
示例10: getExtbaseFrameworkConfiguration
/**
* Returns the settings of Extbase
*
* @return array The configuration for the Extbase framework
* @deprecated since Extbase 1.3.0; will be removed in Extbase 1.5.0
*/
public static function getExtbaseFrameworkConfiguration()
{
t3lib_div::logDeprecatedFunction();
return self::$configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
}
示例11: make_seed
/**
* Seeds the random number engine.
*
* @return void
* @deprecated since TYPO3 4.3, this function will be removed in TYPO3 4.5, the random number generator is seeded automatically since PHP 4.2.0
*/
function make_seed()
{
t3lib_div::logDeprecatedFunction();
list($usec, $sec) = explode(' ', microtime());
$seedV = (double) $sec + (double) $usec * 100000;
srand($seedV);
}
示例12: getListOfBackendModules
/**
* Returns "list of backend modules". Most likely this will be obsolete soon / removed. Don't use.
* Usage: 0
*
* @param array Module names in array. Must be "addslashes()"ed
* @param string Perms clause for SQL query
* @param string Backpath
* @param string The URL/script to jump to (used in A tag)
* @return array Two keys, rows and list
* @internal
* @deprecated since TYPO3 3.6, this function will be removed in TYPO3 4.6.
* @obsolete
*/
public static function getListOfBackendModules($name, $perms_clause, $backPath = '', $script = 'index.php')
{
t3lib_div::logDeprecatedFunction();
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'pages', 'doktype!=255 AND module IN (\'' . implode('\',\'', $name) . '\') AND' . $perms_clause . self::deleteClause('pages'));
if (!$GLOBALS['TYPO3_DB']->sql_num_rows($res)) {
return FALSE;
}
$out = '';
$theRows = array();
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$theRows[] = $row;
$out .= '<span class="nobr"><a href="' . htmlspecialchars($script . '?id=' . $row['uid']) . '">' . t3lib_iconWorks::getSpriteIconForRecord('pages', $row, array('title' => htmlspecialchars(self::getRecordPath($row['uid'], $perms_clause, 20)))) . htmlspecialchars($row['title']) . '</a></span><br />';
}
$GLOBALS['TYPO3_DB']->sql_free_result($res);
return array('rows' => $theRows, 'list' => $out);
}
示例13: stdWrap
/**
* Compatibility stdWrap wrapper.
*
* @param string $content The content to manipulate using stdWrap functions.
* @param array $conf stdWrap configuration.
* @deprecated since TYPO3 4.5, this function will be removed in TYPO3 4.7, use $this->cObj->stdWrap() instead.
*/
public function stdWrap($content = '', $conf = array())
{
t3lib_div::logDeprecatedFunction();
return $this->cObj->stdWrap($content, $conf);
}
示例14: getDynTabMenuJScode
/**
* Returns dynamic tab menu header JS code.
* This is now incorporated automatically when the function template::getDynTabMenu is called
* (as long as it is called before $this->startPage())
* The return value is not needed anymore
*
* @deprecated since TYPO3 4.5, as the getDynTabMenu() function includes the function automatically since TYPO3 4.3
* @return string JavaScript section for the HTML header. (return value is deprecated since TYPO3 4.3, will be removed in TYPO3 4.5)
*/
function getDynTabMenuJScode()
{
t3lib_div::logDeprecatedFunction();
$this->loadJavascriptLib('js/tabmenu.js');
// return value deprecated since TYPO3 4.3
return '';
}
示例15: getPrefixedMarkers
/**
* Gets a list of markers with a given prefix.
* Example: If the prefix is "WRAPPER" (or "wrapper", case is not relevant),
* the following array might be returned: ("WRAPPER_FOO", "WRAPPER_BAR")
*
* If there are no matches, an empty array is returned.
*
* @deprecated 2015-03-01
*
* @param string $prefix case-insensitive prefix for the marker names to look for
*
* @return string[] matching marker names, might be empty
*/
public function getPrefixedMarkers($prefix)
{
t3lib_div::logDeprecatedFunction();
$upperCasePrefix = strtoupper($prefix) . '_';
$result = array();
foreach ($this->markerNames as $marker) {
if (strpos($marker, $upperCasePrefix) === 0) {
$result[] = $marker;
}
}
return $result;
}