-
-
/*** - @ サブカラム ID 番号を取得
- @ bbs.it-home.org
- @ 2013/2/26
- */
- プライベート関数sonCategoryIds($categoryID)
- {
- //@初期化栏目数组
- $array[] = $categoryID;
-
- do
- {
- $ids = '';
- $temp = $this->mysql->select('SELECT `id` FROM `pcb_article_category` WHERE `parentID` IN (' . $categoryID . ')') ;
- foreach ($temp as $v)
- {
- $array[] = $v['id'];
- $ids .= ',' . $v['id'];
- }
- $ids = substr($ids, 1, strlen($ids));
- $categoryID = $ids;
- }
- while (!empty($temp));< /p>
$ids = implode(',', $array); -
- return $ids;
- }
- ?>
-
复制代
|