29 lines
673 B
PHP
29 lines
673 B
PHP
<?php
|
|
|
|
namespace App\Backend;
|
|
|
|
abstract class BaseHierarchyBackend extends BaseBackend
|
|
{
|
|
public function __construct(string $className)
|
|
{
|
|
parent::__construct($className);
|
|
}
|
|
//ContentField
|
|
final public function getContentField()
|
|
{
|
|
return $this->_model->getContentField();
|
|
}
|
|
//Reply관련
|
|
public function reply($entity, array $fieldDatas)
|
|
{
|
|
return $this->_model->reply($entity, $fieldDatas);
|
|
}
|
|
//View관련
|
|
public function view($entity)
|
|
{
|
|
// view_cnt에 추가하기위함
|
|
$this->_model->increaseViewCount($entity->getPrimaryKey());
|
|
return parent::view($entity);
|
|
}
|
|
}
|