예제 #1
0
파일: Blog.php 프로젝트: pixel418/blogartiq
 protected function groupArticles($articles, $index)
 {
     \UArray::doGroupBy($articles, $index);
     foreach ($articles as $key => $groupedArticles) {
         $articles[$key] = [];
         $articles[$key]['id'] = \UString::stripSpecialChar($key);
         $articles[$key]['name'] = $key;
         $articles[$key]['articles'] = $groupedArticles;
     }
     return $articles;
 }