public function embargoUntilPublished($write = true)
    {
        $this->EmbargoedUntilPublished = true;

        if ($write) {
            $this->write();
        }

        return $this;
    }
public function embargoUntilPublished($write = true)
    {
        $this->EmbargoedUntilPublished = true;

        if ($write) {
            $this->write();
        }

        return $this;
    }
public function embargoUntilPublished ( $ write = true ) { $ this -> EmbargoedUntilPublished = true ; if ( $ write ) { $ this -> write ( ) ; } return $ this ; }
Hides the document until any page it is linked to is published

@param bool $write Save change to database

@return DMSDocument
Hides the document until any page it is linked to is published