Files
EasySoft-ZenTaoPMS/test/model/doc/gettoandcclist.php
wangxiaomeng 3aaa5e2a4f edit doc
2022-05-07 15:30:01 +08:00

24 lines
728 B
PHP
Executable File

#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/doc.class.php';
su('admin');
/**
title=测试 docModel->getToAndCcList();
cid=1
pid=1
查询文档type为text的数据 >> admin;
查询文档type为markdown的数据 >>admin;
查询文档type为url的数据 >>admin;
*/
$docID = array('1', '2', '3');
$doc = new docTest();
r($doc->getToAndCcListTest($docID[0])) && p('0;1') && e('admin;'); //查询文档type为text的数据
r($doc->getToAndCcListTest($docID[1])) && p('0;1') && e('admin;'); //查询文档type为markdown的数据
r($doc->getToAndCcListTest($docID[2])) && p('0;1') && e('admin;'); //查询文档type为url的数据