protected function setChildrenCategory()
    {
        $this->data_children = array();

        foreach ($this->data_categories as $item) {
            if (in_array($this->data_category['category_id'], $item['parents'])) {
                $this->data_children[] = $item;
            }
        }
    }
protected function setChildrenCategory()
    {
        $this->data_children = array();

        foreach ($this->data_categories as $item) {
            if (in_array($this->data_category['category_id'], $item['parents'])) {
                $this->data_children[] = $item;
            }
        }
    }
protected function setChildrenCategory ( ) { $ this -> data_children = array ( ) ; foreach ( $ this -> data_categories as $ item ) { if ( in_array ( $ this -> data_category [ 'category_id' ] , $ item [ 'parents' ] ) ) { $ this -> data_children [ ] = $ item ; } } }
Sets an array of children categories for the given category
Sets an array of children categories for the given category