| 123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * nodeService类
- * @author Deben Chen
- */
- class nodeService extends Service {
- /**
- * @var nodeDao
- */
- private $nodeDao;
- public function __construct(){
- parent::__construct();
- $this->nodeDao = InitPHP::getDao("node");
- }
- /**
- * 获取所有的节点信息
- * @return Ambigous <number, multitype:multitype: >
- */
- public function getAllNode(){
- return $this->nodeDao->getAllNode();
- }
- /**
- * 根据id获取节点信息
- * @param unknown $id
- */
- public function getNodeById($id){
- return $this->nodeDao->getNodeById($id);
- }
- }
|