コード例 #1
0
ファイル: Instance.php プロジェクト: pkdevboxy/dfe-database
 /**
  * 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);
     }
 }
コード例 #2
0
ファイル: User.php プロジェクト: pkdevboxy/dfe-database
 /**
  * Check and assign if necessary a storage ID
  */
 public function checkStorageKey()
 {
     if (empty($this->storage_id_text)) {
         $this->storage_id_text = UniqueId::generate(__CLASS__);
     }
 }