This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function select($options=array()) { | |
| $pk = $this->getPk(); | |
| if(is_string($options) || is_numeric($options)) { | |
| // 根据主键查询 | |
| if(strpos($options,',')) { | |
| $where[$pk] = array('IN',$options); | |
| }else{ | |
| $where[$pk] = $options; | |
| } | |
| $options = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Object.defineProperty(instance, key, { | |
| get: function () { | |
| return opts.data[key]; | |
| }, | |
| set: function (val) { | |
| if (Model.allProperties[key].key === true && opts.data[key] != null) { | |
| return; | |
| } | |
| if (!setInstanceProperty(key, val)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Paginator = Backgrid.Extension.Paginator = Backgrid.Extension.Paginator.extend({ | |
| render: function(){ | |
| Paginator.__super__.render.apply(this,arguments); | |
| this.$el.find('ul').addClass('pagination'); | |
| return this; | |
| } | |
| }); |