public function __construct($name, $scheme, $path, $mountId, $startId, $notfoundId, array $clangs = null, $startClang = 1, $title = '', $description = '', $robots = '') { $this->name = $name; $this->path = $path; $scheme = $scheme ?: (rex_yrewrite::isHttps() ? 'https' : 'http'); $this->url = $scheme . '://' . $name . $path; $this->mountId = $mountId; $this->startId = $startId; $this->notfoundId = $notfoundId; $this->clangs = is_null($clangs) ? rex_clang::getAllIds() : $clangs; $this->startClang = $startClang; $this->title = $title; $this->description = $description; $this->robots = $robots; }