public function getFixType($name)
    {
        // parse it
        $property = $attr = null;
        if (strpos($name, '#') !== false) {
            list($name, $property) = explode('#', $name);
        }
        if (strpos($name, '@') !== false) {
            list($name, $attr) = explode('@', $name);
        }

        // figure out the parameters
        $params = array();
        if ($name !== '') {
            $params['element'] = $name;
        }
        if (!is_null($attr)) {
            $params['attr'] = $attr;
        }

        // special case: attribute transform
        if (!is_null($attr)) {
            if (is_null($property)) {
                $property = 'pre';
            }
            $type = 'attr_transform_' . $property;
            return array($type, $params);
        }

        // special case: tag transform
        if (is_null($property)) {
            return array('tag_transform', $params);
        }

        return array($property, $params);

    }
public function getFixType($name)
    {
        // parse it
        $property = $attr = null;
        if (strpos($name, '#') !== false) {
            list($name, $property) = explode('#', $name);
        }
        if (strpos($name, '@') !== false) {
            list($name, $attr) = explode('@', $name);
        }

        // figure out the parameters
        $params = array();
        if ($name !== '') {
            $params['element'] = $name;
        }
        if (!is_null($attr)) {
            $params['attr'] = $attr;
        }

        // special case: attribute transform
        if (!is_null($attr)) {
            if (is_null($property)) {
                $property = 'pre';
            }
            $type = 'attr_transform_' . $property;
            return array($type, $params);
        }

        // special case: tag transform
        if (is_null($property)) {
            return array('tag_transform', $params);
        }

        return array($property, $params);

    }
public function getFixType ( $ name ) { // parse it
 $ property = $ attr = null ; if ( strpos ( $ name , '#' ) !== false ) { list ( $ name , $ property ) = explode ( '#' , $ name ) ; } if ( strpos ( $ name , '@' ) !== false ) { list ( $ name , $ attr ) = explode ( '@' , $ name ) ; } // figure out the parameters
 $ params = array ( ) ; if ( $ name !== '' ) { $ params [ 'element' ] = $ name ; } if ( ! is_null ( $ attr ) ) { $ params [ 'attr' ] = $ attr ; } // special case: attribute transform
 if ( ! is_null ( $ attr ) ) { if ( is_null ( $ property ) ) { $ property = 'pre' ; } $ type = 'attr_transform_' . $ property ; return array ( $ type , $ params ) ; } // special case: tag transform
 if ( is_null ( $ property ) ) { return array ( 'tag_transform' , $ params ) ; } return array ( $ property , $ params ) ; }
Parses a fix name and determines what kind of fix it is, as well
as other information defined by the fix
@param $name String name of fix
@return array(string $fix_type, array $fix_parameters)
@note $fix_parameters is type dependant, see populate() for usage
of these parameters
Parses a fix name and determines what kind of fix it is as well as other information defined by the fix