Example #1
0
 /**
  * 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);
     }
 }
Example #2
0
 /**
  * Check and assign if necessary a storage ID
  */
 public function checkStorageKey()
 {
     if (empty($this->storage_id_text)) {
         $this->storage_id_text = UniqueId::generate(__CLASS__);
     }
 }