Skip to content

Commit

Permalink
GIR-5932 IMP: add blog title to db
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua committed Jan 17, 2024
1 parent 4161c77 commit 08e1dc8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Api/Data/SiteInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface SiteInterface extends ExtensibleDataInterface
const REPLACE_MEDIA_URLS = 'replace_media_urls';
const ENABLE_BLOG = 'enable_blog';
const ENABLE_BLOG_CATEGORIES = 'enable_blog_categories';
const BLOG_TITLE = 'blog_title';
const BLOG_PREFIX = 'blog_prefix';
const BLOG_STORES = 'blog_stores';

Expand Down Expand Up @@ -151,6 +152,19 @@ public function getEnableBlogCategories(): ?bool;
*/
public function setEnableBlogCategories(?bool $enableBlogCategories): SiteInterface;

/**
* Get blog_title
* @return string
*/
public function getBlogTitle(): ?string;

/**
* Set blog_title
* @param string $blogTitle
* @return SiteInterface
*/
public function setBlogTitle(?string $blogTitle);

/**
* Get blog_prefix
* @return string
Expand Down
19 changes: 19 additions & 0 deletions Model/Data/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,25 @@ public function setEnableBlogCategories(?bool $enableBlogCategories): SiteInterf
{
return $this->setData(self::ENABLE_BLOG_CATEGORIES, $enableBlogCategories);
}

/**
* Get blog_title
* @return string
*/
public function getBlogTitle(): ?string
{
return $this->_get(self::BLOG_TITLE);
}

/**
* Set blog_title
* @param string $apiPassword
* @return SiteInterface
*/
public function setBlogTitle(?string $blogTitle)
{
return $this->setData(self::BLOG_TITLE, $blogTitle);
}


/**
Expand Down
1 change: 1 addition & 0 deletions etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<column default="0" name="enable_blog" nullable="false" xsi:type="boolean"/>
<column default="0" name="enable_blog_categories" nullable="false" xsi:type="boolean"/>
<column length="255" name="blog_prefix" nullable="true" xsi:type="varchar"/>
<column length="255" name="blog_title" nullable="true" xsi:type="varchar"/>
<column length="255" name="blog_stores" nullable="false" xsi:type="varchar"/>
</table>
</schema>

0 comments on commit 08e1dc8

Please sign in to comment.