public function get_page_type_idstring($id) {
        foreach ($this->types as $pagetype) {
            if ((int)$pagetype->typeid === (int)$id) {
                return $pagetype->idstring;
            }
        }
        return 'unknown';
    }
public function get_page_type_idstring($id) {
        foreach ($this->types as $pagetype) {
            if ((int)$pagetype->typeid === (int)$id) {
                return $pagetype->idstring;
            }
        }
        return 'unknown';
    }
public function get_page_type_idstring ( $ id ) { foreach ( $ this -> types as $ pagetype ) { if ( ( int ) $ pagetype -> typeid === ( int ) $ id ) { return $ pagetype -> idstring ; } } return 'unknown' ; }
Returns the basic string used to identify a page type provided with an id

This string can be used to instantiate or identify the page type class.
If the page type id is unknown then 'unknown' is returned

@param int $id
@return string
Returns the basic string used to identify a page type provided with an id