Devise\Media\Categories\CategoryPaths::fromDot PHP 메소드

fromDot() 공개 메소드

Convert dots to slashes in the path
public fromDot ( string $path ) : string
$path string
리턴 string
    public function fromDot($path)
    {
        return implode('/', explode('.', $path));
    }

Usage Example

예제 #1
0
파일: Manager.php 프로젝트: devisephp/cms
 /**
  * Removes the category path
  *
  * @param $input
  * @return bool
  */
 public function destroyCategory($input)
 {
     if (isset($input['category'])) {
         $localPath = $this->CategoryPaths->fromDot($input['category']);
         $serverPath = $this->CategoryPaths->serverPath($localPath);
         return $this->Filesystem->deleteDirectory($serverPath);
     }
     return false;
 }
All Usage Examples Of Devise\Media\Categories\CategoryPaths::fromDot