Backup\Model\Content::createXml PHP Метод

createXml() защищенный Метод

Create xml from type
protected createXml ( string $type ) : string
$type string Type of element
Результат string
    protected function createXml($type)
    {
        $xml = '';
        switch ($type) {
            case 'datatype':
            case 'view':
            case 'layout':
            case 'script':
                $xml .= $this->createResource($type);
                break;
            case 'document-type':
                $xml .= $this->createDocumentType();
                break;
            case 'document':
                $xml .= $this->createDocument();
                break;
        }
        return $xml;
    }