Returns the ID of the element.

@return string
496475
public function id() : string
    {
        $name = $this->name();
        $name = preg_replace("@\[\]$@", '', $name);
        if ($name) {
            return $name.'-'.$this->value;
        }
        return $name;
    }
765994
public function getIdentifier()
    {
        $identifier = $this->getFromNode()->getIdentifier() 
                    . '-'
                    . $this->getType()
                    . '-'
                    . $this->getToNode()->getIdentifier();
        
        return $identifier;
    }
1356155
public function getFieldId()
    {
        $fieldId = $this->getAttribute('fieldId');
        if (null === $fieldId && null !== $this->field) {
            $fieldId = $this->$fieldId = $this->field->id;
        }

        return $fieldId;
    }
885093
public function getId()
    {
        if (is_array($this->id) && count($this->id) === 1) {
            return current($this->id);
        }
        return $this->id;
    }
468207
public function getProjectId()
    {
        if (!isset($this->projectId)) {
            $this->projectId = $this->get('project/project-id');
        }

        return $this->projectId;
    }
638292
public function getNameId()
    {
        $nameIdvalue = null;
        $nameIdData = $this->getNameIdData();
        if (!empty($nameIdData) && isset($nameIdData['Value'])) {
            $nameIdvalue = $nameIdData['Value'];
        }
        return $nameIdvalue;
    }
992013
public function getHtmlId()
    {
        $form = $this->getParentOfType('\\Zepi\\Web\\UserInterface\\Form\\Form');

        // If the group isn't assigned to a data form we can not generate
        // the id of the group.
        if (!$form) {
            return $this->key;
        }
        
        return $form->getHtmlId() . '-' . $this->key;
    }
212356
protected function getId()
  {
    if($this->currObj instanceof Server)
    {
      return "ts3_s" . $this->currObj->virtualserver_id;
    }
    elseif($this->currObj instanceof Channel)
    {
      return "ts3_c" . $this->currObj->cid;
    }
    elseif($this->currObj instanceof Client)
    {
      return "ts3_u" . $this->currObj->clid;
    }

    return FALSE;
  }
122752
public function widgetId()
    {
        if (!$this->widgetId) {
            $type = $this->type();
            switch ($type) {
                case static::PROPERTY_DISPLAY:
                    $id = $this->display()->displayId();
                    break;

                case static::PROPERTY_CONTROL:
                    $id = $this->input()->inputId();
                    break;

                default:
                    $id = 'widget_'.uniqid();
                    break;
            }

            $this->widgetId = $id;
        }

        return $this->widgetId;
    }
1130497
public function getId()
    {
        if (isset($this->ids[$this->namespace])) {
            return $this->ids[$this->namespace];
        } else {
            return (int) $this->getRecord()->get('id');
        }
    }
931574
protected function id()
    {
        while (true) {
            $id = \uniqid('crunz', true);
            if (!\array_key_exists($id, $this->events)) {
                return $id;
            }
        }
    }
461270
public function getIdFromCookie()
    {
        if (empty($_COOKIE[$this->name])) {
            return false;
        }
        $id = $_COOKIE[$this->name];
        if (!is_string($id) || !$this->isValidId($id)) {
            return false;
        }
        return $id;
    }
111207
public function generateElementId(Element $element) : string
    {
        preg_match('/^([a-zA-Z0-9]*)/', $element->getName(), $matches);
        $name = $matches[0];

        if (! isset($this->ids[$name])) {
            $this->ids[$name] = 0;
        }

        return $this->getId() . '-' . $name . '-' . $this->ids[$name]++;
    }
42338
protected function getId()
    {
        if ($key = $this->manager->config('model_primary_key')) {
            return $this->manager->getInstance()->{$key};
        }

        return $this->manager->getInstance()->getKey();
    }
14442
public function getElementRegister()
    {
        if ($this->elementRegister === null) {
            $this->elementRegister = new ElementRegister();
            $this->initializeElementRegister($this->elementRegister);
        }
        return $this->elementRegister;
    }
1171506
public function id()
	{
		if ( $this->loggedOut )
			return null;

		$id = $this->session->get( $this->getName() );

		if ( is_null( $id ) && $this->acct() )
			$id = $this->acct()->getId();

		return $id;
	}
1067073
public function getId() {
    if (empty($this->record[$this->id_name])) {
      return FALSE;
    }

    return $this->record[$this->id_name];
  }