public function getAttribute($attribute)
    {
        switch ($attribute) {
            case self::PROPEL_ATTR_CACHE_PREPARES:
                return $this->cachePreparedStatements;
                break;
            case self::PROPEL_ATTR_CONNECTION_NAME:
                return $this->connectionName;
                break;
            default:
                return parent::getAttribute($attribute);
        }
    }
public function getAttribute($attribute)
    {
        switch ($attribute) {
            case self::PROPEL_ATTR_CACHE_PREPARES:
                return $this->cachePreparedStatements;
                break;
            case self::PROPEL_ATTR_CONNECTION_NAME:
                return $this->connectionName;
                break;
            default:
                return parent::getAttribute($attribute);
        }
    }
public function getAttribute ( $ attribute ) { switch ( $ attribute ) { case self :: PROPEL_ATTR_CACHE_PREPARES : return $ this -> cachePreparedStatements ; break ; case self :: PROPEL_ATTR_CONNECTION_NAME : return $ this -> connectionName ; break ; default : return parent :: getAttribute ( $ attribute ) ; } }
Gets a connection attribute.

This is overridden here to provide support for setting Propel-specific attributes too.

@param integer $attribute The attribute to get (e.g. PropelPDO::PROPEL_ATTR_CACHE_PREPARES).

@return mixed
Gets a connection attribute .