TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Frontend\ContentObject\OffsetTableContentObject Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\ContentObject\OffsetTableContentObject:
TYPO3\CMS\Frontend\ContentObject\AbstractContentObject tslib_content_OffsetTable tslib_tableOffset

Public Member Functions

 __construct (\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj=NULL)
 
 render ($conf=array())
 
 start ($content, $offset)
 
- Public Member Functions inherited from TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
 __construct (\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj)
 
 render ($conf=array())
 
 getContentObject ()
 

Public Attributes

 $tableParams = 'border="0" cellspacing="0" cellpadding="0"'
 
 $default_tableParams = 'border="0" cellspacing="0" cellpadding="0"'
 
 $tdParams = ' width="99%" valign="top"'
 

Additional Inherited Members

- Protected Attributes inherited from TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
 $cObj
 
 $fileFactory = NULL
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Rendering of tables for offset

Definition at line 19 of file OffsetTableContentObject.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\ContentObject\OffsetTableContentObject::__construct ( \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer  $cObj = NULL)

Override default constructor to make it possible to instantiate this class for rendering an offset table not in content object context

Parameters
\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer$cObj

Definition at line 41 of file OffsetTableContentObject.php.

References TYPO3\CMS\Frontend\ContentObject\AbstractContentObject\$cObj, and TYPO3\CMS\Core\Resource\ResourceFactory\getInstance().

Member Function Documentation

◆ render()

TYPO3\CMS\Frontend\ContentObject\OffsetTableContentObject::render (   $conf = array())

Rendering the cObject, OTABLE

Parameters
array$confArray of TypoScript properties
Returns
string Output

Definition at line 54 of file OffsetTableContentObject.php.

References TYPO3\CMS\Frontend\ContentObject\OffsetTableContentObject\$tableParams, and TYPO3\CMS\Frontend\ContentObject\OffsetTableContentObject\start().

◆ start()

TYPO3\CMS\Frontend\ContentObject\OffsetTableContentObject::start (   $content,
  $offset 
)

Wrapping the input content string in a table which will space it out from top/left/right/bottom

Parameters
string$contentThe HTML content string
string$offsetList of offset parameters; x,y,r,b,w,h
Returns
string The HTML content string being wrapped in a
the content as the $offset parameters defined
Todo:
Define visibility

Definition at line 75 of file OffsetTableContentObject.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\intExplode().

Referenced by TYPO3\CMS\Frontend\ContentObject\OffsetTableContentObject\render().

Member Data Documentation

◆ $default_tableParams

TYPO3\CMS\Frontend\ContentObject\OffsetTableContentObject::$default_tableParams = 'border="0" cellspacing="0" cellpadding="0"'
Todo:
Define visibility

Definition at line 28 of file OffsetTableContentObject.php.

◆ $tableParams

TYPO3\CMS\Frontend\ContentObject\OffsetTableContentObject::$tableParams = 'border="0" cellspacing="0" cellpadding="0"'

◆ $tdParams

TYPO3\CMS\Frontend\ContentObject\OffsetTableContentObject::$tdParams = ' width="99%" valign="top"'
Todo:
Define visibility

Definition at line 33 of file OffsetTableContentObject.php.