Skip to content

Commit

Permalink
Update FieldMaterialTable.php
Browse files Browse the repository at this point in the history
  • Loading branch information
getmanenko authored Aug 30, 2016
1 parent 0c06a21 commit 9d7d96f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/FieldMaterialTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 9d7d96f

Please sign in to comment.