protected function checkListParents($update = true)
    {
        if (empty($this->getModelInformation()->list->parents)) {
            return $this;
        }

        $this->retrieveActiveParentFromSession();
        $this->collectListParentHierarchy();

        if ($update) {
            $this->updateActiveParent();
        }

        $this->enrichListParents();

        return $this;
    }
protected function checkListParents($update = true)
    {
        if (empty($this->getModelInformation()->list->parents)) {
            return $this;
        }

        $this->retrieveActiveParentFromSession();
        $this->collectListParentHierarchy();

        if ($update) {
            $this->updateActiveParent();
        }

        $this->enrichListParents();

        return $this;
    }
protected function checkListParents ( $ update = true ) { if ( empty ( $ this -> getModelInformation ( ) -> list -> parents ) ) { return $ this ; } $ this -> retrieveActiveParentFromSession ( ) ; $ this -> collectListParentHierarchy ( ) ; if ( $ update ) { $ this -> updateActiveParent ( ) ; } $ this -> enrichListParents ( ) ; return $ this ; }
Checks and loads list parent from the session.

@param bool $update  whether to check for updates through the 'parent' request param
@return $this
Checks and loads list parent from the session .