コード例 #1
0
ファイル: Users.php プロジェクト: kaibosh/nZEDb
 /**
  * Get list of category names excluded by the user.
  *
  * @param int $userID ID of the user.
  *
  * @return array
  */
 public function getCategoryExclusionNames($userID)
 {
     $data = $this->getCategoryExclusion($userID);
     $category = new Category(['Settings' => $this->pdo]);
     $categories = $category->getByIds($data);
     $ret = [];
     if ($categories !== false) {
         foreach ($categories as $cat) {
             $ret[] = $cat["title"];
         }
     }
     return $ret;
 }