Documentation TYPO3 par Ameos

tx_ttnews Class Reference

Inheritance diagram for tx_ttnews:

Inheritance graph
[legend]
Collaboration diagram for tx_ttnews:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 main_xmlnewsfeed ($content, $conf)
 getStoriesResult ()
 main_news ($content, $conf)
 news_archiveMenu ()
 news_list ()
 getSelectConf ($where, $noPeriod=0)
 setPidlist ($pid_list)
 initRecursive ($recursive)
 initCategories ()
 generatePageArray ()
 getItemMarkerArray ($row, $textRenderObj="displaySingle")
 getRelated ($uid)
 userProcess ($mConfKey, $passVar)
 spMarker ($subpartMarker)
 getLinkUrl ($id="", $excludeList="")
 searchWhere ($sw)
 formatStr ($str)
 getLayouts ($templateCode, $alternativeLayouts, $marker)

Public Attributes

 $cObj
 $tt_news_uid
 $conf
 $config
 $alternativeLayouts
 $pid
 $allowCaching
 $catExclusive
 $searchFieldList = "short,bodytext,author,keywords,links,imagecaption,title"
 $theCode = ""
 $categories = array()
 $pageArray = array()

Detailed Description

newsLib.inc

Creates a news system.

TypoScript config:

Author:
Kasper Skårhøj <kasperYYYY@typo3.com>

Definition at line 42 of file class.tx_ttnews.php.


Member Function Documentation

tx_ttnews::formatStr str  ) 
 

Format string with nl2br and htmlspecialchars()

Definition at line 681 of file class.tx_ttnews.php.

tx_ttnews::generatePageArray  ) 
 

Generates an array, ->pageArray of the pagerecords from ->pid_list

Definition at line 534 of file class.tx_ttnews.php.

Referenced by news_list().

tx_ttnews::getItemMarkerArray row,
textRenderObj = "displaySingle"
 

Fills in the markerArray with data for a product

Definition at line 546 of file class.tx_ttnews.php.

References t3lib_div::intInRange(), and t3lib_div::trimExplode().

Referenced by news_list().

tx_ttnews::getLayouts templateCode,
alternativeLayouts,
marker
 

Returns alternating layouts

Definition at line 691 of file class.tx_ttnews.php.

Referenced by news_archiveMenu(), and news_list().

tx_ttnews::getLinkUrl id = "",
excludeList = ""
 

Returns a url for use in forms and links

Definition at line 649 of file class.tx_ttnews.php.

References t3lib_div::_GP(), and t3lib_div::inList().

Referenced by news_list().

tx_ttnews::getRelated uid  ) 
 

Gets related news.

Definition at line 609 of file class.tx_ttnews.php.

References t3lib_div::makeInstance().

tx_ttnews::initCategories  ) 
 

Getting all tt_news_cat categories into internal array

Definition at line 522 of file class.tx_ttnews.php.

Referenced by news_list().

tx_ttnews::initRecursive recursive  ) 
 

Extends the internal pid_list by the levels given by $recursive

Definition at line 508 of file class.tx_ttnews.php.

tx_ttnews::main_news content,
conf
 

Main news function.

Definition at line 81 of file class.tx_ttnews.php.

References $conf, $pid, $theCode, t3lib_div::_GP(), t3lib_div::intExplode(), t3lib_div::intInRange(), t3lib_div::makeInstance(), news_archiveMenu(), news_list(), and t3lib_div::trimExplode().

tx_ttnews::main_xmlnewsfeed content,
conf
 

Main news function for XML news feed

Definition at line 61 of file class.tx_ttnews.php.

References getStoriesResult(), and t3lib_div::makeInstanceClassName().

tx_ttnews::news_archiveMenu  ) 
 

News archive menu

Definition at line 176 of file class.tx_ttnews.php.

References getLayouts(), getSelectConf(), t3lib_div::makeInstance(), and spMarker().

Referenced by main_news().

tx_ttnews::news_list  ) 
 

Displaying single news/ the news list / searching

Definition at line 269 of file class.tx_ttnews.php.

References $theCode, t3lib_div::_GP(), generatePageArray(), getItemMarkerArray(), getLayouts(), getLinkUrl(), getSelectConf(), initCategories(), t3lib_div::intInRange(), searchWhere(), setPidlist(), and spMarker().

Referenced by main_news().

tx_ttnews::searchWhere sw  ) 
 

Generates a search where clause.

Definition at line 673 of file class.tx_ttnews.php.

Referenced by news_list().

tx_ttnews::setPidlist pid_list  ) 
 

Sets the pid_list internal var

Definition at line 501 of file class.tx_ttnews.php.

Referenced by news_list().

tx_ttnews::spMarker subpartMarker  ) 
 

Returning template subpart marker

Definition at line 636 of file class.tx_ttnews.php.

Referenced by news_archiveMenu(), and news_list().

tx_ttnews::userProcess mConfKey,
passVar
 

Calls user function

Definition at line 624 of file class.tx_ttnews.php.


Member Data Documentation

tx_ttnews::$conf
 

Should normally be set in the main function with the TypoScript content passed to the method.

$conf[LOCAL_LANG][_key_] is reserved for Local Language overrides. $conf[userFunc] / $conf[includeLibs] reserved for setting up the USER / USER_INT object. See TSref

Reimplemented from tslib_pibase.

Definition at line 46 of file class.tx_ttnews.php.

Referenced by main_news().


The documentation for this class was generated from the following file:


Généré par L'expert TYPO3 avec  doxygen 1.4.6