Devise\Media\Categories\CategoryPaths::fromDot PHP Method

fromDot() public method

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

Usage Example

Beispiel #1
0
 /**
  * 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