-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c06a21
commit 9d7d96f
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,15 @@ | |
* Created by Maxim Omelchenko <[email protected]> | ||
* on 24.12.2014 at 13:23 | ||
*/ | ||
use samsoncms\api\Navigation; | ||
use samsoncms\api\NavigationMaterial; | ||
|
||
/** | ||
* Class FieldMaterialTable | ||
* @author Maxim Omelchenko <[email protected]> | ||
* @package samsoncms\input\material | ||
*/ | ||
class FieldMaterialTable extends \samsoncms\app\material\Table | ||
class FieldMaterialTable extends \samson\cms\web\material\Table | ||
{ | ||
/** Table rows count */ | ||
const ROWS_COUNT = 10; | ||
|
@@ -49,7 +51,7 @@ class FieldMaterialTable extends \samsoncms\app\material\Table | |
* @param string $search Keywords to search in materials | ||
* @param string $page Current table page number | ||
*/ | ||
public function __construct(\samson\cms\Navigation & $structure = null, $search = null, $page = null) | ||
public function __construct(Navigation & $structure = null, $search = null, $page = null) | ||
{ | ||
// Call parent constructor | ||
parent::__construct($structure, $search, $page); | ||
|
@@ -65,7 +67,7 @@ public function queryHandler() | |
$materialIds = array(); | ||
|
||
// Fill our recently declared array | ||
$matIdQuery = dbQuery('samson\cms\CMSNavMaterial'); | ||
$matIdQuery = dbQuery(NavigationMaterial::class); | ||
if (!empty($this->nav)) { | ||
|
||
$childStructures = array($this->nav->id); | ||
|