/** * Imports links and actions from another Manialink element * @param \ManiaLib\Gui\Element The source object */ function addLink(\ManiaLib\Gui\Element $object) { $this->manialink = $object->getManialink(); $this->url = $object->getUrl(); $this->maniazone = $object->getManiazone(); $this->goto = $object->getGoto(); $this->action = $object->getAction(); $this->actionKey = $object->getActionKey(); if ($object->getAddPlayerId()) { $this->addPlayerId = 1; } }