kernel/classes/ezpackage.php
static function isValidName( $packageName, &$transformedPackageName = null )
    {
        $trans = eZCharTransform::instance();
        $transformedPackageName = $trans->transformByGroup( $packageName, 'identifier' );

        return $transformedPackageName === $packageName;
    }
static function isValidName( $packageName, &$transformedPackageName = null )
    {
        $trans = eZCharTransform::instance();
        $transformedPackageName = $trans->transformByGroup( $packageName, 'identifier' );

        return $transformedPackageName === $packageName;
    }
static function isValidName ( $ packageName , & $ transformedPackageName = null ) { $ trans = eZCharTransform :: instance ( ) ; $ transformedPackageName = $ trans -> transformByGroup ( $ packageName , 'identifier' ) ; return $ transformedPackageName === $ packageName ; }
Checks if a package name is valid

@param string $packageName the package name
@param string $transformedPackageName the package name, transformed to be valid
@return boolean true if the package name is valid, false if not
Checks if a package name is valid