forked from projects/fipamo
ro
c85e145774
the theme controller was grabbing the index by its page name, which was bad because that might change. that was replaced with a getById function since the index id will always be 0 since it's the first page. this is a seperate function from getByUuid which is a unique indentifier for each page which was being used interchangably before the fix. all of those references have been cleaned up to reference which type of id is needed there was also a bug that happened on rendering when there were special characters in the title. this was solved by saving the title as a urlencoded string and then just decodded when it was needed for display on the front end
23 lines
377 B
PHP
23 lines
377 B
PHP
<?php
|
|
|
|
namespace App\Interfaces;
|
|
|
|
interface PageRepositoryInterface
|
|
{
|
|
public function getAll();
|
|
|
|
public function getById($id);
|
|
|
|
public function getByUuid($uuid);
|
|
|
|
public function getBySlug($slug);
|
|
|
|
public function delete($uuid);
|
|
|
|
public function create($page);
|
|
|
|
public function update($page);
|
|
|
|
public function getGroup($num, $limit, $filter);
|
|
}
|