* [story#60291,0.5h] add getTableDescList.
This commit is contained in:
@@ -483,6 +483,21 @@ class pivotState
|
||||
return "t{$next}";
|
||||
}
|
||||
|
||||
public function getTableDescList($alias)
|
||||
{
|
||||
$from = $this->sqlBuilder['from'];
|
||||
$joins = $this->sqlBuilder['joins'];
|
||||
$tableDesc = $this->sqlBuilder['tableDesc'];
|
||||
array_unshift($joins, $from);
|
||||
|
||||
foreach($joins as $join)
|
||||
{
|
||||
if($alias == $join['alias'] && isset($tableDesc[$join['table']])) return $tableDesc[$join['table']];
|
||||
}
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear fieldSettings.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user