34 lines
822 B
PHP
34 lines
822 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
/**
|
|
* The common item element class file of zin of ZenTaoPMS.
|
|
*
|
|
* @copyright Copyright 2023 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
|
* @author Hao Sun <sunhao@easycorp.ltd>
|
|
* @package zin
|
|
* @version $Id
|
|
* @link https://www.zentao.net
|
|
*/
|
|
|
|
namespace zin;
|
|
|
|
require_once __DIR__ . DS . 'wg.class.php';
|
|
require_once __DIR__ . DS . 'wg.func.php';
|
|
|
|
class item extends wg
|
|
{
|
|
public function build(): wg
|
|
{
|
|
if($this->parent instanceof wg && method_exists($this->parent, 'onBuildItem'))
|
|
{
|
|
return call_user_func(array($this->parent, 'onBuildItem'), $this);
|
|
}
|
|
return parent::build();
|
|
}
|
|
}
|
|
|
|
function item()
|
|
{
|
|
return new item(func_get_args());
|
|
}
|