public function getStaticContents($force = false) : CNabuSiteStaticContentList
    {
        if (!$this->isBuiltIn() &&
            ($this->nb_site_static_content_list->isEmpty() || $force)
        ) {
            $this->nb_site_static_content_list = CNabuSiteStaticContent::getStaticContentsForSite($this);
            $this->nb_site_static_content_list->sort();
        }

        return $this->nb_site_static_content_list;
    }
public function getStaticContents($force = false) : CNabuSiteStaticContentList
    {
        if (!$this->isBuiltIn() &&
            ($this->nb_site_static_content_list->isEmpty() || $force)
        ) {
            $this->nb_site_static_content_list = CNabuSiteStaticContent::getStaticContentsForSite($this);
            $this->nb_site_static_content_list->sort();
        }

        return $this->nb_site_static_content_list;
    }
public function getStaticContents ( $ force = false ) : CNabuSiteStaticContentList { if ( ! $ this -> isBuiltIn ( ) && ( $ this -> nb_site_static_content_list -> isEmpty ( ) || $ force ) ) { $ this -> nb_site_static_content_list = CNabuSiteStaticContent :: getStaticContentsForSite ( $ this ) ; $ this -> nb_site_static_content_list -> sort ( ) ; } return $ this -> nb_site_static_content_list ; }
Gets the Static Content list associated with this instance.
@param bool $force If true forces to reload entire list from database.
@return CNabuSiteStaticContentList Returns the list instance containing all associated contents.
Gets the Static Content list associated with this instance .