no puedes incluir heredoc de esa forma,
no debe tener otros caracteres ni tabuladores ni cometarios excepto echo o alguna variable, lo mejor es recurrir a una variable
Código PHP:
$str = <<<EOT
todo tu codigo
EOT;
//luego llamas a tu función con la variable:
$paginaInicio -> SetContenidos($str);
si te fijas el hightlight php me reconoce el heredoc colocandolo en color verde, puedes recurrir a notepad++, netbeans 6.9 o un IDE similar que maneje php para verificar a simple vista el heredoc bien implementado
y por favor
no repitas el tema:
http://www.forosdelweb.com/f91/heredoc-836319/