public function getFlowUp($id, $where = [])
    {
        $q = ['pid' => $id];
        $res = [];

        while ($q['pid']) {
            $res[] = $q = q_assoc_row($this->getSQL($this->columns, '`t`.`id`="' . $q['pid'] . '"' . ($where ? ' AND ' . implode(' AND ', $where) : NULL) . ''));
        }

        return array_reverse($res);
    }
public function getFlowUp($id, $where = [])
    {
        $q = ['pid' => $id];
        $res = [];

        while ($q['pid']) {
            $res[] = $q = q_assoc_row($this->getSQL($this->columns, '`t`.`id`="' . $q['pid'] . '"' . ($where ? ' AND ' . implode(' AND ', $where) : NULL) . ''));
        }

        return array_reverse($res);
    }
public function getFlowUp ( $ id , $ where = [ ] ) { $ q = [ 'pid' => $ id ] ; $ res = [ ] ; while ( $ q [ 'pid' ] ) { $ res [ ] = $ q = q_assoc_row ( $ this -> getSQL ( $ this -> columns , '`t`.`id`="' . $ q [ 'pid' ] . '"' . ( $ where ? ' AND ' . implode ( ' AND ' , $ where ) : NULL ) . '' ) ) ; } return array_reverse ( $ res ) ; }
Get recursive from childe to top parent
@param int $id
@param array $where
@return array
Get recursive from childe to top parent