/** * Ensures that a storage key has been assigned */ public function checkStorageKey() { if (empty($this->storage_id_text)) { $this->storage_id_text = UniqueId::generate(__CLASS__); $this->user && InstanceStorage::buildStorageMap($this->user->storage_id_text); } }
/** * Check and assign if necessary a storage ID */ public function checkStorageKey() { if (empty($this->storage_id_text)) { $this->storage_id_text = UniqueId::generate(__CLASS__); } }