-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marek Fojtl
committed
Oct 25, 2021
1 parent
72f36fc
commit 89d0756
Showing
13 changed files
with
239 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
|
||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
interface IAttachment | ||
{ | ||
public function getName(): string; | ||
|
||
public function getData(): array; | ||
|
||
public function getColorScheme(): IColorScheme; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
|
||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
|
||
interface IAttachmentData | ||
{ | ||
|
||
public function getAttachmentName(): string; | ||
|
||
public function getAttachmentData(): \stdClass; | ||
|
||
/** | ||
* @return mixed[] | ||
*/ | ||
public function getAttachmentExtensionData(): array; | ||
|
||
public function getColorSchemeId(): int; | ||
|
||
public function getOrder(): int; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
|
||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
|
||
use Poly\Cms\Renderer\Renderer\Model\AttachmentModel; | ||
|
||
interface IAttachmentFactory | ||
{ | ||
/** | ||
* @return AttachmentModel | ||
*/ | ||
public function createAttachment(IAttachmentData $data): AttachmentModel; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
|
||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
|
||
interface IColorScheme | ||
{ | ||
public function getId(): int; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
|
||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
|
||
interface IExtension | ||
{ | ||
public function getExtNamespace(): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
|
||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
|
||
interface IImage | ||
{ | ||
public function getId(): int; | ||
|
||
public function getTitle(): string; | ||
|
||
public function getFilePath(): string; | ||
|
||
public function getThumbnail(int $thumb): IImageThumbnail; | ||
|
||
public function getDescription(): string; | ||
|
||
public function getFilename(): string; | ||
|
||
public function getDominantColor(): string; | ||
|
||
public function getTags(): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
|
||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
|
||
interface IImageThumbnail | ||
{ | ||
public function getFilePath(): string; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
interface IMenu | ||
{ | ||
/** | ||
* @return IMenuItem[] | ||
*/ | ||
public function getMenuItems(): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
interface IMenuItem | ||
{ | ||
/** | ||
* @return IMenuItem[] | ||
*/ | ||
public function getChildren(): array; | ||
|
||
public function getRoute(): ?IRoute; | ||
|
||
public function getRedirect(): ?string; | ||
|
||
public function getPage(): ?IPage; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
use Poly\Cms\Renderer\Model\Layout; | ||
use Poly\Cms\Renderer\Model\SectionList; | ||
|
||
interface IPage | ||
{ | ||
public function getId(): int; | ||
|
||
public function getName(): string; | ||
|
||
public function getDescription(): string; | ||
|
||
public function getKeywords(): string; | ||
|
||
public function getLanguage(): string; | ||
|
||
public function getTitle(): string; | ||
|
||
public function getLayout(): Layout; | ||
|
||
public function getSections(): SectionList; | ||
|
||
public function isBlocked(): bool; | ||
|
||
public function isStable(): bool; | ||
|
||
/** | ||
* @return IRoute[] | ||
*/ | ||
public function getRoutes(): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
|
||
interface IRoute | ||
{ | ||
public function getInputUrl(): string; | ||
|
||
|
||
public function getRedirectToUrl(): ?string; | ||
|
||
|
||
public function isReadGetEnabled(): bool; | ||
|
||
|
||
public function isReadPostEnabled(): bool; | ||
|
||
|
||
public function isWriteGetEnabled(): bool; | ||
|
||
|
||
public function isReadingPostEnabled(): bool; | ||
|
||
|
||
public function getMenuItem(): ?IMenuItem; | ||
|
||
public function setMenuItem(IMenuItem $menuItem): IRoute; | ||
|
||
public function getPage(): ?IPage; | ||
|
||
|
||
public function getAnchor(): ?string; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
interface IScriptContainer | ||
{ | ||
public function getGtm(): ?string; | ||
|
||
public function getGads(): ?string; | ||
|
||
public function getSklik(): ?string; | ||
|
||
public function getSklikRetargeting(): ?string; | ||
|
||
public function getFbPixel(): ?string; | ||
|
||
public function getNotifikuj(): ?string; | ||
|
||
public function getSmartsupp(): ?string; | ||
|
||
public function getToplist(): ?int; | ||
|
||
public function getGa(): ?string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace PolyWeb\Attachment\Sdk\Model; | ||
|
||
interface ITag | ||
{ | ||
public function getId(): int; | ||
|
||
public function getName(): string; | ||
|
||
/** | ||
* @return IImage[] | ||
*/ | ||
public function getImages(): array; | ||
|
||
public function addImage(IImage $image): self; | ||
} |