24 lines
555 B
PHP
Executable File
24 lines
555 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
|
include dirname(dirname(dirname(__FILE__))) . '/class/productplan.class.php';
|
|
|
|
/**
|
|
|
|
title=productpanModel->getChildren();
|
|
cid=1
|
|
pid=1
|
|
|
|
这里统计了取出所有的数量 >> 61
|
|
这里统计不存在的情况 >> 1
|
|
|
|
*/
|
|
$plan = new productPlan('admin');
|
|
|
|
$planid = array();
|
|
$planid[0] = 0;
|
|
$planid[1] = 1;
|
|
|
|
r($plan->getChildren(0)) && p() && e('61'); //这里统计了取出所有的数量
|
|
r($plan->getChildren(1)) && p() && e('1'); //这里统计不存在的情况
|
|
?>
|