nodeService.php 582 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * nodeService类
  4. * @author Deben Chen
  5. */
  6. class nodeService extends Service {
  7. /**
  8. * @var nodeDao
  9. */
  10. private $nodeDao;
  11. public function __construct(){
  12. parent::__construct();
  13. $this->nodeDao = InitPHP::getDao("node");
  14. }
  15. /**
  16. * 获取所有的节点信息
  17. * @return Ambigous <number, multitype:multitype: >
  18. */
  19. public function getAllNode(){
  20. return $this->nodeDao->getAllNode();
  21. }
  22. /**
  23. * 根据id获取节点信息
  24. * @param unknown $id
  25. */
  26. public function getNodeById($id){
  27. return $this->nodeDao->getNodeById($id);
  28. }
  29. }