Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
JamesMoss
Flywheel
Repository
getIdFromPath
JamesMoss\Flywheel\Repository::getIdFromPath PHP Method
Repository Class Documentation
Datei anzeigen
Open project: jamesmoss/flywheel
getIdFromPath()
protected
method
Get a document's ID base on its filesystem path
protected
getIdFromPath
(
string
$path
,
string
$ext
) :
string
$path
string
The full path to the file (including file extension)
$ext
string
The file extension (without the period)
return
string
The ID of the document
protected function getIdFromPath($path, $ext) { return basename($path, '.' . $ext); }
Repository
__construct
delete
findAll
findById
generateId
getAllFiles
getFilename
getIdFromPath
getName
getPath
getPathForDocument
query
store
update
validateId
validateName
write