选择语言 :

 Module_Storage_Driver_File::set_prefix

设置前缀

$this Module_Storage_Driver_File::set_prefix( string $prefix )

参数列表

参数 类型 描述 默认值
$prefix string $prefix
返回值
  • $this
File: ./modules/storage/driver/file.class.php
public function set_prefix($prefix)
{
    if ($prefix)
    {
        $this->prefix = trim($prefix, ' /_') . '/';
    }
    else
    {
        $prefix = '';
    }

    return $this;
}