protected function add_format($format) {
        if (in_array($format, $this->supportedformats)) {
            return;
        }
        $this->supportedformats = portfolio_most_specific_formats(array($format), $this->supportedformats);
    }
protected function add_format($format) {
        if (in_array($format, $this->supportedformats)) {
            return;
        }
        $this->supportedformats = portfolio_most_specific_formats(array($format), $this->supportedformats);
    }
protected function add_format ( $ format ) { if ( in_array ( $ format , $ this -> supportedformats ) ) { return ; } $ this -> supportedformats = portfolio_most_specific_formats ( array ( $ format ) , $ this -> supportedformats ) ; }
Adds a new format to the list of supported formats.
This functions also handles removing conflicting and less specific
formats at the same time.

@param string $format one of PORTFOLIO_FORMAT_XX
@return void
Adds a new format to the list of supported formats . This functions also handles removing conflicting and less specific formats at the same time .