library/Search/Google.php
public function getModifiedDate($item)
    {
        if (!isset($item->pagemap)) {
            return null;
        }

        $meta = $item->pagemap->metatags[0];
        $dateMod = null;

        if (isset($meta->moddate)) {
            $dateMod = $meta->moddate;
        } elseif (isset($meta->pubdate)) {
            $dateMod = $meta->pubdate;
        } elseif (isset($meta->{'last-modified'})) {
            $dateMod = $meta->{'last-modified'};
        }

        $dateMod = $this->convertDate($dateMod);

        return $dateMod;
    }
public function getModifiedDate($item)
    {
        if (!isset($item->pagemap)) {
            return null;
        }

        $meta = $item->pagemap->metatags[0];
        $dateMod = null;

        if (isset($meta->moddate)) {
            $dateMod = $meta->moddate;
        } elseif (isset($meta->pubdate)) {
            $dateMod = $meta->pubdate;
        } elseif (isset($meta->{'last-modified'})) {
            $dateMod = $meta->{'last-modified'};
        }

        $dateMod = $this->convertDate($dateMod);

        return $dateMod;
    }
public function getModifiedDate ( $ item ) { if ( ! isset ( $ item -> pagemap ) ) { return null ; } $ meta = $ item -> pagemap -> metatags [ 0 ] ; $ dateMod = null ; if ( isset ( $ meta -> moddate ) ) { $ dateMod = $ meta -> moddate ; } elseif ( isset ( $ meta -> pubdate ) ) { $ dateMod = $ meta -> pubdate ; } elseif ( isset ( $ meta -> { 'last-modified' } ) ) { $ dateMod = $ meta -> { 'last-modified' } ; } $ dateMod = $ this -> convertDate ( $ dateMod ) ; return $ dateMod ; }
Gets the modified date for an item
@param  object $item The item
@return string       The modified date
Gets the modified date for an item