setPrefix($_SERVER['DB_TABLE_PREFIX']); } } /** * Set the current prefix value * * @param string $prefix Table prefix value */ public function setPrefix($prefix) { $this->prefix = $prefix; } /** * Get the current prefix value * If defined, returns the value plus an underscore ("_") * * @return string Formatted prefix or empty string */ public function getPrefix() { return (strlen($this->prefix) > 0) ? $this->prefix.'_' : ''; } /** * Get the current table name value * * @return string Name of current migration's table */ public function getTableName() { return $this->getPrefix().$this->tableName; } }