Get Values with Modifiers

@return array Values with Modifiers Available
977913
public function getValuesWithModifiers()
    {
        $values = array_map(function ($value) {
            return [$value];
        }, array_flip($this->getValues()));

        $valuesWithModifiers = $values + $this->getModifiers(); // merge and keep keys (append)

        ksort($valuesWithModifiers);

        return $valuesWithModifiers;
    }
885816
protected function getModifiedData()
    {
        $modified = [];

        foreach ($this->_attributes as $key=>$value) {

            // Every previously not existing key is modified
            if (!array_key_exists($key, $this->_originalAttributes)) {
                $modified[$key] = $value;
                continue;
            }

            if ($this->valueWasModified($this->_originalAttributes[$key], $this->_attributes[$key])) {
                $modified[$key] = $value;
            }
        }

        return $modified;
    }
370841
final public function getAllValues() {
        $subClass = get_called_class();

        // Subclass has already been registered
        if(isset($this->_cachedEnums[$subClass])) {
            return FALSE;
        }

        $reflection = new \ReflectionClass($subClass);

        return $reflection->getConstants();
    }
440803
public function values()
    {
        return array_filter($this->blueprint, function ($value) {
            return !is_string($value) && !$value instanceof HasOneRelationship && !$value instanceof Dependency;
        });
    }
174458
public function getValues(): array
    {
        $enumeration = $this->enumeration;
        $values      = [];
        foreach ($this->getOrdinals() as $ord) {
            $values[] = $enumeration::byOrdinal($ord)->getValue();
        }
        return $values;
    }
429191
private function valueModification($value, array $modifiers)
    {
        if (is_null($value)) {
            if ($modifiers['n'] || Compat::getOpt('types')) {
                return $this->implementation->reprNULL($this->connection);
            }
        }
        if ($modifiers['h']) {
            return $this->implementation->reprHexadecimal($this->connection, $value);
        }
        if ($modifiers['r']) {
            return $this->implementation->reprString($this->connection, $value);
        }
        if ($modifiers['i']) {
            return $this->implementation->reprInt($this->connection, $value);
        } elseif ($modifiers['f']) {
            return $this->implementation->reprFloat($this->connection, $value);
        } elseif ($modifiers['b']) {
            return $this->implementation->reprBool($this->connection, $value);
        }
        if (Compat::getOpt('types')) {
            $type = gettype($value);
            if ($type === 'integer') {
                return $this->implementation->reprInt($this->connection, $value);
            } elseif ($type === 'double') {
                return $this->implementation->reprFloat($this->connection, $value);
            } elseif ($type === 'boolean') {
                return $this->implementation->reprBool($this->connection, $value);
            }
        }
        return $this->implementation->reprString($this->connection, $value);
    }
80824
protected function getStatusValues()
    {
        $values = array();
        foreach ($this->dbObject('Status')->enumValues() as $value) {
            $values[$value] = _t('SilverStripe\Omnipay\Model\Payment.STATUS_' . strtoupper($value), $value);
        }
        return $values;
    }
856315
public int getModifiers() {
        MetaMethod getter = getGetter();
        MetaMethod setter = getSetter();
        if (setter != null && getter == null) return setter.getModifiers();
        if (getter != null && setter == null) return getter.getModifiers();
        int modifiers = getter.getModifiers() | setter.getModifiers();
        int visibility = 0;
        if (Modifier.isPublic(modifiers)) visibility = Modifier.PUBLIC;
        if (Modifier.isProtected(modifiers)) visibility = Modifier.PROTECTED;
        if (Modifier.isPrivate(modifiers)) visibility = Modifier.PRIVATE;
        int states = getter.getModifiers() & setter.getModifiers();
        states &= ~(Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE);
        states |= visibility;
        return states;
    }
363046
def get_active_modifiers(self):
        
        keys = ctypes.pointer(charcodemap_t())
        nkeys = ctypes.c_int(0)

        _libxdo.xdo_get_active_modifiers(
            self._xdo, ctypes.byref(keys), ctypes.byref(nkeys))
        return [keys[i] for i in range(nkeys.value)]
508682
public static function getEnabledValues()
    {
        $result = array();
        foreach (static::$validValues as $key => $enabled) {
            if ($enabled) {
                $result[] = $key;
            }
        }
        return $result;
    }
363282
public function packValue(): array
    {
        $result = [];
        foreach ($this->fields as $field => $value) {
            if ($value instanceof AccessorInterface) {
                $result[$field] = $value->packValue();
            } else {
                $result[$field] = $value;
            }
        }

        return $result;
    }
1361557
public function getPostedValues()
    {
        $result = $_POST;
        $result = $this->alterPostedValues($result);
        unset($result[static::Meta]);
        return $result;
    }
891839
public function getStatusAllowableValues()
    {
        return [
            self::STATUS_DRAFT,
            self::STATUS_SENT,
            self::STATUS_ARCHIVE,
            self::STATUS_QUEUED,
            self::STATUS_SUSPENDED,
            self::STATUS_IN_PROCESS,
        ];
    }
1198874
public static function getPcreModifierList () {
		return array(
			static::MODIFIER_CASELESS			=> static::MODIFIER_CASELESS,
			static::MODIFIER_MULTILINE			=> static::MODIFIER_MULTILINE,
			static::MODIFIER_DOTALL				=> static::MODIFIER_DOTALL,
			static::MODIFIER_EXTENDED			=> static::MODIFIER_EXTENDED,
			static::MODIFIER_REPLACE_EVAL		=> static::MODIFIER_REPLACE_EVAL,
			static::MODIFIER_ANCHORED			=> static::MODIFIER_ANCHORED,
			static::MODIFIER_DOLLAR_ENDONLY		=> static::MODIFIER_DOLLAR_ENDONLY,
			static::MODIFIER_EXTRA_ANALYSIS		=> static::MODIFIER_EXTRA_ANALYSIS,
			static::MODIFIER_UNGREEDY			=> static::MODIFIER_UNGREEDY,
			static::MODIFIER_EXTRA				=> static::MODIFIER_EXTRA,
			static::MODIFIER_INFO_JCHANGED		=> static::MODIFIER_INFO_JCHANGED,
			static::MODIFIER_PCRE8				=> static::MODIFIER_PCRE8,
		);
	}
893725
public function getStandingLevelAllowableValues()
    {
        return [
            self::STANDING_LEVEL_BAD,
            self::STANDING_LEVEL_EXCELLENT,
            self::STANDING_LEVEL_GOOD,
            self::STANDING_LEVEL_NEUTRAL,
            self::STANDING_LEVEL_TERRIBLE,
        ];
    }
320566
public function toNative()
    {
        if ($this->valueEquals($this->getAttribute()->getNullValue())) {
            return [];
        }

        $links = [];
        foreach ($this->getValue() as $link) {
            $links[] = $link->toNative();
        }

        return $links;
    }
778914
function modifier()
    {
        if ( $this->Modifier === null )
        {
            $this->Modifier = eZContentObject::fetch( $this->ModifierID );
        }
        return $this->Modifier;
    }