Pimcore\Model\Tool\Setup\Dao::contents PHP Method

contents() public method

public contents ( )
    public function contents()
    {
        $this->db->insert("assets", ["id" => 1, "parentId" => 0, "type" => "folder", "filename" => "", "path" => "/", "creationDate" => time(), "modificationDate" => time(), "userOwner" => 1, "userModification" => 1]);
        $this->db->insert("documents", ["id" => 1, "parentId" => 0, "type" => "page", "key" => "", "path" => "/", "index" => 999999, "published" => 1, "creationDate" => time(), "modificationDate" => time(), "userOwner" => 1, "userModification" => 1]);
        $this->db->insert("documents_page", ["id" => 1, "controller" => "", "action" => "", "template" => "", "title" => "", "description" => ""]);
        $this->db->insert("objects", ["o_id" => 1, "o_parentId" => 0, "o_type" => "folder", "o_key" => "", "o_path" => "/", "o_index" => 999999, "o_published" => 1, "o_creationDate" => time(), "o_modificationDate" => time(), "o_userOwner" => 1, "o_userModification" => 1]);
        $this->db->insert("users", ["parentId" => 0, "name" => "system", "admin" => 1, "active" => 1]);
        $this->db->update("users", ["id" => 0], $this->db->quoteInto("name = ?", "system"));
        $userPermissions = [["key" => "application_logging"], ["key" => "assets"], ["key" => "classes"], ["key" => "clear_cache"], ["key" => "clear_temp_files"], ["key" => "document_types"], ["key" => "documents"], ["key" => "objects"], ["key" => "plugins"], ["key" => "predefined_properties"], ["key" => "routes"], ["key" => "seemode"], ["key" => "system_settings"], ["key" => "thumbnails"], ["key" => "translations"], ["key" => "redirects"], ["key" => "glossary"], ["key" => "reports"], ["key" => "recyclebin"], ["key" => "seo_document_editor"], ["key" => "tags_config"], ["key" => "tags_assignment"], ["key" => "tags_search"], ["key" => "robots.txt"], ["key" => "http_errors"], ["key" => "tag_snippet_management"], ["key" => "qr_codes"], ["key" => "targeting"], ["key" => "notes_events"], ["key" => "backup"], ["key" => "emails"], ["key" => "website_settings"], ["key" => "dashboards"], ["key" => "users"]];
        foreach ($userPermissions as $up) {
            $this->db->insert("users_permission_definitions", $up);
        }
    }