Jarves\Storage\FileStorage::mapPrimaryKey PHP Метод

mapPrimaryKey() публичный Метод

We accept as primary key the path as well, so we have to convert it to internal ID.
public mapPrimaryKey ( &$primaryKey )
$primaryKey
    public function mapPrimaryKey(&$primaryKey)
    {
        if (!is_numeric($primaryKey['id'])) {
            $file = $this->webFilesystem->getFile(urldecode($primaryKey['id']));
            $primaryKey['id'] = $file['id'];
        }
    }