提交 4cd4b745 编写于 作者: T Terry

product attrGroup attr service and model

上级 32372590
......@@ -85,5 +85,49 @@ class AttrGroup extends Service
return $this->_attrGroup->getEnableStatus();
}
/**
* get artile's primary key.
*/
protected function actionGetPrimaryKey()
{
return $this->_attrGroup->getPrimaryKey();
}
/**
* get artile model by primary key.
*/
protected function actionGetByPrimaryKey($primaryKey)
{
return $this->_attrGroup->getByPrimaryKey($primaryKey);
}
protected function actionColl($filter = '')
{
return $this->_attrGroup->coll($filter);
}
/**
* @param $one|array , save one data .
* @param $originUrlKey|string , article origin url key.
* save $data to cms model,then,add url rewrite info to system service urlrewrite.
*/
protected function actionSave($one)
{
return $this->_attrGroup->save($one);
}
protected function actionRemove($ids)
{
return $this->_attrGroup->remove($ids);
}
public function getActiveAllColl()
{
return $this->_attrGroup->getActiveAllColl();
}
}
......@@ -21,7 +21,7 @@ interface AttrGroupInterface
public function coll($filter);
public function save($one, $originUrlKey);
public function save($one);
public function remove($ids);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册