ElggSite::update PHP Method

update() protected method

protected update ( )
    protected function update()
    {
        global $CONFIG;
        if (!parent::update()) {
            return false;
        }
        $guid = (int) $this->guid;
        $name = sanitize_string($this->name);
        $description = sanitize_string($this->description);
        $url = sanitize_string($this->url);
        $query = "UPDATE {$CONFIG->dbprefix}sites_entity\n\t\t\tSET name='{$name}', description='{$description}', url='{$url}' WHERE guid={$guid}";
        return $this->getDatabase()->updateData($query) !== false;
    }