Version: current

# Class AddSubsiteTask

Задача добавления подсайта на сайт Парамеры: Title=Название_подсайта - строка Domain=Домен_подсайта - строка Language=яз_ЯЗ - языковая константа (en_US, de_DE и т.д.) [Theme=Тема] (необязат.) - тема для подсайта [populate=1] (необязат.) - создавать на подсайте страницы по умолчанию (HomePage, ContactsPage и т.д.)

  Object
  BuildTask
  AddSubsiteTask

Located at subsites/code/AddSubsiteTask.php

## Methods summary

`public` | # `run( mixed $request )` Implement this method in the task subclass to execute via the TaskRunner Implement this method in the task subclass to execute via the TaskRunner

### Methods inherited from BuildTask

`getDescription()`, `getTitle()`, `isEnabled()`

### Methods inherited from Object

`__call()`, `__construct()`, `__toString()`, `__wakeup()`, `addMethodsFrom()`, `addStaticVars()`, `addWrapperMethod()`, `add_extension()`, `add_static_var()`, `allMethodNames()`, `cacheToFile()`, `cacheToFileWithArgs()`, `clearCache()`, `combined_static()`, `create()`, `createMethod()`, `create_from_string()`, `defineMethods()`, `exists()`, `extInstance()`, `extend()`, `getCustomClass()`, `getExtensionInstance()`, `getExtensionInstances()`, `get_extensions()`, `get_static()`, `hasExtension()`, `hasMethod()`, `has_extension()`, `invokeWithExtensions()`, `is_a()`, `loadCache()`, `parentClass()`, `parse_class_spec()`, `remove_extension()`, `sanitiseCachename()`, `saveCache()`, `set_stat()`, `set_static()`, `set_uninherited()`, `stat()`, `strong_create()`, `uninherited()`, `uninherited_static()`, `useCustomClass()`

### Magic methods summary

## Properties summary

`protected string` | $title | # $title Shown in the overview on the `TaskRunner` HTML or CLI interface. Should be short and concise, no HTML allowed. $title Shown in the overview on the `TaskRunner` HTML or CLI interface. Should be short and concise, no HTML allowed.
`protected mixed` | $domain | #
`protected mixed` | $language | #
`protected mixed` | $theme | #
`protected mixed` | $populate | #

### Properties inherited from BuildTask

`$description`, `$enabled`

### Properties inherited from Object

`$class`, `$extension_instances`, `$extensions`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -