private function AttachContent($isNew)
    {
        switch ($this->Location()) {
            case Enums\ContentLocation::Layout():
                $this->AttachLayoutContent($isNew);
                break;

            case Enums\ContentLocation::Page():
                $this->AttachPageContent($isNew);
                break;


            case Enums\ContentLocation::Container():
                $this->AttachContainerContent($isNew);
                break;
        }
    }
private function AttachContent($isNew)
    {
        switch ($this->Location()) {
            case Enums\ContentLocation::Layout():
                $this->AttachLayoutContent($isNew);
                break;

            case Enums\ContentLocation::Page():
                $this->AttachPageContent($isNew);
                break;


            case Enums\ContentLocation::Container():
                $this->AttachContainerContent($isNew);
                break;
        }
    }
private function AttachContent ( $ isNew ) { switch ( $ this -> Location ( ) ) { case Enums \ ContentLocation :: Layout ( ) : $ this -> AttachLayoutContent ( $ isNew ) ; break ; case Enums \ ContentLocation :: Page ( ) : $ this -> AttachPageContent ( $ isNew ) ; break ; case Enums \ ContentLocation :: Container ( ) : $ this -> AttachContainerContent ( $ isNew ) ; break ; } }
Attaches content to tree item
@param boolean $isNew True if content is new
Attaches content to tree item