public function publishSlides()
    {
        $slides = SlideImage::get();
        $ct = 0;
        foreach ($this->getSlides() as $slide) {
            if ($slide->ShowSlide == 1) {
                if (!$slide->Name) {
                    $slide->Name = "No Name";
                }
                $slide->writeToStage('Stage');
                $slide->publishRecursive();
                ++$ct;
            }
        }
        static::write_message($ct . " SlideImages updated");
    }
public function publishSlides()
    {
        $slides = SlideImage::get();
        $ct = 0;
        foreach ($this->getSlides() as $slide) {
            if ($slide->ShowSlide == 1) {
                if (!$slide->Name) {
                    $slide->Name = "No Name";
                }
                $slide->writeToStage('Stage');
                $slide->publishRecursive();
                ++$ct;
            }
        }
        static::write_message($ct . " SlideImages updated");
    }
public function publishSlides ( ) { $ slides = SlideImage :: get ( ) ; $ ct = 0 ; foreach ( $ this -> getSlides ( ) as $ slide ) { if ( $ slide -> ShowSlide == 1 ) { if ( ! $ slide -> Name ) { $ slide -> Name = "No Name" ; } $ slide -> writeToStage ( 'Stage' ) ; $ slide -> publishRecursive ( ) ; ++ $ ct ; } } static :: write_message ( $ ct . " SlideImages updated" ) ; }
mark all ProductDetail records as ShowInMenus = 0.
mark all ProductDetail records as ShowInMenus = 0 .