public function prepareTitle()
    {
        $title = $this->format;

        // replace the placeholders with actual data
        foreach (array_keys(self::$db) as $key) {
            $title = str_ireplace('%' . $key, $this->$key, $title);
        }

        return $title;
    }
public function prepareTitle()
    {
        $title = $this->format;

        // replace the placeholders with actual data
        foreach (array_keys(self::$db) as $key) {
            $title = str_ireplace('%' . $key, $this->$key, $title);
        }

        return $title;
    }
public function prepareTitle ( ) { $ title = $ this -> format ; // replace the placeholders with actual data foreach ( array_keys ( self :: $ db ) as $ key ) { $ title = str_ireplace ( '%' . $ key , $ this -> $ key , $ title ) ; } return $ title ; }
Returns the title according to the configuration

@return string
Returns the title according to the configuration