public function isEmbargoed()
    {
        if (is_object($this->EmbargoedUntilDate)) {
            $this->EmbargoedUntilDate = $this->EmbargoedUntilDate->Value;
        }

        $embargoed = false;

        if ($this->EmbargoedIndefinitely) {
            $embargoed = true;
        } elseif ($this->EmbargoedUntilPublished) {
            $embargoed = true;
        } elseif (!empty($this->EmbargoedUntilDate)) {
            if (SS_Datetime::now()->Value < $this->EmbargoedUntilDate) {
                $embargoed = true;
            }
        }

        return $embargoed;
    }
public function isEmbargoed()
    {
        if (is_object($this->EmbargoedUntilDate)) {
            $this->EmbargoedUntilDate = $this->EmbargoedUntilDate->Value;
        }

        $embargoed = false;

        if ($this->EmbargoedIndefinitely) {
            $embargoed = true;
        } elseif ($this->EmbargoedUntilPublished) {
            $embargoed = true;
        } elseif (!empty($this->EmbargoedUntilDate)) {
            if (SS_Datetime::now()->Value < $this->EmbargoedUntilDate) {
                $embargoed = true;
            }
        }

        return $embargoed;
    }
public function isEmbargoed ( ) { if ( is_object ( $ this -> EmbargoedUntilDate ) ) { $ this -> EmbargoedUntilDate = $ this -> EmbargoedUntilDate -> Value ; } $ embargoed = false ; if ( $ this -> EmbargoedIndefinitely ) { $ embargoed = true ; } elseif ( $ this -> EmbargoedUntilPublished ) { $ embargoed = true ; } elseif ( ! empty ( $ this -> EmbargoedUntilDate ) ) { if ( SS_Datetime :: now ( ) -> Value < $ this -> EmbargoedUntilDate ) { $ embargoed = true ; } } return $ embargoed ; }
Returns if this is Document is embargoed.

@return bool
Returns if this is Document is embargoed .