CreateObject("UserAgent", "A User Agent that can determine what browser or client the guest is using to access the Web site.", array ( new TenantObjectInstanceProperty("Name"), new TenantObjectInstanceProperty("Value") )); $objUserAgentBehavior = $tenant->CreateObject("UserAgentBehavior", "The behavior to use when determining whether a list of user agents is allowed (whitelist) or denied (blacklist).", array ( new TenantObjectInstanceProperty("Name") )); $propUserAgents = new TenantObjectInstanceProperty("UserAgents", DataType::GetByName("MultipleInstance"), new MultipleInstanceProperty(array(), array($objUserAgent))); $propUserAgents->Description = "If one or more UserAgents are specified in this property, depending on the UserAgentBehavior this PageSection will display ONLY on these UserAgents."; $propUserAgentBehavior = new TenantObjectInstanceProperty("UserAgentBehavior", DataType::GetByName("SingleInstance"), new SingleInstanceProperty(array(), array($objUserAgentBehavior))); $objPageSection = $tenant->CreateObject("PageSection", "Represents a section of a Page on the tenant. Sections can be assigned to one or more Pages, and can be duplicated within the same Page.", array ( new TenantObjectInstanceProperty("Name"), new TenantObjectInstanceProperty("Content"), $propUserAgents, $propUserAgentBehavior )); $object = $tenant->CreateObject("Page", "Represents an individual Page on the tenant. Pages have URLs (such as ~/dashboard or ~/account/login) and host one or more PageSections.", array ( // property name, data type, default value, value required?, enumeration, require choice from enumeration? new TenantObjectInstanceProperty("Name"), new TenantObjectInstanceProperty("URL"), new TenantObjectInstanceProperty("Sections", DataType::GetByName("MultipleInstance"), new MultipleInstanceProperty(array(), array($objPageSection))) )); $instSectGuestMainPageDashboardPanel = $objPageSection->CreateInstance(array ( new TenantObjectInstancePropertyValue("Name", "GuestMainPageDashboardPanel"), new TenantObjectInstancePropertyValue("Content", <<<'EOD' GetObject("GuestMainPageDashboardPost"); $posts = $objDashboardPost->GetInstances(); if (count($posts) == 0) { ?>