original_string: public static function instance( $className = null )
      {
          if ( is_null( $className ) )
          {
              $ini = eZINI::instance( 'ezcomments.ini' );
              $className = $ini->variable( 'NotificationSettings', 'NotificationManagerClass' );
          }
          if ( !isset( self::$instance ) )
          {
              self::$instance = new $className();
          }
          return self::$instance;
      }
code: public static function instance( $className = null )
      {
          if ( is_null( $className ) )
          {
              $ini = eZINI::instance( 'ezcomments.ini' );
              $className = $ini->variable( 'NotificationSettings', 'NotificationManagerClass' );
          }
          if ( !isset( self::$instance ) )
          {
              self::$instance = new $className();
          }
          return self::$instance;
      }
code_tokens: public static function instance ( $ className = null ) { if ( is_null ( $ className ) ) { $ ini = eZINI :: instance ( 'ezcomments.ini' ) ; $ className = $ ini -> variable ( 'NotificationSettings' , 'NotificationManagerClass' ) ; } if ( ! isset ( self :: $ instance ) ) { self :: $ instance = new $ className ( ) ; } return self :: $ instance ; }
docstring: create instance of the object
  @param string $className
  @return ezcomNotificationManager
docstring_tokens: create instance of the object