public function createWordPressConnector(ConnectorContainer $parent, $name, $url, ContentType $ct, $page_config) { if (trim($name) == "") { throw new e\CreationErrorException(S_SPAN . c\M::EMPTY_CONNECTOR_NAME . E_SPAN); } if (trim($url) == "") { throw new e\CreationErrorException(S_SPAN . c\M::EMPTY_PAGE_NAME . E_SPAN); } if (trim($page_config) == "") { throw new e\CreationErrorException(S_SPAN . c\M::EMPTY_CONFIGURATION_NAME . E_SPAN); } $asset = AssetTemplate::getWordPressConnector(); $asset->wordPressConnector->name = $name; $asset->wordPressConnector->parentContainerPath = $parent->getPath(); $asset->wordPressConnector->siteName = $parent->getSiteName(); $asset->wordPressConnector->url = trim($url); $asset->wordPressConnector->connectorContentTypeLinks->connectorContentTypeLink->contentTypeId = $ct->getId(); $asset->wordPressConnector->connectorContentTypeLinks->connectorContentTypeLink->pageConfigurationName = $page_config; if (self::DEBUG && self::DUMP) { u\DebugUtility::dump($asset); } return $this->createAsset($asset, WordPressConnector::TYPE, $this->getPath($parent, $name), $parent->getSiteName()); }