#!/usr/bin/env php program = $tester->loadModel('program'); } public function getParentPairs() { return $this->program->getParentPairs(); } public function getCount() { return count($this->program->getParentPairs()); } } $t = new Tester('admin'); /* Count(). */ r($t->getCount()) && p() && e('11'); // /* GetParentPairs(). */ r($t->getParentPairs()) && p('1') && e(''); // 获取父项目集的id/name关联数组