public function setPrefix($prefix)
    {
        if ($prefix != '') {
            $prefix = rtrim($prefix, '_').'_';
        }

        $this->prefix = $prefix;

        return $this;
    }
public function setPrefix($prefix)
    {
        if ($prefix != '') {
            $prefix = rtrim($prefix, '_').'_';
        }

        $this->prefix = $prefix;

        return $this;
    }
public function setPrefix ( $ prefix ) { if ( $ prefix != '' ) { $ prefix = rtrim ( $ prefix , '_' ) . '_' ; } $ this -> prefix = $ prefix ; return $ this ; }
Set the global table prefix. By default, the context name will be used, with
a trailing underscore.
A trailing underscore will be added to the given prefix automatically, if needed.

To unset the global prefix, use an empty string as prefix.

@param string $prefix

@return $this
Set the global table prefix . By default the context name will be used with a trailing underscore . A trailing underscore will be added to the given prefix automatically if needed .