private static function processDriverOptions($source, &$write_to)
    {
        foreach ($source as $option => $optiondata) {
            if (is_string($option) && strpos($option, '::') !== false) {
                $key = $option;
            } elseif (is_string($option)) {
                $key = 'PropelPDO::' . $option;
            }
            if (!defined($key)) {
                throw new PropelException("Invalid PDO option/attribute name specified: " . $key);
            }
            $key = constant($key);

            $value = $optiondata['value'];
            if (is_string($value) && strpos($value, '::') !== false) {
                if (!defined($value)) {
                    throw new PropelException("Invalid PDO option/attribute value specified: " . $value);
                }
                $value = constant($value);
            }

            $write_to[$key] = $value;
        }
    }
private static function processDriverOptions($source, &$write_to)
    {
        foreach ($source as $option => $optiondata) {
            if (is_string($option) && strpos($option, '::') !== false) {
                $key = $option;
            } elseif (is_string($option)) {
                $key = 'PropelPDO::' . $option;
            }
            if (!defined($key)) {
                throw new PropelException("Invalid PDO option/attribute name specified: " . $key);
            }
            $key = constant($key);

            $value = $optiondata['value'];
            if (is_string($value) && strpos($value, '::') !== false) {
                if (!defined($value)) {
                    throw new PropelException("Invalid PDO option/attribute value specified: " . $value);
                }
                $value = constant($value);
            }

            $write_to[$key] = $value;
        }
    }
private static function processDriverOptions ( $ source , & $ write_to ) { foreach ( $ source as $ option => $ optiondata ) { if ( is_string ( $ option ) && strpos ( $ option , '::' ) !== false ) { $ key = $ option ; } elseif ( is_string ( $ option ) ) { $ key = 'PropelPDO::' . $ option ; } if ( ! defined ( $ key ) ) { throw new PropelException ( "Invalid PDO option/attribute name specified: " . $ key ) ; } $ key = constant ( $ key ) ; $ value = $ optiondata [ 'value' ] ; if ( is_string ( $ value ) && strpos ( $ value , '::' ) !== false ) { if ( ! defined ( $ value ) ) { throw new PropelException ( "Invalid PDO option/attribute value specified: " . $ value ) ; } $ value = constant ( $ value ) ; } $ write_to [ $ key ] = $ value ; } }
Internal function to handle driver options or conneciton attributes in PDO.

Process the INI file flags to be passed to each connection.

@param      array Where to find the list of constant flags and their new setting.
@param      array Put the data into here

@throws PropelException If invalid options were specified.
Internal function to handle driver options or conneciton attributes in PDO .