protected function setCategoryGroup($category_group_id)
    {
        $this->data_category_group = array();

        if (is_numeric($category_group_id)) {

            $conditions = array(
                'language' => 'und',
                'category_group_id' => $category_group_id
            );

            $this->data_category_group = $this->category_group->get($conditions);

            if (empty($this->data_category_group)) {
                $this->outputHttpStatus(404);
            }

            $this->prepareCategoryGroup($this->data_category_group);
        }
    }
protected function setCategoryGroup($category_group_id)
    {
        $this->data_category_group = array();

        if (is_numeric($category_group_id)) {

            $conditions = array(
                'language' => 'und',
                'category_group_id' => $category_group_id
            );

            $this->data_category_group = $this->category_group->get($conditions);

            if (empty($this->data_category_group)) {
                $this->outputHttpStatus(404);
            }

            $this->prepareCategoryGroup($this->data_category_group);
        }
    }
protected function setCategoryGroup ( $ category_group_id ) { $ this -> data_category_group = array ( ) ; if ( is_numeric ( $ category_group_id ) ) { $ conditions = array ( 'language' => 'und' , 'category_group_id' => $ category_group_id ) ; $ this -> data_category_group = $ this -> category_group -> get ( $ conditions ) ; if ( empty ( $ this -> data_category_group ) ) { $ this -> outputHttpStatus ( 404 ) ; } $ this -> prepareCategoryGroup ( $ this -> data_category_group ) ; } }
Sets the category group data
@param integer $category_group_id
Sets the category group data