public function toString()
    {
        $params = $this->toArray();
        $filename = $params['filename'];
        $extension = $params['extension'];
        unset($params['filename'], $params['extension']);

        ksort($params);
        $mapping = array_flip($this->argMapping);
        $defaults = $this->argDefaults;

        $nameArray = array();
        foreach($params as $key => $value){
            //remove value if as same as default setting
            if($value !== null && $value !== $defaults[$key]){
                $nameArray[$mapping[$key]] = $mapping[$key] . '_' . $value;
            }
        }
        $nameArray = $nameArray ? ',' . implode(',', $nameArray) : '';
        return $filename . $nameArray . '.' . $extension;
    }
public function toString()
    {
        $params = $this->toArray();
        $filename = $params['filename'];
        $extension = $params['extension'];
        unset($params['filename'], $params['extension']);

        ksort($params);
        $mapping = array_flip($this->argMapping);
        $defaults = $this->argDefaults;

        $nameArray = array();
        foreach($params as $key => $value){
            //remove value if as same as default setting
            if($value !== null && $value !== $defaults[$key]){
                $nameArray[$mapping[$key]] = $mapping[$key] . '_' . $value;
            }
        }
        $nameArray = $nameArray ? ',' . implode(',', $nameArray) : '';
        return $filename . $nameArray . '.' . $extension;
    }
public function toString ( ) { $ params = $ this -> toArray ( ) ; $ filename = $ params [ 'filename' ] ; $ extension = $ params [ 'extension' ] ; unset ( $ params [ 'filename' ] , $ params [ 'extension' ] ) ; ksort ( $ params ) ; $ mapping = array_flip ( $ this -> argMapping ) ; $ defaults = $ this -> argDefaults ; $ nameArray = array ( ) ; foreach ( $ params as $ key => $ value ) { //remove value if as same as default setting if ( $ value !== null && $ value !== $ defaults [ $ key ] ) { $ nameArray [ $ mapping [ $ key ] ] = $ mapping [ $ key ] . '_' . $ value ; } } $ nameArray = $ nameArray ? ',' . implode ( ',' , $ nameArray ) : '' ; return $ filename . $ nameArray . '.' . $ extension ; }
Serialize to query string

@return string
Serialize to query string