public function addContent($content)
    {
        if ($content instanceof Page) {
            $this->addPage($content);
        }
        else {
            if ($content) {
                $this->addChild($content);
            }
            else {
                throw new Exception("Unknown content type.");
            }
        }
    }
public function addContent($content)
    {
        if ($content instanceof Page) {
            $this->addPage($content);
        }
        else {
            if ($content) {
                $this->addChild($content);
            }
            else {
                throw new Exception("Unknown content type.");
            }
        }
    }
public function addContent ( $ content ) { if ( $ content instanceof Page ) { $ this -> addPage ( $ content ) ; } else { if ( $ content ) { $ this -> addChild ( $ content ) ; } else { throw new Exception ( "Unknown content type." ) ; } } }
Add content to site.

@param  Page|Content $content
@throws Exception
Add content to site .