staff_service.php 466 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. class staff_service {
  3. private $staff;
  4. private $XDeode;
  5. function __construct() {
  6. Doo::loadClass ( 'XDeode' );
  7. $this->XDeode = new XDeode ( 9 );
  8. Doo::loadModel ( 'cld/staff_cld' );
  9. $this->staff = new staff_cld ();
  10. }
  11. public function GetStaffCategoryId($categoryId=0){
  12. if (!is_numeric($categoryId)){
  13. $categoryId=$this->XDeode->decode($categoryId);
  14. }
  15. $list=$this->staff->GetCategoryId($categoryId);
  16. return $list;
  17. }
  18. }
  19. ?>