TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController Class Reference
Inheritance diagram for TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController:
TYPO3\CMS\Frontend\Plugin\AbstractPlugin tx_cssstyledcontent_pi1

Public Member Functions

 render_bullets ($content, $conf)
 
 render_table ($content, $conf)
 
 render_uploads ($content, $conf)
 
 renderSpace ($content, array $configuration)
 
 getTableAttributes ($conf, $type)
 
 hookRequest ($functionName)
 
- Public Member Functions inherited from TYPO3\CMS\Frontend\Plugin\AbstractPlugin
 pi_setPiVarDefaults ()
 
 pi_getPageLink ($id, $target='', $urlParameters=array())
 
 pi_linkToPage ($str, $id, $target='', $urlParameters=array())
 
 pi_linkTP ($str, $urlParameters=array(), $cache=0, $altPageId=0)
 
 pi_linkTP_keepPIvars ($str, $overrulePIvars=array(), $cache=0, $clearAnyway=0, $altPageId=0)
 
 pi_linkTP_keepPIvars_url ($overrulePIvars=array(), $cache=0, $clearAnyway=0, $altPageId=0)
 
 pi_list_linkSingle ($str, $uid, $cache=FALSE, $mergeArr=array(), $urlOnly=FALSE, $altPageId=0)
 
 pi_openAtagHrefInJSwindow ($str, $winName='', $winParams='width=670, height=500, status=0, menubar=0, scrollbars=1, resizable=1')
 
 pi_list_browseresults ($showResultCount=1, $tableParams='', $wrapArr=array(), $pointerName='pointer', $hscText=TRUE, $forceOutput=FALSE)
 
 pi_list_searchBox ($tableParams='')
 
 pi_list_modeSelector ($items=array(), $tableParams='')
 
 pi_list_makelist ($res, $tableParams='')
 
 pi_list_row ($c)
 
 pi_list_header ()
 
 pi_getClassName ($class)
 
 pi_classParam ($class, $addClasses='')
 
 pi_wrapInBaseClass ($str)
 
 pi_getEditPanel ($row='', $tablename='', $label='', $conf=array())
 
 pi_getEditIcon ($content, $fields, $title='', $row='', $tablename='', $oConf=array())
 
 pi_getLL ($key, $alternativeLabel='', $hsc=FALSE)
 
 pi_loadLL ()
 
 pi_exec_query ($table, $count=0, $addWhere='', $mm_cat='', $groupBy='', $orderBy='', $query='')
 
 pi_getRecord ($table, $uid, $checkPage=0)
 
 pi_getPidList ($pid_list, $recursive=0)
 
 pi_prependFieldsWithTable ($table, $fieldList)
 
 pi_getCategoryTableContents ($table, $pid, $whereClause='', $groupBy='', $orderBy='', $limit='')
 
 pi_isOnlyFields ($fList, $lowerThan=-1)
 
 pi_autoCache ($inArray)
 
 pi_RTEcssText ($str)
 
 pi_initPIflexForm ($field='pi_flexform')
 
 pi_getFFvalue ($T3FlexForm_array, $fieldName, $sheet='sDEF', $lang='lDEF', $value='vDEF')
 
 pi_getFFvalueFromSheetArray ($sheetArray, $fieldNameArr, $value)
 

Public Attributes

 $prefixId = 'tx_cssstyledcontent_pi1'
 
 $scriptRelPath = 'pi1/class.tx_cssstyledcontent_pi1.php'
 
 $extKey = 'css_styled_content'
 
 $conf = array()
 
- Public Attributes inherited from TYPO3\CMS\Frontend\Plugin\AbstractPlugin
 $cObj
 
 $prefixId
 
 $scriptRelPath
 
 $extKey
 
 $piVars
 
 $internal = array('res_count' => 0, 'results_at_a_time' => 20, 'maxPages' => 10, 'currentRow' => array(), 'currentTable' => '')
 
 $LOCAL_LANG = array()
 
 $LOCAL_LANG_charset = array()
 
 $LOCAL_LANG_loaded = 0
 
 $LLkey = 'default'
 
 $altLLkey = ''
 
 $LLtestPrefix = ''
 
 $LLtestPrefixAlt = ''
 
 $pi_isOnlyFields = 'mode,pointer'
 
 $pi_alwaysPrev = 0
 
 $pi_lowerThan = 5
 
 $pi_moreParams = ''
 
 $pi_listFields = '*'
 
 $pi_autoCacheFields = array()
 
 $pi_autoCacheEn = 0
 
 $pi_USER_INT_obj = FALSE
 
 $pi_checkCHash = FALSE
 
 $conf = array()
 
 $pi_EPtemp_cObj
 
 $pi_tmpPageId = 0
 

Protected Member Functions

 getImgColumnRelations ($conf, $colCount)
 
 getImgColumnWidths ($conf, $colCount, $netW)
 
 initializeCurrentFileInContentObjectRenderer ($fileUid, $treatAsReference)
 
 beautifyFileLink (array $links, $fileName, $useSpaces=FALSE, $cutFileExtension=FALSE)
 
 addPageStyle ($selector, $declaration)
 
 getResourceFactory ()
 
- Protected Member Functions inherited from TYPO3\CMS\Frontend\Plugin\AbstractPlugin
 applyStdWrapRecursive (array $conf, $level=0)
 

Additional Inherited Members

- Protected Attributes inherited from TYPO3\CMS\Frontend\Plugin\AbstractPlugin
 $LOCAL_LANG_UNSET = array()
 

Detailed Description

Plugin class - instantiated from TypoScript. Rendering some content elements from tt_content table.

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 26 of file CssStyledContentController.php.

Member Function Documentation

◆ addPageStyle()

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::addPageStyle (   $selector,
  $declaration 
)
protected

Add a style to the page, specific for this page

The selector can be a contextual selector, like '#id .class p' The presence of the selector is checked to avoid multiple entries of the same selector.

Parameters
string$selectorThe selector
string$declarationThe declaration
Returns
void

Definition at line 1249 of file CssStyledContentController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\getImgColumnWidths(), TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\getTableAttributes(), and TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\renderSpace().

◆ beautifyFileLink()

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::beautifyFileLink ( array  $links,
  $fileName,
  $useSpaces = FALSE,
  $cutFileExtension = FALSE 
)
protected

Returns a link text string which replaces underscores in filename with blanks.

Has the possibility to cut off FileType.

Parameters
array$links
string$fileName
boolean$useSpaces
boolean$cutFileExtension
Returns
array modified array with new link text

Definition at line 1163 of file CssStyledContentController.php.

Referenced by TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\render_uploads().

◆ getImgColumnRelations()

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::getImgColumnRelations (   $conf,
  $colCount 
)
protected

Returns an array containing width relations for $colCount columns.

Tries to use "colRelations" setting given by TS. uses "1:1" column relations by default.

Parameters
array$confTS configuration for img
integer$colCountnumber of columns
Returns
array

Definition at line 376 of file CssStyledContentController.php.

References TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\$conf, and TYPO3\CMS\Core\Utility\GeneralUtility\devLog().

Referenced by TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\getImgColumnWidths().

◆ getImgColumnWidths()

◆ getResourceFactory()

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::getResourceFactory ( )
protected

◆ getTableAttributes()

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::getTableAttributes (   $conf,
  $type 
)

Returns table attributes for uploads / tables.

Parameters
array$confTypoScript configuration array
integer$typeThe "layout" type
Returns
array Array with attributes inside.
Todo:
Define visibility

Definition at line 1184 of file CssStyledContentController.php.

References TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\$conf, $GLOBALS, TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\addPageStyle(), and TYPO3\CMS\Frontend\Plugin\AbstractPlugin\pi_getFFvalue().

Referenced by TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\render_uploads().

◆ hookRequest()

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::hookRequest (   $functionName)

◆ initializeCurrentFileInContentObjectRenderer()

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::initializeCurrentFileInContentObjectRenderer (   $fileUid,
  $treatAsReference 
)
protected

Loads the file / file reference object and sets it in the currentFile property of the ContentObjectRenderer.

This makes the file data available during image rendering.

Parameters
int$fileUidThe UID of the file or file reference (depending on $treatAsReference) that should be loaded.
bool$treatAsReferenceIf TRUE the given UID will be used to load a file reference otherwise it will be used to load a regular file.
Returns
void

Definition at line 1096 of file CssStyledContentController.php.

References TYPO3\CMS\Core\Resource\ResourceFactory\getInstance().

Referenced by TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\getImgColumnWidths().

◆ render_bullets()

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::render_bullets (   $content,
  $conf 
)

Rendering the "Bulletlist" type content element, called from TypoScript (tt_content.bullets.20)

Parameters
string$contentContent input. Not used, ignore.
array$confTypoScript configuration
Returns
string HTML output.

Definition at line 65 of file CssStyledContentController.php.

References TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\$conf, TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\hookRequest(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ render_table()

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::render_table (   $content,
  $conf 
)

◆ render_uploads()

◆ renderSpace()

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::renderSpace (   $content,
array  $configuration 
)

Add top or bottom margin to the content element

Constructs and adds a class to the content element. This class selector and its declaration are added to the specific page styles.

Parameters
string$contentContent input. Not used, ignore.
array$configurationTypoScript configuration
Returns
string The class name

Definition at line 1120 of file CssStyledContentController.php.

References TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\addPageStyle(), and TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\hookRequest().

Member Data Documentation

◆ $conf

◆ $extKey

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::$extKey = 'css_styled_content'

The extension key

Todo:
Define visibility

Definition at line 47 of file CssStyledContentController.php.

◆ $prefixId

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::$prefixId = 'tx_cssstyledcontent_pi1'

Same as class name

Todo:
Define visibility

Definition at line 33 of file CssStyledContentController.php.

◆ $scriptRelPath

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::$scriptRelPath = 'pi1/class.tx_cssstyledcontent_pi1.php'

Path to this script relative to the extension dir.

Todo:
Define visibility

Definition at line 40 of file CssStyledContentController.php.