Files
blog-source/var/Widget/Metas/Category/InitTreeRowsTrait.php
2026-03-04 00:23:03 +08:00

22 lines
347 B
PHP
Executable File

<?php
namespace Widget\Metas\Category;
use Typecho\Db\Exception;
/**
* Trait InitTreeRowsTrait
*/
trait InitTreeRowsTrait
{
/**
* @return array
* @throws Exception
*/
protected function initTreeRows(): array
{
return $this->db->fetchAll($this->select()
->where('type = ?', 'category'));
}
}