1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- /**
- * 店铺导航模型
- *
- *
- *
- *
-
- */
- defined('InShopNC') or exit('Access Invalid!');
- class store_navigationModel extends Model{
- public function __construct(){
- parent::__construct('store_navigation');
- }
- /**
- * 读取列表
- * @param array $condition
- *
- */
- public function getStoreNavigationList($condition, $page='', $order='', $field='*') {
- $result = $this->field($field)->where($condition)->page($page)->order($order)->select();
- return $result;
- }
- /**
- * 读取单条记录
- * @param array $condition
- *
- */
- public function getStoreNavigationInfo($condition) {
- $result = $this->where($condition)->find();
- return $result;
- }
- /*
- * 增加
- * @param array $param
- * @return bool
- */
- public function addStoreNavigation($param){
- return $this->insert($param);
- }
-
- /*
- * 更新
- * @param array $update
- * @param array $condition
- * @return bool
- */
- public function editStoreNavigation($update, $condition){
- return $this->where($condition)->update($update);
- }
-
- /*
- * 删除
- * @param array $condition
- * @return bool
- */
- public function delStoreNavigation($condition){
- return $this->where($condition)->delete();
- }
-
- }
|