Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

ext_posMap Class Reference

Inherits t3lib_positionMap, and t3lib_positionMap.

List of all members.

Public Member Functions

 wrapRecordTitle ($str, $row)
 Wrapping the title of the record.
 wrapColumnHeader ($str, $vv)
 Wrapping the column header.
 onClickInsertRecord ($row, $vv, $moveUid, $pid)
 Create on-click event value.
 wrapRecordHeader ($str, $row)
 Wrapping the record header (from getRecordHeader()).
 wrapRecordTitle ($str, $row)
 Wrapping the title of the record - here we just return it.
 onClickInsertRecord ($row, $vv, $moveUid, $pid, $sys_lang=0)
 Create on-click event value.

Public Attributes

 $dontPrintPageInsertIcons = 1
 $l_insertNewRecordHere = 'newContentElement'


Member Function Documentation

ext_posMap::onClickInsertRecord row,
vv,
moveUid,
pid,
sys_lang = 0
 

Create on-click event value.

Parameters:
array The record.
string Column position value.
integer Move uid
integer PID value.
integer System language
Returns:
string

Reimplemented from t3lib_positionMap.

Definition at line 124 of file db_new_content_el.php.

00124                                                                     {
00125       $table='tt_content';
00126 
00127       $location=$this->backPath.'alt_doc.php?edit[tt_content]['.(is_array($row)?-$row['uid']:$pid).']=new&defVals[tt_content][colPos]='.$vv.'&defVals[tt_content][sys_language_uid]='.$sys_lang.'&returnUrl='.rawurlencode($GLOBALS['SOBE']->R_URI);
00128 
00129       return 'document.location=\''.$location.'\'+document.editForm.defValues.value; return false;';
00130    }

ext_posMap::onClickInsertRecord row,
vv,
moveUid,
pid
 

Create on-click event value.

Parameters:
array The record.
string Column position value.
integer Move uid
integer PID value.
Returns:
string

Definition at line 144 of file db_layout.php.

00144                                                         {
00145       $table='tt_content';
00146       if (is_array($row))  {
00147          $location=$GLOBALS['SOBE']->local_linkThisScript(array('edit_record'=>'tt_content:new/-'.$row['uid'].'/'.$row['colPos']));
00148       } else {
00149          $location=$GLOBALS['SOBE']->local_linkThisScript(array('edit_record'=>'tt_content:new/'.$pid.'/'.$vv));
00150       }
00151       return 'jumpToUrl(\''.$location.'\');return false;';
00152    }

ext_posMap::wrapColumnHeader str,
vv
 

Wrapping the column header.

Parameters:
string Header value
string Column info.
Returns:
string
See also:
printRecordMap()

Reimplemented from t3lib_positionMap.

Definition at line 130 of file db_layout.php.

00130                                        {
00131       $aOnClick = 'jumpToUrl(\''.$GLOBALS['SOBE']->local_linkThisScript(array('edit_record'=>'_EDIT_COL:'.$vv)).'\');return false;';
00132       return '<a href="#" onclick="'.htmlspecialchars($aOnClick).'">'.$str.'</a>';
00133    }

ext_posMap::wrapRecordHeader str,
row
 

Wrapping the record header (from getRecordHeader()).

Parameters:
string HTML content
array Record array.
Returns:
string HTML content

Reimplemented from t3lib_positionMap.

Definition at line 161 of file db_layout.php.

00161                                           {
00162       if ($row['uid']==$this->moveUid) {
00163          return '<img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/content_client.gif','width="7" height="10"').' alt="" />'.$str;
00164       } else return $str;
00165    }

ext_posMap::wrapRecordTitle str,
row
 

Wrapping the title of the record - here we just return it.

Parameters:
string The title value.
array The record row.
Returns:
string Wrapped title string.

Reimplemented from t3lib_positionMap.

Definition at line 110 of file db_new_content_el.php.

00110                                        {
00111       return $str;
00112    }

ext_posMap::wrapRecordTitle str,
row
 

Wrapping the title of the record.

Parameters:
string The title value.
array The record row.
Returns:
string Wrapped title string.

Reimplemented from t3lib_positionMap.

Definition at line 117 of file db_layout.php.

00117                                        {
00118       $aOnClick = 'jumpToUrl(\''.$GLOBALS['SOBE']->local_linkThisScript(array('edit_record'=>'tt_content:'.$row['uid'])).'\');return false;';
00119       return '<a href="#" onclick="'.htmlspecialchars($aOnClick).'">'.$str.'</a>';
00120    }


Member Data Documentation

ext_posMap::$dontPrintPageInsertIcons = 1
 

Reimplemented from t3lib_positionMap.

Definition at line 101 of file db_new_content_el.php.

ext_posMap::$l_insertNewRecordHere = 'newContentElement'
 

Reimplemented from t3lib_positionMap.

Definition at line 108 of file db_layout.php.


The documentation for this class was generated from the following files:
Generated on Sun Oct 3 01:06:24 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913