Project

General

Profile

Bug #16236 » bug_3666.diff

Administrator Admin, 2006-11-17 21:03

View differences:

t3lib/class.t3lib_treeview.php (Arbeitskopie)
// For record trees:
var $ids = Array(); // one-dim array of the uid's selected.
var $ids_hierarchy = array(); // The hierarchy of element uids
var $orig_ids_hierarchy = array(); // The hierarchy of versioned element uids
var $buffer_idH = array(); // Temporary, internal array
// For FOLDER trees:
......
/**
* Resets the tree, recs, ids, and ids_hierarchy internal variables. Use it if you need it.
* Resets the tree, recs, ids, ids_hierarchy and orig_ids_hierarchy internal variables. Use it if you need it.
*
* @return void
*/
......
$this->recs = array();
$this->ids = array();
$this->ids_hierarchy = array();
$this->orig_ids_hierarchy = array();
}
......
// Buffer for id hierarchy is reset:
$this->buffer_idH=array();
// Init vars
$depth=intval($depth);
$HTML='';
......
}
// Accumulate the id of the element in the internal arrays
$this->ids[]=$idH[$row['uid']]['uid'] = $row['uid'];
$this->ids[] = $idH[$row['uid']]['uid'] = $row['uid'];
$this->ids_hierarchy[$depth][] = $row['uid'];
$this->orig_ids_hierarchy[$depth][] = $row['_ORIG_uid'] ? $row['_ORIG_uid'] : $row['uid'];
// Make a recursive call to the next level
$HTML_depthData = $depthData.'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/ol/'.$LN.'.gif','width="18" height="16"').' alt="" />';
typo3/mod/web/perm/index.php (Arbeitskopie)
// Traverse the number of levels we want to allow recursive setting of permissions for:
for ($a=$this->getLevels;$a>0;$a--) {
if (is_array($tree->ids_hierarchy[$a])) {
foreach($tree->ids_hierarchy[$a] as $theId) {
if (is_array($tree->orig_ids_hierarchy[$a])) {
foreach($tree->orig_ids_hierarchy[$a] as $theId) {
if ($GLOBALS['BE_USER']->isAdmin() || $GLOBALS['BE_USER']->user['uid']==$tree->recs[$theId]['perms_userid']) {
$theIdListArr[]=$theId;
}
(2-2/2)