Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
SitemapItem Class Reference
Inheritance diagram for SitemapItem:
SitemapItemInterface

Public Member Functions

 __construct ($url, $priority, $changeFrequency, $updatedAt=null, $images=null)
 
 getUrl ()
 
 getPriority ()
 
 getChangeFrequency ()
 
 getImages ()
 
 getUpdatedAt ()
 

Detailed Description

Definition at line 9 of file SitemapItem.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $url,
  $priority,
  $changeFrequency,
  $updatedAt = null,
  $images = null 
)

SitemapItem constructor.

Parameters
string$url
string$priority
string$changeFrequency
string | null$updatedAt
array | null$images

Definition at line 45 of file SitemapItem.php.

46  {
47  $this->url = $url;
48  $this->priority = $priority;
49  $this->changeFrequency = $changeFrequency;
50  $this->updatedAt = $updatedAt;
51  $this->images = $images;
52  }

Member Function Documentation

◆ getChangeFrequency()

getChangeFrequency ( )

{Get change frequency

Returns
string
}

Implements SitemapItemInterface.

Definition at line 73 of file SitemapItem.php.

74  {
75  return $this->changeFrequency;
76  }

◆ getImages()

getImages ( )

{Get images

Returns
array|null
}

Implements SitemapItemInterface.

Definition at line 81 of file SitemapItem.php.

82  {
83  return $this->images;
84  }

◆ getPriority()

getPriority ( )

{Get priority

Returns
string
}

Implements SitemapItemInterface.

Definition at line 65 of file SitemapItem.php.

66  {
67  return $this->priority;
68  }

◆ getUpdatedAt()

getUpdatedAt ( )

{Get last update date

Returns
string|null
}

Implements SitemapItemInterface.

Definition at line 89 of file SitemapItem.php.

90  {
91  return $this->updatedAt;
92  }

◆ getUrl()

getUrl ( )

{Get url

Returns
string
}

Implements SitemapItemInterface.

Definition at line 57 of file SitemapItem.php.

58  {
59  return $this->url;
60  }

The documentation for this class was generated from the following file: