TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
CssStyledContentController Class Reference
Inheritance diagram for CssStyledContentController:
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 AbstractPlugin
 pi_setPiVarDefaults ()
 
 pi_getPageLink ($id, $target= '', $urlParameters=array())
 
 pi_linkToPage ($str, $id, $target= '', $urlParameters=array())
 
 pi_linkTP ($str, $urlParameters=array(), $cache=false, $altPageId=0)
 
 pi_linkTP_keepPIvars ($str, $overrulePIvars=array(), $cache=false, $clearAnyway=false, $altPageId=0)
 
 pi_linkTP_keepPIvars_url ($overrulePIvars=array(), $cache=false, $clearAnyway=false, $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=array(), $tablename= '', $label= '', $conf=array())
 
 pi_getEditIcon ($content, $fields, $title= '', $row=array(), $tablename= '', $oConf=array())
 
 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 = array()
 
- Public Attributes inherited from 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 AbstractPlugin
 applyStdWrapRecursive (array $conf, $level=0)
 

Additional Inherited Members

- Protected Attributes inherited from AbstractPlugin
 $LOCAL_LANG_UNSET = array()
 
 $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 (   $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 1258 of file CssStyledContentController.php.

Referenced by CssStyledContentController\getTableAttributes(), and CssStyledContentController\renderSpace().

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 1170 of file CssStyledContentController.php.

References GeneralUtility\logDeprecatedFunction().

Referenced by CssStyledContentController\render_uploads().

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 380 of file CssStyledContentController.php.

References CssStyledContentController\$conf, and GeneralUtility\devLog().

Referenced by CssStyledContentController\getImgColumnWidths().

getImgColumnWidths (   $conf,
  $colCount,
  $netW 
)
protected

Returns an array containing the image widths for an image row with $colCount columns.

Parameters
array$confTS configuration of img
int$colCountnumber of columns
int$netWmax usable width for images (without spaces and borders)
Returns
array

Definition at line 424 of file CssStyledContentController.php.

References CssStyledContentController\$conf, and CssStyledContentController\getImgColumnRelations().

getResourceFactory ( )
protected

Get the ResourceFactory

Returns

Definition at line 1291 of file CssStyledContentController.php.

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 1192 of file CssStyledContentController.php.

References CssStyledContentController\$conf, CssStyledContentController\addPageStyle(), and AbstractPlugin\pi_getFFvalue().

Referenced by CssStyledContentController\render_uploads().

hookRequest (   $functionName)

Returns an object reference to the hook object if any

Parameters
string$functionNameName of the function you want to call / hook key
Returns
object|NULL Hook object, if any. Otherwise NULL.

Definition at line 1274 of file CssStyledContentController.php.

References $GLOBALS, and GeneralUtility\getUserObj().

Referenced by CssStyledContentController\render_bullets(), CssStyledContentController\render_table(), CssStyledContentController\render_uploads(), and CssStyledContentController\renderSpace().

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 1100 of file CssStyledContentController.php.

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 CssStyledContentController\$conf, CssStyledContentController\hookRequest(), GeneralUtility\logDeprecatedFunction(), and GeneralUtility\trimExplode().

render_table (   $content,
  $conf 
)

Rendering the "Table" type content element, called from TypoScript (tt_content.table.20)

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

Definition at line 101 of file CssStyledContentController.php.

References CssStyledContentController\$conf, elseif, CssStyledContentController\hookRequest(), GeneralUtility\implodeAttributes(), AbstractPlugin\pi_getFFvalue(), AbstractPlugin\pi_initPIflexForm(), and GeneralUtility\trimExplode().

render_uploads (   $content,
  $conf 
)

Rendering the "Filelinks" type content element, called from TypoScript (tt_content.uploads.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 227 of file CssStyledContentController.php.

References CssStyledContentController\$conf, $GLOBALS, CssStyledContentController\beautifyFileLink(), GeneralUtility\getFileAbsFileName(), CssStyledContentController\getTableAttributes(), CssStyledContentController\hookRequest(), GeneralUtility\implodeAttributes(), GeneralUtility\isFirstPartOfStr(), GeneralUtility\logDeprecatedFunction(), AbstractPlugin\pi_getLL(), GeneralUtility\resolveBackPath(), and GeneralUtility\trimExplode().

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 1125 of file CssStyledContentController.php.

References CssStyledContentController\addPageStyle(), and CssStyledContentController\hookRequest().

Member Data Documentation

$conf = array()
$extKey = 'css_styled_content'

Definition at line 45 of file CssStyledContentController.php.

$prefixId = 'tx_cssstyledcontent_pi1'

Definition at line 31 of file CssStyledContentController.php.

$scriptRelPath = 'Classes/Controller/CssStyledContentController.php'

Definition at line 38 of file CssStyledContentController.php.