public function register($id, $styleData)
    {
        if (self::getRegistry()->isRegistered($id)) {
            common_Logger::w('Style already registered');
        }
        if($this->isValidStyleData($styleData)){
            self::getRegistry()->set($id, $styleData);
        }else{
            common_Logger::w('Invalid style data format');
        }
        
    }
public function register($id, $styleData)
    {
        if (self::getRegistry()->isRegistered($id)) {
            common_Logger::w('Style already registered');
        }
        if($this->isValidStyleData($styleData)){
            self::getRegistry()->set($id, $styleData);
        }else{
            common_Logger::w('Invalid style data format');
        }
        
    }
public function register ( $ id , $ styleData ) { if ( self :: getRegistry ( ) -> isRegistered ( $ id ) ) { common_Logger :: w ( 'Style already registered' ) ; } if ( $ this -> isValidStyleData ( $ styleData ) ) { self :: getRegistry ( ) -> set ( $ id , $ styleData ) ; } else { common_Logger :: w ( 'Invalid style data format' ) ; } }
Register a style

@param string $id
@param array $styleData
Register a style