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

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

{@inheritDoc}
public add ( $values, $branchPk = false, $mode = 'into', $scope )
    public function add($values, $branchPk = false, $mode = 'into', $scope = 0)
    {
        $parentPath = null;
        if ($branchPk) {
            $parentPath = $this->getPathFromPK($branchPk);
        }
        $path = $parentPath ? $parentPath . $values['name'] : $values['name'];
        $this->webFilesystem->write($path, $values['content']);
        return parent::add($values, $branchPk, $mode, $scope);
    }