Line 173... |
Line 173... |
173 |
// which level (zero based) we are in the menu (level = 0 is top menu)
|
173 |
// which level (zero based) we are in the menu (level = 0 is top menu)
|
174 |
protected $menuBlockString = '<ul class="menu"><menublock></ul>';
|
174 |
protected $menuBlockString = '<ul class="menu"><menublock></ul>';
|
175 |
|
175 |
|
176 |
// simply pass fields on to DBHierarchicalHash so it can load and parse the table
|
176 |
// simply pass fields on to DBHierarchicalHash so it can load and parse the table
|
177 |
public function __construct ($tableName = 'menu', $idFieldName = 'id', $parentFieldName = 'parent_id', $recordList = null ) {
|
177 |
public function __construct ($tableName = 'menu', $idFieldName = 'id', $parentFieldName = 'parent_id', $recordList = null ) {
|
178 |
parent::__construct($tableName, $idFieldName, $parentFieldName, $recordList );
|
178 |
parent::__construct($tableName, $idFieldName, $parentFieldName, 0, $recordList );
|
179 |
}
|
179 |
}
|
180 |
|
180 |
|
181 |
// simple setter/getter for the caption column name in table
|
181 |
// simple setter/getter for the caption column name in table
|
182 |
public function captionColumnName ( $newValue = '' ) {
|
182 |
public function captionColumnName ( $newValue = '' ) {
|
183 |
if ($newValue) {
|
183 |
if ($newValue) {
|