<?php

namespace Hura8\Components\Article\AdminController;

use Hura8\Components\Article\Controller\bArticleController;
use Hura8\Interfaces\iEntityAdminController;
use Hura8\Traits\AdminEntityBaseControllerTraits;


class AArticleController  extends bArticleController implements iEntityAdminController
{

    use AdminEntityBaseControllerTraits;


    public function updateTableInfo($item_id, array $new_item_info) {
        if(!$this->isDefaultLanguage()) {
            return $this->iEntityLanguageModel->update($item_id, $new_item_info);
        }

        return $this->objArticleModel->updateTableInfo($item_id, $new_item_info);
    }

}
