getRecentKey() 공개 메소드

public getRecentKey ( )
예제 #1
0
파일: File.php 프로젝트: Webiny/Framework
 /**
  * @inheritdoc
  */
 public function setContents($contents, $append = false)
 {
     $this->contents = $contents;
     if ($this->storage->setContents($this->key, $this->contents, $append) !== false) {
         $this->key = $this->storage->getRecentKey();
         $this->size = null;
         $this->eventManager()->fire(StorageEvent::FILE_SAVED, new StorageEvent($this));
         return true;
     }
     return false;
 }