TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController Class Reference
Inheritance diagram for TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController:
TYPO3\CMS\Frontend\Plugin\AbstractPlugin

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=[])
 
 pi_linkToPage ($str, $id, $target='', $urlParameters=[])
 
 pi_linkTP ($str, $urlParameters=[], $cache=false, $altPageId=0)
 
 pi_linkTP_keepPIvars ($str, $overrulePIvars=[], $cache=false, $clearAnyway=false, $altPageId=0)
 
 pi_linkTP_keepPIvars_url ($overrulePIvars=[], $cache=false, $clearAnyway=false, $altPageId=0)
 
 pi_list_linkSingle ($str, $uid, $cache=false, $mergeArr=[], $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=[], $pointerName='pointer', $hscText=true, $forceOutput=false)
 
 pi_list_searchBox ($tableParams='')
 
 pi_list_modeSelector ($items=[], $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=[])
 
 pi_getEditIcon ($content, $fields, $title='', $row=[], $tablename='', $oConf=[])
 
 pi_getLL ($key, $alternativeLabel='', $hsc=false)
 
 pi_exec_query ($table, $count=false, $addWhere='', $mm_cat='', $groupBy='', $orderBy='', $query='')
 
 pi_getRecord ($table, $uid, $checkPage=false)
 
 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 = 'Classes/Controller/CssStyledContentController.php'
 
 $extKey = 'css_styled_content'
 
 $conf = []
 
- Public Attributes inherited from TYPO3\CMS\Frontend\Plugin\AbstractPlugin
 $cObj
 
 $prefixId
 
 $scriptRelPath
 
 $extKey
 
 $piVars
 
 $internal = ['res_count' => 0
 
 $LOCAL_LANG = []
 
 $LOCAL_LANG_charset = []
 
 $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 = []
 
 $pi_autoCacheEn = 0
 
 $pi_USER_INT_obj = false
 
 $pi_checkCHash = false
 
 $conf = []
 
 $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 = []
 
 $frontendController
 
 $databaseConnection
 

Detailed Description

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

Definition at line 24 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 1259 of file CssStyledContentController.php.

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
bool$useSpaces
bool$cutFileExtension
Returns
array modified array with new link text
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8, is done by default in pure TypoScript

Definition at line 1171 of file CssStyledContentController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

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
int$colCountnumber of columns
Returns
array

Definition at line 381 of file CssStyledContentController.php.

References $a, 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
int$typeThe "layout" type
Returns
array Array with attributes inside.

Definition at line 1193 of file CssStyledContentController.php.

References TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\$conf, 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 1101 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.
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8, is done by default in pure TypoScript

Definition at line 64 of file CssStyledContentController.php.

References TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\$conf, TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController\hookRequest(), TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction(), 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 1126 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'

Definition at line 45 of file CssStyledContentController.php.

◆ $prefixId

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

Definition at line 31 of file CssStyledContentController.php.

◆ $scriptRelPath

TYPO3\CMS\CssStyledContent\Controller\CssStyledContentController::$scriptRelPath = 'Classes/Controller/CssStyledContentController.php'

Definition at line 38 of file CssStyledContentController.php.