cms->staticBlock中实现 * @author Terry Zhao <2358269014@qq.com> * @since 1.0 */ class StaticBlock extends Service { /** * @param $key|array */ public function getByKey($key, $lang = '') { if (!$lang) { $lang = Yii::$service->store->currentLanguage; } if (!$lang) { throw new InvalidValueException('language is empty'); } } /** * @param $_id | Int * get StaticBlock one data by $_id. */ public function getById($_id) { } /** * @param $filter | Array * get StaticBlock collections by $filter . */ public function getStaticBlockList($filter) { } }