| 123456789101112131415161718192021222324252627282930 |
- <?php
- Doo::loadCore('db/DooModel');
- class UpgradeLogs extends DooModel {
- public $id;
- public $hid;
- public $scondition;
- public $version;
- public $jsondata;
- public $created_at;
- public $updated_at;
- public $_table = 'sfu_upgradelogs';
- public $_primarykey = 'id';
- public $_fields = array('id', 'hid', 'scondition', 'version', 'jsondata', 'created_at', 'updated_at');
- public function __construct() {
- parent::setupModel(__CLASS__);
- }
- public function getRowLast($id){
- return $this->getOne(array('where' => 'hid='.$id, 'desc' => 'id', 'asArray' => TRUE));
- }
- public function getRowbyhidcond($hid,$condition){
- return $this->getOne(array('where' => 'hid=? and scondition=?', 'param' => array($hid,$condition), 'asArray' => TRUE));
- }
- }
|