public function getPostType($lang = "", $categoryID)
    {
        $result = DB::table('categories')
            ->join('post_type', 'post_type.postTypeID', 'categories.postTypeID')
            ->where('categoryID', $categoryID)
            ->first();
        return array('list' => $result);
    }
public function getPostType($lang = "", $categoryID)
    {
        $result = DB::table('categories')
            ->join('post_type', 'post_type.postTypeID', 'categories.postTypeID')
            ->where('categoryID', $categoryID)
            ->first();
        return array('list' => $result);
    }
public function getPostType ( $ lang = "" , $ categoryID ) { $ result = DB :: table ( 'categories' ) -> join ( 'post_type' , 'post_type.postTypeID' , 'categories.postTypeID' ) -> where ( 'categoryID' , $ categoryID ) -> first ( ) ; return array ( 'list' => $ result ) ; }
Get post type by category id.

@param  string $lang
@param  int    $categoryID
@return array
Get post type by category id .