Sign in

colleague / study-project · Files

GitLab

  • Back to group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • study-project
  • trunk
  • Message
  • Common
  • Model
  • MessageModel.class.php
  • [留言板]留言信息添加
    ea6fd439
    zhang authored
    2018-10-09 18:53:41 +0800  
    Browse Code »
MessageModel.class.php 457 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?php
namespace Common\Model;

class MessageModel extends AbstractModel
{
    /**
     * 添加留言内容
     * @author <362431947@qq.com>
     * @date   2018-10-09
     * @param  array      $data
     */
    public function addOne(array $data)
    {
        if(! is_array($data)|| ! $data){
            return false;
        }

        $data['created'] = $this->microtime();

        $result = $this->_m->insert($data);

        return $result;
    }
}