Location: PHPKode > scripts > CSS Crush > css-crush-1.9.1/lib/CssCrush/ExtendArg.php
<?php
/**
 *
 * Extend argument objects.
 *
 */
class CssCrush_ExtendArg
{
    public $pointer;
    public $name;
    public $pseudo;

    public function __construct ( $name )
    {
        $this->name = $name;

        if ( ! preg_match( CssCrush_Regex::$patt->ident, $this->name ) ) {

            // Not a regular name: Some kind of selector so normalize it for later comparison
            $this->name = CssCrush_Selector::makeReadableSelector( $this->name );

            // If applying the pseudo on output store
            if ( substr( $this->name, -1 ) === '!' ) {

                $this->name = rtrim( $this->name, ' !' );
                if ( preg_match( '!\:\:?[\w-]+$!', $this->name, $m ) ) {
                    $this->pseudo = $m[0];
                }
            }
        }
    }
}
Return current item: CSS Crush