Booking.php 924 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Created by JetBrains PhpStorm.
  4. * User: charlie
  5. * Date: 13-11-29
  6. * Time: 下午4:47
  7. * 服务项目预订
  8. */
  9. class Booking extends MongoAr
  10. {
  11. public $_id;
  12. public $status = 0; //状态
  13. public $master;//对应的Master
  14. public $service_item;//对应的Serive_Item
  15. public $title;//标题
  16. public $avatar = ''; //头像七牛的地址
  17. public $city_info = array();
  18. public $desc='';//简介
  19. public $pics=array();//相册
  20. public $prize;
  21. public static $status_option = array(
  22. 1 => array('name' => '正常', 'color' => 'green'),
  23. 0 => array('name' => '暂停服务', 'color' => 'blue'),
  24. -1 => array('name' => '删除', 'color' => 'red')
  25. );
  26. public static function model($className=__CLASS__)
  27. {
  28. return parent::model($className);
  29. }
  30. public function getCollectionName()
  31. {
  32. return 'booking';
  33. }
  34. }