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'];
        }
    }