ClientNotifyModel.php 555 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * 消息通知模型类
  4. * @author jiangfei
  5. * @date 2015-10-16 10:30:00
  6. * @company 上海风车教育有限公司.
  7. */
  8. class ClientNotifyModel extends BusinessActiveRecord{
  9. public static function model($className = __CLASS__){
  10. return parent::model($className);
  11. }
  12. public function tableName(){
  13. return 'client_notify';
  14. }
  15. public function InsertByData($data){
  16. if($this->getDbConnection()->createCommand()->insert('client_notify',$data)){
  17. return true;
  18. }else{
  19. return false;
  20. }
  21. }
  22. }