public function classToTableName($className)
    {
        $className = $this->getRelativeClass($className);
        $className = ltrim(strtolower(preg_replace('/[A-Z]/', '_$0', $className)), '_');

        return $this->prefix . $className;
    }
public function classToTableName($className)
    {
        $className = $this->getRelativeClass($className);
        $className = ltrim(strtolower(preg_replace('/[A-Z]/', '_$0', $className)), '_');

        return $this->prefix . $className;
    }
public function classToTableName ( $ className ) { $ className = $ this -> getRelativeClass ( $ className ) ; $ className = ltrim ( strtolower ( preg_replace ( '/[A-Z]/' , '_$0' , $ className ) ) , '_' ) ; return $ this -> prefix . $ className ; }
Takes either a global or absolute class name and returns an underscored table name.

@param string $className

@return string
Takes either a global or absolute class name and returns an underscored table name .