Model/UserIdentity.php
static public function getStorableType( $type )
    {
        switch ( $type )
        {
            case 'google':      return self::TYPE_GOOGLE;
            case 'facebook':    return self::TYPE_FACEBOOK;
            case 'yahoo':       return self::TYPE_YAHOO;
            case 'twitter':     return self::TYPE_TWITTER;
        }
    }
static public function getStorableType( $type )
    {
        switch ( $type )
        {
            case 'google':      return self::TYPE_GOOGLE;
            case 'facebook':    return self::TYPE_FACEBOOK;
            case 'yahoo':       return self::TYPE_YAHOO;
            case 'twitter':     return self::TYPE_TWITTER;
        }
    }
static public function getStorableType ( $ type ) { switch ( $ type ) { case 'google' : return self :: TYPE_GOOGLE ; case 'facebook' : return self :: TYPE_FACEBOOK ; case 'yahoo' : return self :: TYPE_YAHOO ; case 'twitter' : return self :: TYPE_TWITTER ; } }
Convert human-readable type to integer

@param string $type
@return integer
Convert human - readable type to integer