Пример #1
0
 function testIsExternal()
 {
     $local = 'http://example.org';
     $subdomain = 'http://cdn.example.org';
     $external = 'http://upstatement.com';
     $this->assertFalse(TimberURLHelper::is_external($local));
     $this->assertFalse(TimberURLHelper::is_external($subdomain));
     $this->assertTrue(TimberURLHelper::is_external($external));
 }
Пример #2
0
 /**
  *
  *
  * @return bool
  */
 function is_external()
 {
     if ($this->type != 'custom') {
         return false;
     }
     return TimberURLHelper::is_external($this->url);
 }
Пример #3
0
 /**
  * @deprecated
  */
 static function is_external($url)
 {
     return TimberURLHelper::is_external($url);
 }