Bug #25103 ยป 17670-02.diff
t3lib/class.t3lib_stdgraphic.php (working copy) | ||
---|---|---|
return $result;
|
||
}
|
||
/**
|
||
* Writes the input GDlib image pointer to file. Now just a wrapper to ImageWrite.
|
||
*
|
||
* @param pointer The GDlib image resource pointer
|
||
* @param string The filename to write to
|
||
* @return mixed The output of either imageGif, imagePng or imageJpeg based on the filename to write
|
||
* @see imageWrite()
|
||
* @deprecated since TYPO3 4.0, this function will be removed in TYPO3 4.6.
|
||
*/
|
||
function imageGif($destImg, $theImage) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return $this->imageWrite($destImg, $theImage);
|
||
}
|
||
/**
|
||
* This function has been renamed and only exists for providing backwards compatibility.
|
||
* Please use $this->imageCreateFromFile() instead.
|
||
*
|
||
* @param string Image filename
|
||
* @return pointer Image Resource pointer
|
||
* @deprecated since TYPO3 4.0, this function will be removed in TYPO3 4.6.
|
||
*/
|
||
function imageCreateFromGif($sourceImg) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return $this->imageCreateFromFile($sourceImg);
|
||
}
|
||
/**
|
||
* Creates a new GDlib image resource based on the input image filename.
|
||
* If it fails creating a image from the input file a blank gray image with the dimensions of the input image will be created instead.
|
||
*
|
||
... | ... | |
return $im;
|
||
}
|
||
/**
|
||
* Creates a new GD image resource.
|
||
* Wrapper for imagecreate(truecolor) depended if GD2 is used.
|
||
* This function however got obsolete, as PHP now recommends to use
|
||
* imagecreatetruecolor() only.
|
||
*
|
||
* @param integer Width of image
|
||
* @param integer Height of image
|
||
* @return pointer Image Resource pointer
|
||
* @deprecated since TYPO3 4.4, this function will be removed in TYPO3 4.6.
|
||
*/
|
||
function imagecreate($w, $h) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return imagecreatetruecolor($w, $h);
|
||
}
|
||
/**
|
||
* Returns the HEX color value for an RGB color array
|
||
*
|
||
* @param array RGB color array
|
t3lib/class.t3lib_tceforms.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Returns the "No title" string if the input $str is empty.
|
||
*
|
||
* DEPRECATED: Use t3lib_BEfunc::getRecordTitle with the $forceResult flag set.
|
||
*
|
||
* @param string The string which - if empty - will become the no-title string.
|
||
* @param array Array with wrappin parts for the no-title output (in keys [0]/[1])
|
||
* @return string
|
||
* @deprecated since TYPO3 4.1, this function will be removed in TYPO3 4.6.
|
||
*/
|
||
function noTitle($str, $wrapParts = array()) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return strcmp($str, '') ? $str : $wrapParts[0] . '[' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.no_title') . ']' . $wrapParts[1];
|
||
}
|
||
/**
|
||
* Returns 'this.blur();' string, if supported.
|
||
*
|
||
* @return string If the current browser supports styles, the string 'this.blur();' is returned.
|
t3lib/class.t3lib_timetrack.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Returns the current time in milliseconds
|
||
*
|
||
* @return integer
|
||
* @deprecated since TYPO3 4.3, this function will be removed in TYPO3 4.6, use getDifferenceToStarttime() instead
|
||
*/
|
||
protected function mtime() {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return $this->getDifferenceToStarttime();
|
||
}
|
||
/**
|
||
* Returns microtime input to milliseconds
|
||
*
|
||
* @param string PHP microtime string
|
||
* @return integer
|
||
* @deprecated since TYPO3 4.3, this function will be removed in TYPO3 4.6, use getMilliseconds() instead that expects microtime as float instead of a string
|
||
*/
|
||
public function convertMicrotime($microtime) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
$parts = explode(' ', $microtime);
|
||
return round(($parts[0] + $parts[1]) * 1000);
|
||
}
|
||
/**
|
||
* Gets a microtime value as milliseconds value.
|
||
*
|
||
* @param float $microtime: The microtime value - if not set the current time is used
|
t3lib/class.t3lib_db.php (working copy) | ||
---|---|---|
/**
|
||
* Executes query
|
||
* mysql() wrapper function
|
||
* Usage count/core: 0
|
||
*
|
||
* @param string Database name
|
||
* @param string Query to execute
|
||
* @return pointer Result pointer / DBAL object
|
||
* @deprecated since TYPO3 3.6, will be removed in TYPO3 4.6
|
||
* @see sql_query()
|
||
*/
|
||
function sql($db, $query) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
$res = mysql_query($query, $this->link);
|
||
if ($this->debugOutput) {
|
||
$this->debug('sql', $query);
|
||
}
|
||
return $res;
|
||
}
|
||
/**
|
||
* Executes query
|
||
* mysql_query() wrapper function
|
||
* Beware: Use of this method should be avoided as it is experimentally supported by DBAL. You should consider
|
||
* using exec_SELECTquery() and similar methods instead.
|
t3lib/class.t3lib_install.php (working copy) | ||
---|---|---|
return $content;
|
||
}
|
||
/**
|
||
* Reads the field definitions for the input SQL-file string
|
||
*
|
||
* @param string Should be a string read from an SQL-file made with 'mysqldump [database_name] -d'
|
||
* @return array Array with information about table.
|
||
* @deprecated since TYPO3 4.2, this function will be removed in TYPO3 4.6, use ->getFieldDefinitions_fileContent() instead!
|
||
*/
|
||
function getFieldDefinitions_sqlContent($fileContent) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return $this->getFieldDefinitions_fileContent($fileContent);
|
||
}
|
||
}
|
||
if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_install.php'])) {
|
||
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_install.php']);
|
||
}
|
||
?>
|
||
?>
|
t3lib/class.t3lib_beuserauth.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* If flag is set and the extensions 'beuser_tracking' is loaded, this will insert a table row with the REQUEST_URI of current script - thus tracking the scripts the backend users uses...
|
||
* This function works ONLY with the "beuser_tracking" extension and is deprecated since it does nothing useful.
|
||
*
|
||
* @param boolean Activate insertion of the URL.
|
||
* @return void
|
||
* @deprecated since TYPO3 3.6, this function will be removed in TYPO3 4.6.
|
||
*/
|
||
function trackBeUser($flag) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
if ($flag && t3lib_extMgm::isLoaded('beuser_tracking')) {
|
||
$insertFields = array(
|
||
'userid' => intval($this->user['uid']),
|
||
'tstamp' => $GLOBALS['EXEC_TIME'],
|
||
'script' => t3lib_div::getIndpEnv('REQUEST_URI')
|
||
);
|
||
$GLOBALS['TYPO3_DB']->exec_INSERTquery('sys_trackbeuser', $insertFields);
|
||
}
|
||
}
|
||
/**
|
||
* If TYPO3_CONF_VARS['BE']['enabledBeUserIPLock'] is enabled and an IP-list is found in the User TSconfig objString "options.lockToIP", then make an IP comparison with REMOTE_ADDR and return the outcome (true/false)
|
||
*
|
||
* @return boolean True, if IP address validates OK (or no check is done at all)
|
t3lib/class.t3lib_tstemplate.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Searching TypoScript code text (for constants, config (Setup) and editorcfg) for include instructions and does the inclusion if needed.
|
||
*
|
||
* @return void
|
||
* @deprecated since TYPO3 4.4 - Method name misspelled. Use "processIncludes" instead! This function will be removed in TYPO3 4.6.
|
||
* @see t3lib_TSparser, processIncludes()
|
||
*/
|
||
public function procesIncludes() {
|
||
t3lib_div::logDeprecatedFunction();
|
||
$this->processIncludes();
|
||
}
|
||
/**
|
||
* Searching TypoScript code text (for constants, config (Setup) and editorcfg)
|
||
* for include instructions and does the inclusion of external TypoScript files
|
||
* if needed.
|
||
... | ... | |
}
|
||
/**
|
||
* CheckFile runs through the $menuArr and checks every file-reference in $name
|
||
* (Not used anywhere)
|
||
*
|
||
* @param string Property name in the menu array
|
||
* @param array Menu array to traverse
|
||
* @return array Modified menu array
|
||
* @deprecated since TYPO3 3.6, this function will be removed in TYPO3 4.6.
|
||
* @internal
|
||
*/
|
||
function checkFile($name, $menuArr) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
foreach ($menuArr as $aKey => $value) {
|
||
$menuArr[$aKey][$name] = $this->getFileName($menuArr[$aKey][$name]);
|
||
}
|
||
return $menuArr;
|
||
}
|
||
/**
|
||
* Compiles the content for the page <title> tag.
|
||
*
|
||
* @param string The input title string, typically the "title" field of a page's record.
|
t3lib/class.t3lib_befunc.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Returns a WHERE clause which will make an AND search for the words in the $searchWords array in any of the fields in array $fields.
|
||
* Usage: 0
|
||
*
|
||
* @param array Array of search words
|
||
* @param array Array of fields
|
||
* @param string Table in which we are searching (for DBAL detection of quoteStr() method)
|
||
* @return string WHERE clause for search
|
||
* @deprecated since TYPO3 3.6, this function will be removed in TYPO3 4.6, use $GLOBALS['TYPO3_DB']->searchQuery() directly!
|
||
*/
|
||
public static function searchQuery($searchWords, $fields, $table = '') {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return $GLOBALS['TYPO3_DB']->searchQuery($searchWords, $fields, $table);
|
||
}
|
||
/**
|
||
* Returns a WHERE clause that can find a value ($value) in a list field ($field)
|
||
* For instance a record in the database might contain a list of numbers, "34,234,5" (with no spaces between). This query would be able to select that record based on the value "34", "234" or "5" regardless of their positioni in the list (left, middle or right).
|
||
* Is nice to look up list-relations to records or files in TYPO3 database tables.
|
||
* Usage: 0
|
||
*
|
||
* @param string Table field name
|
||
* @param string Value to find in list
|
||
* @return string WHERE clause for a query
|
||
* @deprecated since TYPO3 3.6, this function will be removed in TYPO3 4.6, use $GLOBALS['TYPO3_DB']->listQuery() directly!
|
||
*/
|
||
public static function listQuery($field, $value) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return $GLOBALS['TYPO3_DB']->listQuery($field, $value, '');
|
||
}
|
||
/**
|
||
* Makes an backwards explode on the $str and returns an array with ($table, $uid).
|
||
* Example: tt_content_45 => array('tt_content', 45)
|
||
* Usage: 1
|
||
... | ... | |
/*******************************************
|
||
*
|
||
* SQL-related, DEPRECATED functions
|
||
* (use t3lib_DB functions instead)
|
||
*
|
||
*******************************************/
|
||
/**
|
||
* Returns a SELECT query, selecting fields ($select) from two/three tables joined
|
||
* $local_table and $mm_table is mandatory. $foreign_table is optional.
|
||
* The JOIN is done with [$local_table].uid <--> [$mm_table].uid_local / [$mm_table].uid_foreign <--> [$foreign_table].uid
|
||
* The function is very useful for selecting MM-relations between tables adhering to the MM-format used by TCE (TYPO3 Core Engine). See the section on $TCA in Inside TYPO3 for more details.
|
||
*
|
||
* @param string Field list for SELECT
|
||
* @param string Tablename, local table
|
||
* @param string Tablename, relation table
|
||
* @param string Tablename, foreign table
|
||
* @param string Optional additional WHERE clauses put in the end of the query. DO NOT PUT IN GROUP BY, ORDER BY or LIMIT!
|
||
* @param string Optional GROUP BY field(s), if none, supply blank string.
|
||
* @param string Optional ORDER BY field(s), if none, supply blank string.
|
||
* @param string Optional LIMIT value ([begin,]max), if none, supply blank string.
|
||
* @return string Full SQL query
|
||
* @deprecated since TYPO3 3.6, this function will be removed in TYPO3 4.6, use $GLOBALS['TYPO3_DB']->exec_SELECT_mm_query() instead since that will return the result pointer while this returns the query. Using this function may make your application less fitted for DBAL later.
|
||
* @see t3lib_DB::exec_SELECT_mm_query()
|
||
*/
|
||
public static function mm_query($select, $local_table, $mm_table, $foreign_table, $whereClause = '', $groupBy = '', $orderBy = '', $limit = '') {
|
||
t3lib_div::logDeprecatedFunction();
|
||
$query = $GLOBALS['TYPO3_DB']->SELECTquery(
|
||
$select,
|
||
$local_table . ',' . $mm_table . ($foreign_table ? ',' . $foreign_table : ''),
|
||
$local_table . '.uid=' . $mm_table . '.uid_local' . ($foreign_table ? ' AND ' . $foreign_table . '.uid=' . $mm_table . '.uid_foreign' : '') . ' ' .
|
||
$whereClause, // whereClauseMightContainGroupOrderBy
|
||
$groupBy,
|
||
$orderBy,
|
||
$limit
|
||
);
|
||
return $query;
|
||
}
|
||
/**
|
||
* Creates an INSERT SQL-statement for $table from the array with field/value pairs $fields_values.
|
||
* DEPRECATED - $GLOBALS['TYPO3_DB']->INSERTquery() directly instead! But better yet, use $GLOBALS['TYPO3_DB']->exec_INSERTquery()
|
||
*
|
||
* @param string Table name
|
||
* @param array Field values as key=>value pairs.
|
||
* @return string Full SQL query for INSERT
|
||
* @deprecated since TYPO3 3.6, this function will be removed in TYPO3 4.6, use $GLOBALS['TYPO3_DB']->exec_INSERTquery() directly!
|
||
*/
|
||
public static function DBcompileInsert($table, $fields_values) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return $GLOBALS['TYPO3_DB']->INSERTquery($table, $fields_values);
|
||
}
|
||
/**
|
||
* Creates an UPDATE SQL-statement for $table where $where-clause (typ. 'uid=...') from the array with field/value pairs $fields_values.
|
||
* DEPRECATED - $GLOBALS['TYPO3_DB']->UPDATEquery() directly instead! But better yet, use $GLOBALS['TYPO3_DB']->exec_UPDATEquery()
|
||
*
|
||
* @param string Database tablename
|
||
* @param string WHERE clause, eg. "uid=1"
|
||
* @param array Field values as key=>value pairs.
|
||
* @return string Full SQL query for UPDATE
|
||
* @deprecated since TYPO3 3.6, this function will be removed in TYPO3 4.6, use $GLOBALS['TYPO3_DB']->exec_UPDATEquery() directly!
|
||
*/
|
||
public static function DBcompileUpdate($table, $where, $fields_values) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return $GLOBALS['TYPO3_DB']->UPDATEquery($table, $where, $fields_values);
|
||
}
|
||
/*******************************************
|
||
*
|
||
* Page tree, TCA related
|
||
*
|
||
*******************************************/
|
||
... | ... | |
}
|
||
/**
|
||
* Returns either title = '' or alt = '' attribute. This depends on the client browser and whether it supports title = '' or not (which is the default)
|
||
* If no $content is given only the attribute name is returned.
|
||
* The returned attribute with content will have a leading space char.
|
||
* Warning: Be careful to submit empty $content var - that will return just the attribute name!
|
||
* Usage: 0
|
||
*
|
||
* @param string String to set as title-attribute. If no $content is given only the attribute name is returned.
|
||
* @param boolean If $hsc is set, then content of the attribute is htmlspecialchar()'ed (which is good for XHTML and other reasons...)
|
||
* @return string
|
||
* @deprecated since TYPO3 3.6, this function will be removed in TYPO3 4.6 - The idea made sense with older browsers, but now all browsers should support the "title" attribute - so just hardcode the title attribute instead!
|
||
*/
|
||
public static function titleAttrib($content = '', $hsc = 0) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
global $CLIENT;
|
||
$attrib = ($CLIENT['BROWSER'] == 'net' && $CLIENT['VERSION'] < 5) || $CLIENT['BROWSER'] == 'konqu' ? 'alt' : 'title';
|
||
return strcmp($content, '') ? ' ' . $attrib . '="' . ($hsc ? htmlspecialchars($content) : $content) . '"' : $attrib;
|
||
}
|
||
/**
|
||
* Returns alt="" and title="" attributes with the value of $content.
|
||
* Usage: 7
|
||
*
|
||
... | ... | |
/**
|
||
* Call to update the page tree frame (or something else..?) after
|
||
* t3lib_BEfunc::getSetUpdateSignal('updatePageTree') -> will set the page tree to be updated.
|
||
* t3lib_BEfunc::getSetUpdateSignal() -> will return some JavaScript that does the update (called in the typo3/template.php file, end() function)
|
||
* please use the setUpdateSignal function instead now, as it allows you to add more parameters
|
||
* Usage: 11
|
||
*
|
||
* @param string Whether to set or clear the update signal. When setting, this value contains strings telling WHAT to set. At this point it seems that the value "updatePageTree" is the only one it makes sense to set.
|
||
* @return string HTML code (<script> section)
|
||
* @see t3lib_BEfunc::getUpdateSignalCode()
|
||
* @see t3lib_BEfunc::setUpdateSignal()
|
||
* @deprecated since TYPO3 4.2, this function will be removed in TYPO3 4.6, use the setUpdateSignal function instead, as it allows you to add more parameters
|
||
*/
|
||
public static function getSetUpdateSignal($set = '') {
|
||
t3lib_div::logDeprecatedFunction();
|
||
// kept for backwards compatibility if $set is empty, use "getUpdateSignalCode()" instead
|
||
if ($set) {
|
||
return self::setUpdateSignal($set);
|
||
} else {
|
||
return self::getUpdateSignalCode();
|
||
}
|
||
}
|
||
/**
|
||
* Call to update the page tree frame (or something else..?) after
|
||
* use 'updatePageTree' as a first parameter will set the page tree to be updated.
|
||
* Usage: 10
|
||
*
|
||
... | ... | |
}
|
||
/**
|
||
* 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);
|
||
}
|
||
/**
|
||
* Returns the name of the backend script relative to the TYPO3 main directory.
|
||
*
|
||
* @param string Name of the backend interface (backend, frontend) to look up the script name for. If no interface is given, the interface for the current backend user is used.
|
t3lib/class.t3lib_htmlmail.php (working copy) | ||
---|---|---|
}
|
||
return $attributes;
|
||
}
|
||
/**
|
||
* Implementation of quoted-printable encode.
|
||
* This function was a duplicate of t3lib_div::quoted_printable, thus it's going to be removed.
|
||
* Deprecated since TYPO3 4.0
|
||
*
|
||
* @param string Content to encode
|
||
* @return string The QP encoded string
|
||
* @deprecated since TYPO3 4.0, will be removed in TYPO3 4.6
|
||
*/
|
||
public function quoted_printable($string) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return t3lib_div::quoted_printable($string, 76);
|
||
}
|
||
/**
|
||
* 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;
|
||
}
|
||
}
|
||
if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_htmlmail.php'])) {
|
||
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_htmlmail.php']);
|
||
}
|
||
?>
|
||
?>
|
t3lib/class.t3lib_timetracknull.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Returns microtime input to milliseconds
|
||
*
|
||
* does nothing
|
||
*
|
||
* @param string PHP microtime string
|
||
* @return integer
|
||
*/
|
||
public function convertMicrotime($microtime) {
|
||
}
|
||
/**
|
||
* Gets a microtime value as milliseconds value.
|
||
*
|
||
* @param float $microtime: The microtime value - if not set the current time is used
|
t3lib/class.t3lib_tceforms_inline.php (working copy) | ||
---|---|---|
/**
|
||
* Creates a link/button to create new records
|
||
*
|
||
* @param string $objectPrefix: The "path" to the child record to create (e.g. 'data-parentPageId-partenTable-parentUid-parentField-childTable')
|
||
* @param array $conf: TCA configuration of the parent(!) field
|
||
* @return string The HTML code for the new record link
|
||
* @deprecated since TYPO3 4.2.0-beta1, this function will be removed in TYPO3 4.6.
|
||
*/
|
||
function getNewRecordLink($objectPrefix, $conf = array()) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return $this->getLevelInteractionLink('newRecord', $objectPrefix, $conf);
|
||
}
|
||
/**
|
||
* Add Sortable functionality using script.acolo.us "Sortable".
|
||
*
|
||
* @param string $objectId: The container id of the object - elements inside will be sortable
|
||
... | ... | |
/**
|
||
* Initialize environment for AJAX calls
|
||
*
|
||
* @param string $method: Name of the method to be called
|
||
* @param array $arguments: Arguments to be delivered to the method
|
||
* @return void
|
||
* @deprecated since TYPO3 4.2.0-alpha3, this function will be removed in TYPO3 4.6.
|
||
*/
|
||
function initForAJAX($method, &$arguments) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
// Set t3lib_TCEforms::$RTEcounter to the given value:
|
||
if ($method == 'createNewRecord') {
|
||
$this->fObj->RTEcounter = intval(array_shift($arguments));
|
||
}
|
||
}
|
||
/**
|
||
* Generates an error message that transferred as JSON for AJAX calls
|
||
*
|
||
* @param string $message: The error message to be shown
|
typo3/js/tree.js (working copy) | ||
---|---|---|
// Call this function, refresh_nav(), from another script in the backend if you want
|
||
// to refresh the navigation frame (eg. after having changed a page title or moved pages etc.)
|
||
// See t3lib_BEfunc::getSetUpdateSignal()
|
||
// please use the function in the "Tree" object for future implementations
|
||
function refresh_nav() {
|
||
window.setTimeout('Tree.refresh();',0);
|
typo3/index.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* 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, will be removed in TYPO3 4.6 - all the functionality was put in $this->startForm() and $this->addFields_hidden
|
||
*/
|
||
function getHiddenFields($unused = '') {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return '';
|
||
}
|
||
/**
|
||
* Creates JavaScript for the login form
|
||
*
|
||
* @return string JavaScript code
|
typo3/contrib/RemoveXSS/RemoveXSS.php (working copy) | ||
---|---|---|
* @package RemoveXSS
|
||
*/
|
||
final class RemoveXSS {
|
||
/**
|
||
* Removes potential XSS code from an input string.
|
||
* Wrapper for RemoveXSS::process().
|
||
*
|
||
* Using an external class by Travis Puderbaugh <kallahar@quickwired.com>
|
||
*
|
||
* @param string Input string
|
||
* @param string replaceString for inserting in keywords (which destroyes the tags)
|
||
* @return string Input string with potential XSS code removed
|
||
* @deprecated since TYPO3 4.3, will be removed in TYPO3 4.6 - use static call RemoveXSS::process() instead
|
||
*/
|
||
public function RemoveXSS($val, $replaceString = '<x>') {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return self::process($val, $replaceString);
|
||
}
|
||
/**
|
||
* Removes potential XSS code from an input string.
|
||
*
|
typo3/template.php (working copy) | ||
---|---|---|
/**
|
||
* 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, will be removed in TYPO3 4.6
|
||
*/
|
||
function fw($str) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return $str;
|
||
}
|
||
/**
|
||
* TYPO3 Backend Template Class
|
||
*
|
||
* This class contains functions for starting and ending the HTML of backend modules
|
||
... | ... | |
}
|
||
/**
|
||
* Originally it printed a kind of divider.
|
||
* Deprecated. Just remove function calls to it or call the divider() function instead.
|
||
*
|
||
* @return void
|
||
* @internal
|
||
* @deprecated since TYPO3 3.6, will be removed in TYPO3 4.6
|
||
*/
|
||
function middle() {
|
||
t3lib_div::logDeprecatedFunction();
|
||
}
|
||
/**
|
||
* If a form-tag is defined in ->form then and end-tag for that <form> element is outputted
|
||
* Further a JavaScript section is outputted which will update the top.busy session-expiry object (unless $this->endJS is set to false)
|
||
*
|
||
... | ... | |
}
|
||
/**
|
||
* 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 '';
|
||
}
|
||
/**
|
||
* Creates the version selector for the page id inputted.
|
||
* Requires the core version management extension, "version" to be loaded.
|
||
*
|
typo3/sysext/cms/tslib/class.tslib_fe.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Connect to MySQL database
|
||
* May exit after outputting an error message or some JavaScript redirecting to the install tool.
|
||
*
|
||
* @return void
|
||
* @deprecated since TYPO3 3.8, this function will be removed in TYPO3 4.6, use connectToDB() instead!
|
||
*/
|
||
function connectToMySQL() {
|
||
t3lib_div::logDeprecatedFunction();
|
||
$this->connectToDB();
|
||
}
|
||
/**
|
||
* Connect to SQL database
|
||
* May exit after outputting an error message or some JavaScript redirecting to the install tool.
|
||
*
|
||
... | ... | |
* @return void
|
||
* @see t3lib_timeTrack::debug_typo3PrintError()
|
||
* @see t3lib_message_ErrorPageMessage
|
||
* @deprecated since TYPO3 4.5, will be removed in TYPO3 4.7
|
||
*/
|
||
function printError($label,$header='Error!') {
|
||
t3lib_div::logDeprecatedFunction();
|
||
... | ... | |
* @param string $key is the key in the array, for num-key let the value be empty
|
||
* @param string $content is the content if you want any
|
||
* @return void
|
||
* @see setJS(), tslib_pibase::pi_setClassStyle()
|
||
* @see setJS()
|
||
*/
|
||
function setCSS($key,$content) {
|
||
if ($key) {
|
||
... | ... | |
}
|
||
/**
|
||
* Seeds the random number engine.
|
||
*
|
||
* @return void
|
||
* @deprecated since TYPO3 4.3, this function will be removed in TYPO3 4.6, the random number generator is seeded automatically since PHP 4.2.0
|
||
*/
|
||
function make_seed() {
|
||
t3lib_div::logDeprecatedFunction();
|
||
list($usec, $sec) = explode(' ', microtime());
|
||
$seedV = (float)$sec + ((float)$usec * 100000);
|
||
srand($seedV);
|
||
}
|
||
/**
|
||
* Returns a unique md5 hash.
|
||
* There is no special magic in this, the only point is that you don't have to call md5(uniqid()) which is slow and by this you are sure to get a unique string each time in a little faster way.
|
||
*
|
typo3/sysext/cms/tslib/class.tslib_pibase.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Sets CSS style-data for the $class-suffix (prefixed by pi_getClassName())
|
||
*
|
||
* @param string $class: Class suffix, see pi_getClassName
|
||
* @param string $data: CSS data
|
||
* @param string If $selector is set to any CSS selector, eg 'P' or 'H1' or 'TABLE' then the style $data will regard those HTML-elements only
|
||
* @return void
|
||
* @deprecated since TYPO3 3.6, this function will be removed in TYPO3 4.6, I think this function should not be used (and probably isn't used anywhere). It was a part of a concept which was left behind quite quickly.
|
||
* @obsolete
|
||
* @private
|
||
*/
|
||
function pi_setClassStyle($class,$data,$selector='') {
|
||
t3lib_div::logDeprecatedFunction();
|
||
$GLOBALS['TSFE']->setCSS($this->pi_getClassName($class).($selector?' '.$selector:''),'.'.$this->pi_getClassName($class).($selector?' '.$selector:'').' {'.$data.'}');
|
||
}
|
||
/**
|
||
* Wraps the input string in a <div> tag with the class attribute set to the prefixId.
|
||
* All content returned from your plugins should be returned through this function so all content from your plugin is encapsulated in a <div>-tag nicely identifying the content of your plugin.
|
||
*
|
typo3/sysext/cms/tslib/class.tslib_content.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Checking syntax of input email address
|
||
*
|
||
* @param string Input string to evaluate
|
||
* @return boolean Returns TRUE if the $email address (input string) is valid; Has a "@", domain name with at least one period and only allowed a-z characters.
|
||
* @see t3lib_div::validEmail()
|
||
* @deprecated since TYPO3 3.6, will be removed in TYPO3 4.6 - Use t3lib_div::validEmail() instead
|
||
*/
|
||
function checkEmail($email) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return t3lib_div::validEmail($email);
|
||
}
|
||
/**
|
||
* Clears TypoScript properties listed in $propList from the input TypoScript array.
|
||
*
|
||
* @param array TypoScript array of values/properties
|
||
... | ... | |
}
|
||
/**
|
||
* 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, '');
|
||
}
|
||
/**
|
||
* Executes a SELECT query for joining three tables according to the MM-relation standards used for tables configured in $TCA. That means MM-joins where the join table has the fields "uid_local" and "uid_foreign"
|
||
*
|
||
* @param string List of fields to select
|
typo3/sysext/cms/layout/class.tx_cms_layout.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Returns an icon, which has its title attribute set to a massive amount of information about the element.
|
||
*
|
||
* @param array Array where values are human readable output of field values (not htmlspecialchars()'ed though). The values are imploded by a linebreak.
|
||
* @return string HTML img tag if applicable.
|
||
* @deprecated since TYPO3 4.4, this function will be removed in TYPO3 4.6
|
||
*/
|
||
function infoGif($infoArr) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
if (count($infoArr) && $this->tt_contentConfig['showInfo']) {
|
||
return t3lib_iconWorks::getSpriteIcon('actions-document-info', array('title' => htmlspecialchars(implode(LF, $infoArr))));
|
||
}
|
||
}
|
||
/**
|
||
* Creates onclick-attribute content for a new content element
|
||
*
|
||
* @param integer Page id where to create the element.
|
typo3/sysext/indexed_search/class.indexer.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Processing words in the array from split*Content -functions
|
||
* This function is only a wrapper because the function has been removed (see above).
|
||
*
|
||
* @param array Array of content to index, see splitHTMLContent() and splitRegularContent()
|
||
* @return array Content input array modified so each key is not a unique array of words
|
||
* @deprecated since TYPO3 4.0, this function will be removed in TYPO3 4.6.
|
||
*/
|
||
function procesWordsInArrays($contentArr) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return $this->processWordsInArrays($contentArr);
|
||
}
|
||
/**
|
||
* Extracts the sample description text from the content array.
|
||
*
|
||
* @param array Content array
|
||
... | ... | |
return hexdec(substr(md5($str),0,7));
|
||
}
|
||
/**
|
||
* Calculates the cHash value of input GET array (for constructing cHash values if needed)
|
||
*
|
||
* @param array Array of GET parameters to encode
|
||
* @return void
|
||
* @deprecated since TYPO3 4.3, this function will be removed in TYPO3 4.6, use directly t3lib_div::calculateCHash()
|
||
*/
|
||
function makeCHash($paramArray) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
$addQueryParams = t3lib_div::implodeArrayForUrl('', $paramArray);
|
||
$pA = t3lib_div::cHashParams($addQueryParams);
|
||
return t3lib_div::shortMD5(serialize($pA));
|
||
}
|
||
... | ... | |
/*********************************
|
||
*
|
||
* Internal logging functions
|
||
... | ... | |
**************************/
|
||
/**
|
||
* 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);
|
||
}
|
||
/**
|
||
* Makes sure that keywords are space-separated. This is impotant for their
|
||
* proper displaying as a part of fulltext index.
|
||
*
|
typo3/alt_clickmenu.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Adding CM element for edit page header
|
||
*
|
||
* @param integer page uid to edit (PID)
|
||
* @return array Item array, element in $menuItems
|
||
* @internal
|
||
* @deprecated since TYPO3 4.0, will be removed in TYPO3 4.6 - Use DB_editPageProperties instead
|
||
*/
|
||
function DB_editPageHeader($uid) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
return $this->DB_editPageProperties($uid);
|
||
}
|
||
/**
|
||
* Adding CM element for edit page properties
|
||
*
|
||
* @param integer page uid to edit (PID)
|