Resource Tree Default Sort Field ~
The default sort field for the Resource tree when loading the manager.

@param string $value

@return $this
779483
public function setCoreTreeDefaultSort($value)
    {
        $this->setFieldName('tree_default_sort');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
428473
public function recursiveCreateDir($value = null)
    {
        return ($value === null) ? $this->recursiveDirectories : $this->recursiveDirectories = $value;
    }
194297
public function setCoreBaseHelpUrl($value)
    {
        $this->setFieldName('base_help_url');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
852788
public function setDirectoryToParse($value)
    {
        $this->directoryToParse = trim(str_replace(DIRECTORY_SEPARATOR, '/', trim((string) $value)), '/');

        return $this;
    }
1081883
public function setCoreCacheDefault($value)
    {
        $this->setFieldName('cache_default');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1248621
public function setCoreEnableGravatar($value)
    {
        $this->setFieldName('enable_gravatar');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1150746
public function sortChange($value)
    {
        if ($value == 0) {
            return;
        }
        $owner = $this->owner;
        $condition = $this->getCondition();
        $newSort = $owner->{$this->sortAttribute} + $value;
        if ($value > 0) {
            // move up
            $max = $this->getMaxSort();
            if ($owner->{$this->sortAttribute} === $max) {
                return;
            }
            if ($newSort >= $max) {
                $newSort = $max;
            }
            $condition[] = [">", $this->sortAttribute, $owner->{$this->sortAttribute}];
            $condition[] = ["<=", $this->sortAttribute, $newSort];
            $counterChanger = -1;
        } else {
            // move down
            if ($owner->{$this->sortAttribute} === 0) {
                return;
            }
            if ($newSort < 0) {
                $newSort = 0;
            }
            $condition[] = ['<', $this->sortAttribute, $owner->{$this->sortAttribute}];
            $condition[] = ['>=', $this->sortAttribute, $newSort];
            $counterChanger = 1;
        }
        $owner->updateAllCounters([$this->sortAttribute => $counterChanger], $condition);
        $owner->updateAttributes([$this->sortAttribute => $newSort]);
    }
958342
public function setCoreEnableDragdrop($value)
    {
        $this->setFieldName('enable_dragdrop');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1135345
public function setDefaultValue($value)
    {
        if (($value instanceof ValueGenerator) === false) {
            $value = new ValueGenerator($value);
        }

        if ($this->isValidParameterDefaultValue($value) !== true) {
            throw new InvalidArgumentException('Parameter default value is not valid.');
        }

        $this->defaultValue = $value;

        return $this;
    }
319791
public function setCoreInlineHelp($value)
    {
        $this->setFieldName('inline_help');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1245631
public function setAmazonOrderId($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['AmazonOrderId']['FieldValue'] = $value;
        return $this;
    }
447543
public function setCoreTreeRootId($value)
    {
        $this->setFieldName('tree_root_id');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
124760
public function setDefault($argument, $value)
    {
        Arr::set($this->defaults, $argument, $value);

        return $this;
    }
460910
public function setCoreModxBrowserDefaultViewmode($value)
    {
        $this->setFieldName('modx_browser_default_viewmode');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
162200
public function setCoreSettingsVersion($value)
    {
        $this->setFieldName('settings_version');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1363058
public function setCoreSyncsiteDefault($value)
    {
        $this->setFieldName('syncsite_default');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
127255
public function setDefaultValue($value) : FormElement
    {
        if (is_array($value)) {
            $value = implode(',', $value);
        }
        parent::setDefaultValue($value);
        return $this;
    }