where("k", $k)->first()?->v; return $v; } public static function _list($sThisName) { $oSelf = self::where("this_name", $sThisName)->get(); return self::_filterList($oSelf); } // public static function _limit($sThisName, $iSkip, $iTake) // { // $oSelf = self::where("this_name", $sThisName)->skip($iSkip)->take($iTake)->get(); // // return self::__filterList($oSelf); // } public static function _filter($oOption) { $arr = []; $arr[$oOption->this_name."#".$oOption->k] = $oOption->v; return $arr; } public static function _filterList($oOption) { $arr = []; foreach ($oOption as $oOptionRow) { $arr[] = self::_filter($oOptionRow); } return $arr; } }