public function init()
 {
     parent::init();
     $objCategory = new SC_Helper_Category_Ex();
     $this->arrCommonCategory = $objCategory->getList(true);
     $this->arrCommonCategoryTree = $objCategory->getTree();
     $this->arrCommonCategoryList = array();
     foreach ($this->arrCommonCategoryTree as $tree) {
         if (is_array($tree["children"]) && count($tree["children"]) > 0) {
             foreach ($tree["children"] as $stree) {
                 $this->arrCommonCategoryList[$stree["category_id"]] = array($tree["category_name"], $stree["category_name"]);
                 $this->arrCommonCategoryList[$stree["category_id"]] = implode(" > ", $this->arrCommonCategoryList[$stree["category_id"]]);
             }
         } else {
             $this->arrCommonCategoryList[$tree["category_id"]] = $tree["category_name"];
         }
     }
 }
Example #2
0
 /**
  * デストラクタ.
  *
  * @return void
  */
 function destroy()
 {
     parent::destroy();
 }