Bolt\Legacy\Storage::getTablename PHP 메소드

getTablename() 공개 메소드

Get the table name with prefix from a given $name.
public getTablename ( string $name ) : string
$name string
리턴 string
    public function getTablename($name)
    {
        if ($this->prefix === null) {
            $this->prefix = $this->app['config']->get('general/database/prefix', 'bolt_');
        }
        $name = str_replace('-', '_', $this->app['slugify']->slugify($name));
        $tablename = sprintf('%s%s', $this->prefix, $name);
        return $tablename;
    }