public function getName($entity, $quote = true)
    {
        if (is_object($entity))
            $entity = $entity->getName();
        if (!is_string($entity))
            throw new InvalidTypeException("Provide a string or a object with a getName method");
        $entity = $this->table_prefix . $entity;
        return $quote ? $this->identQuote($entity) : $entity;
    }
public function getName($entity, $quote = true)
    {
        if (is_object($entity))
            $entity = $entity->getName();
        if (!is_string($entity))
            throw new InvalidTypeException("Provide a string or a object with a getName method");
        $entity = $this->table_prefix . $entity;
        return $quote ? $this->identQuote($entity) : $entity;
    }
public function getName ( $ entity , $ quote = true ) { if ( is_object ( $ entity ) ) $ entity = $ entity -> getName ( ) ; if ( ! is_string ( $ entity ) ) throw new InvalidTypeException ( "Provide a string or a object with a getName method" ) ; $ entity = $ this -> table_prefix . $ entity ; return $ quote ? $ this -> identQuote ( $ entity ) : $ entity ; }
Return the identity name quoted and prefixed with the configured prefix.

@param $entity mixed A string with the name or a Table, Index or ForeignKey
object with a getName method.
@return string The quoted, prefixed name
Return the identity name quoted and prefixed with the configured prefix .