Update Current New Field set as recommended for logging

@param null|bool $isLogged

@return $this
188875
public function isLogged($isLogged = true)
    {
        //====================================================================//
        // Safety Checks ==> Verify a new Field Exists
        if (empty($this->new)) {
            Splash::log()->err("ErrFieldsNoNew");
        } else {
            //====================================================================//
            // Update New Field structure
            $this->new->log = (bool) $isLogged;
        }

        return $this;
    }
239796
public function isRequired($isRequired = true)
    {
        //====================================================================//
        // Safety Checks ==> Verify a new Field Exists
        if (empty($this->new)) {
            Splash::log()->err("ErrFieldsNoNew");
        } else {
            //====================================================================//
            // Update New Field structure
            $this->new->required = (bool) $isRequired;
        }

        return $this;
    }
803057
public function setLogFile($logFile)
    {
        if (!$this->createfile($logFile)) {
            throw new \Parable\Log\Exception("Log file is not writable.");
        }

        $this->logFile = $logFile;
        return $this;
    }
900764
public function setModified($modified = null)
    {
        if ($modified) {
            $this->modified = $modified;
        } else {
            $this->modified = new \Datetime();
        }

        return $this;
    }
96695
public function isWriteOnly($isWriteOnly = true)
    {
        //====================================================================//
        // Safety Checks ==> Verify a new Field Exists
        if (empty($this->new)) {
            Splash::log()->err("ErrFieldsNoNew");
        } elseif ($isWriteOnly) {
            //====================================================================//
            // Update New Field structure
            $this->new->read = false;
            $this->new->write = true;
        }

        return $this;
    }
1304796
public function setPreferRead()
    {
        //====================================================================//
        // Safety Checks ==> Verify a new Field Exists
        if (empty($this->new)) {
            Splash::log()->err("ErrFieldsNoNew");
        } else {
            //====================================================================//
            // Update New Field structure
            $this->new->syncmode = self::MODE_READ;
        }

        return $this;
    }
795179
public function setIsActivated($isActivated)
    {
        $isActivated = (int) $isActivated;

        if ($this->exists() && $this->isActivated !== $isActivated) {
            $this->updated['isActivated'] = true;
        }

        $this->isActivated = $isActivated;

        return $this;
    }
785455
public function setLogConfig(array $logConfig)
    {
        $this->logConfig = $logConfig;

        $this->hostConfig = array_merge($this->hostConfig, ['LogConfig' => $logConfig]);

        return $this;
    }
1348968
public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
        $this->factory->setLogger($logger);
        return $this;
    }
231338
public static function updateTable($postTypeSlug, $fields, $hasTags = false, $hasCategories = false)
    {
        self::$customFieldsArray = [];

        Schema::table(
            $postTypeSlug, function ($table) use ($fields) {
                $post = new Post();
                $usedSlugs = [];
                $usedSlugs = array_merge($usedSlugs, $post->fillable);

                foreach($fields as $field){
                    // generate unique slugs for every field
                    if(!isset($field['slug']) || $field['slug'] == "") {
                        $slug = self::generateSlug($field['name'], $usedSlugs);
                    }else{
                        $slug = self::generateSlug($field['slug'], $usedSlugs);
                    }
                    $usedSlugs[] = $slug;

                    $field['slug'] = $slug;

                    self::createDatabaseFields($table, $field, $slug, false);

                    // unset the canBeRemoved from array
                    if(isset($field['canBeRemoved']) && $field['canBeRemoved'] == true) {
                        unset($field['canBeRemoved']);
                    }

                    array_push(self::$customFieldsArray, $field);
                }
            }
        );

        if($hasCategories) {
            self::createCategoryRelationsTable($postTypeSlug);
        }

        if($hasTags) {
            self::createTagRelationsTable($postTypeSlug);
        }

        return self::$customFieldsArray;
    }
1013608
public function update($attributes)
    {
        $this->attributes = array_merge($this->attributes, array_filter($attributes, function ($attribute) {
            return ! is_null($attribute);
        }));

        return $this;
    }
663458
function updated($new = null)
    {
        if (isset($new) && ($this->_attributes['updated'] != $new)){
            $this->change('updated', (int)$new);
        }
        return $this->_attributes['updated'];
    }
1346456
public function updateLoginData($loginId = null, $roleId = null, $unitId = null, \DateTime $logoutDate = null)
    {
        if ($loginId !== null) {
            $this->loginData[self::ID_LOGIN] = $loginId;
        }

        if ($roleId !== null) {
            $this->loginData[self::ID_ROLE] = (int) $roleId;
        }

        if ($unitId !== null) {
            $this->loginData[self::ID_UNIT] = (int) $unitId;
        }

        if ($logoutDate !== null) {
            $this->loginData[self::LOGOUT_DATE] = $logoutDate;
        }

        $this->saveToSession();

        return $this;
    }
785155
public function setLogFile($logFile)
    {
        if (strpos($logFile, '://') === false) {
            if (!GeneralUtility::isAbsPath($logFile)) {
                $logFile = PATH_site . $logFile;
            }
        }

        $this->logFile = $logFile;
        $this->openLogFile();

        return $this;
    }
862000
public function setGranted($isGranted)
    {
        $this->isGranted = (bool) $isGranted;
        $this->skipAuthorizationChecker(true);

        return $this;
    }
705323
public function update(Expression $key = null, Expression $value, $isReference)
    {
        if ($this->key === $key
                && $this->value === $value
                && $this->isReference === $isReference
        ) {
            return $this;
        }

        return new self($key, $value, $isReference);
    }
1345947
private function setDefaultsEnabled(bool $defaultsEnabled): self
    {
        $this->updatePropertyValue(
            DefaultsEnabledFieldInterface::PROP_DEFAULTS_ENABLED,
            $defaultsEnabled
        );

        return $this;
    }