Exemple #1
0
 /**
  * Save entry to a file at path. 
  * Returns ID of created entry.
  *
  * @param DirectoryHelper $directoryHelper
  * @param Plist $plistAdapter
  * @return string
  */
 public function save(DirectoryHelper $directoryHelper, Plist $plistAdapter)
 {
     $entryPath = $directoryHelper->getEntryPath($this->getId());
     $this->createPlistObject($plistAdapter)->save($entryPath);
     if ($this->photo) {
         $this->savePhoto($directoryHelper);
     }
     return $this->getId();
 }