/** * Unserialize, similar to serializing. */ public function unserialize($string) { $data = unserialize(base64_decode($string)); $this->disableMarking = $data['disableMarking']; $this->wikiOriginal = $data['wikiOriginal']; $this->markings = $data['markings']; InlineEditorMarking::setUniqueIdState($data['uniqueIdState']); }
/** * Set the $lastId variable in order to preserve it across requests. * @param $state int State acquired by getUniqueIdState() */ public static function setUniqueIdState($state) { if ($state > self::$lastId) { self::$lastId = $state; } }
function __construct(&$wiki) { parent::__construct(0, strlen($wiki), 'rootElement inlineEditorBasic', true, true, 0, false); $this->id = 'inline-editor-root'; }