Get complements states.

@uses \Eliasis\Framework\App::getCurrentID()
@uses \Eliasis\Complement\Complement::getCurrentID()

@return array → complements states
760234
public function getStates()
    {
        $appID = App::getCurrentID();
        $complementID = self::getCurrentID();
        $states = $this->getStatesFromFile();

        if (isset($states[$appID][$complementID])) {
            return $this->states = $states[$appID][$complementID];
        }

        return $this->states = [];
    }
690480
public function getState() {
        if (!isset($this->state)) {
            $state = $this->getData(OntologyDeliveryExecution::PROPERTY_STATUS);
            if (!$state instanceof core_kernel_classes_Resource) {
                $state = $this->getResource((string)$state);
            }
            $this->state = $state;
        }
        return $this->state;
    }
1265153
public function setState($state)
    {
        $this->complement['state'] = $state;
        $this->states['state'] = $state;
        $this->setStates();

        return $state;
    }
151235
public function getIdentifiedElements(){
        $returnValue = $this->getBody()->getIdentifiedElements();
        $returnValue->addMultiple($this->getOutcomes());
        $returnValue->addMultiple($this->getResponses());
        $returnValue->addMultiple($this->getModalFeedbacks());

        return $returnValue;
    }
1179990
public function getDiffAdditions()
    {
        $data = $this->getValueDiffData('getDiffAdditions');
        foreach ($this->tracker->getAdditions() as $name) {
            $data[$name] = $this->get($name)->getValues();
        }
        return $data;
    }
698983
public function getState()
    {
        return (isset($this->raw['state']) && ! empty($this->raw['state']))
            ? (string) $this->raw['state']
            : null;
    }
1048567
public function getTransitions()
    {
        if (count($this->transitions) == 0 && !$this->isInitialType() && !$this->isExceptionType()) {
            foreach ($this->properties['transitions_from'] as $transition) {
                array_push($this->transitions, new Transition($this, $transition));
            }

            if (count($this->transitions) == 0) {
                throw new StatusException('No transitions available', 100, null);
            }
        } elseif ($this->isInitialType() || $this->isExceptionType()) {
            $this->transitions = [];
        }

        return $this->transitions;
    }
344350
private function getLegendStates()
    {
        $environment  = $this->getEnvironment();
        $definition   = $environment->getDataDefinition();
        $legendStates = $environment->getSessionStorage()->get('LEGENDS') ?: [];

        if (\array_key_exists($definition->getName(), $legendStates)) {
            $legendStates = $legendStates[$definition->getName()];

            return $legendStates;
        }

        $legendStates = [];

        return $legendStates;
    }
699089
private function setStates()
    {
        $appID = App::getCurrentID();
        $complementID = self::getCurrentID();

        if (! is_null($this->states)) {
            $states = $this->getStatesFromFile();

            if ($this->stateChanged($states)) {
                $file = $this->getStatesFilePath();
                $states[$appID][$complementID] = $this->states;
                Json::arrayToFile($states, $file);
                Hook::doAction('Eliasis/Complement/after_set_states', $states);
            }
        }
    }
476651
public static function getUndeletedStates()
    {
        return array(
            Page::STATE_OFFLINE,
            Page::STATE_ONLINE,
            Page::STATE_HIDDEN,
            Page::STATE_ONLINE + Page::STATE_HIDDEN,
        );
    }
562644
public function getCurrentType()
    {
        if (null !== $index = $this->getCurrencyIndex()) {
            return $index->getType();
        }

        $types = $this->repository->listIndexableEntityTypes();
        $type = array_shift($types);

        return $type;
    }
1260581
public function listAvailableStates(): array
    {
        if (!empty($this->states) && \is_array($this->states)) {
            return \array_keys($this->states);
        } else {
            return [];
        }
    }
66616
public function getState()
    {
        $node = $this->response->getFirst('contact:addr/contact:sp', $this->node);
        if ($node === null) {
            return null;
        }

        return $node->nodeValue;
    }
1338043
public static function getState() {
		$state = 'no-key-added';
		$license = Configs::get( 'start' )->getKey()->getLicense();

		if ( $license ) {
			$isPremium = $license->isPremium( 'boldgrid-inspirations' );
			$license = $isPremium ? 'premium' : 'basic';
			$state = $license . '-key-active';
		}

		return $state;
	}
589425
public function getOwnConstants()
    {
        if ($this->getParentClass() === false) {
            return $this->getConstants();
        } else {
            return array_diff_key($this->getConstants(), $this->getParentClass()->getConstants());
        }
    }
1085082
public function getClauses()
    {
        return array(
            $this->getUpdate(),
            $this->getJoins(),
            $this->getSet(),
            $this->getWhere(),
            $this->getOrder(),
            $this->getLimit(),
        );
    }
690001
public function getSeverities()
    {
        return array(
            'info' => $this->translation->text('Info'),
            'danger' => $this->translation->text('Danger'),
            'warning' => $this->translation->text('Warning')
        );
    }