original_string: public static function directories( $dirs = null, $define = true )
  	{
  		if ( is_null( $dirs ) )
  		{
  			return static::$directories;
  		}
  		
  		foreach( $dirs as $key => $dir )
  		{
  			static::$directories[$key] = $dir;
  			
  			if ( $define === true )
  			{
  				define( 'CCDIR_'.strtoupper( $key ), $dir );
  			}
  		}
  	}
code: public static function directories( $dirs = null, $define = true )
  	{
  		if ( is_null( $dirs ) )
  		{
  			return static::$directories;
  		}
  		
  		foreach( $dirs as $key => $dir )
  		{
  			static::$directories[$key] = $dir;
  			
  			if ( $define === true )
  			{
  				define( 'CCDIR_'.strtoupper( $key ), $dir );
  			}
  		}
  	}
code_tokens: public static function directories ( $ dirs = null , $ define = true ) { if ( is_null ( $ dirs ) ) { return static :: $ directories ; } foreach ( $ dirs as $ key => $ dir ) { static :: $ directories [ $ key ] = $ dir ; if ( $ define === true ) { define ( 'CCDIR_' . strtoupper ( $ key ) , $ dir ) ; } } }
docstring: directories getter and setter
  
  when dirs empty:
  return all registerd directories
  
  when dirs an array:
  adds directories to the index and optional create a define.
  
  @param array 			$paths
  @param bool			$define
  @return array|void
docstring_tokens: directories getter and setter