Pop\Feed\Reader::isFacebook PHP 메소드

isFacebook() 공개 메소드

Method to determine if the feed type is Facebook
public isFacebook ( ) : boolean
리턴 boolean
    public function isFacebook()
    {
        return stripos($this->adapter->url(), 'facebook') !== false;
    }

Usage Example

예제 #1
0
 public function testBooleanMethods()
 {
     $feed = new Feed\Reader(new Feed\Format\Atom('http://gdata.youtube.com/feeds/base/standardfeeds/most_viewed', 4));
     $this->assertTrue($feed->isAtom());
     $this->assertFalse($feed->isRss());
     $this->assertFalse($feed->isJson());
     $this->assertFalse($feed->isPhp());
     $this->assertTrue($feed->isYoutube());
     $this->assertFalse($feed->isFacebook());
     $this->assertFalse($feed->isTwitter());
     $this->assertFalse($feed->isVimeo());
     $this->assertFalse($feed->isPlaylist());
 }