use Cubist\Util\Data;
use Cubist\Util\Files\VirtualDirectory;
-class DummyCompiler implements CompilerInterface {
+class DummyCompiler implements CompilerInterface
+{
/**
* @var Data
*/
protected $_data;
- public function addContentLock($page, $unlockConditions = '') {
+ public function addContentLock($page, $unlockConditions = '')
+ {
// TODO: Implement addContentLock() method.
}
- public function addTriggersLink($page, $link, $delay = 0) {
+ public function addTriggersLink($page, $link, $delay = 0)
+ {
// TODO: Implement addTriggersLink() method.
}
- public function addAudiodescription($link) {
+ public function addAudiodescription($link)
+ {
// TODO: Implement addAudiodescription() method.
}
- public function addBookmarkGroup($link) {
+ public function addBookmarkGroup($link)
+ {
// TODO: Implement addBookmarkGroup() method.
}
- public function getConfigZIP($d, $file = null, $uid = null, $page = null) {
+ public function getConfigZIP($d, $file = null, $uid = null, $page = null)
+ {
// TODO: Implement getConfigZIP() method.
}
- public function getSetting($key, $default = null) {
+ public function getSetting($key, $default = null)
+ {
return $this->_data->get($key, $default);
}
- public function setSetting($key, $value) {
+ public function setSetting($key, $value)
+ {
$this->_data->set($key, $value);
}
- public function getVirtualDirectory(): VirtualDirectory {
+ public function getVirtualDirectory(): VirtualDirectory
+ {
// TODO: Implement getVirtualDirectory() method.
}
- public function getWorkingDir(): string {
+ public function getWorkingDir(): string
+ {
// TODO: Implement getWorkingDir() method.
}
- public function setWorkingDir(string $wdir) {
+ public function setWorkingDir(string $wdir)
+ {
// TODO: Implement setWorkingDir() method.
}
- public function working_path($path = ''): string {
+ public function working_path($path = ''): string
+ {
// TODO: Implement working_path() method.
}
- public function source_path($path = ''): string {
+ public function source_path($path = ''): string
+ {
// TODO: Implement source_path() method.
}
- public function page_path($page, $path = ''): string {
+ public function page_path($page, $path = ''): string
+ {
// TODO: Implement page_path() method.
}
- public function getWidth($page = 1) {
+ public function getWidth($page = 1)
+ {
// TODO: Implement getWidth() method.
}
- public function getHeight($page = 1) {
+ public function getHeight($page = 1)
+ {
// TODO: Implement getHeight() method.
}
- public function virtualToPhysical($virtual) {
+ public function virtualToPhysical($virtual)
+ {
// TODO: Implement virtualToPhysical() method.
}
- public function getPagePDFSource($page): string {
+ public function getPagePDFSource($page): string
+ {
// TODO: Implement getPagePDFSource() method.
}
- public function addJsLib($name, $files) {
+ public function addJsLib($name, $files)
+ {
// TODO: Implement addJsLib() method.
}
/**
* @param Data $data
*/
- public function setData(Data $data): void {
+ public function setData(Data $data): void
+ {
$this->_data = $data;
}
- public function getCacheDir(string $path) {
+ public function getCacheDir(string $path)
+ {
// TODO: Implement getCacheDir() method.
}
- public function isOnePage(): bool {
+ public function isOnePage(): bool
+ {
// TODO: Implement isOnePage() method.
}
- public function simpleCopyLinkFile($source, $dest) {
+ public function simpleCopyLinkFile($source, $dest)
+ {
// TODO: Implement simpleCopyLinkFile() method.
}
- public function unzipFile($file, $moveAssets = false, $baseDir = null, $junkPaths = false) {
+ public function unzipFile($file, $moveAssets = false, $baseDir = null, $junkPaths = false)
+ {
// TODO: Implement unzipFile() method.
}
- public function addPDFJS($force = false) {
+ public function addPDFJS($force = false)
+ {
// TODO: Implement addPDFJS() method.
}
- public function addSEOArticle($page, $title, $intro, $image, $id = null, $url = null, $content = '') {
+ public function addSEOArticle($page, $title, $intro, $image, $id = null, $url = null, $content = '')
+ {
// TODO: Implement addSEOArticle() method.
}
- public function getWidthForLinks($page=1) {
+ public function getWidthForLinks($page = 1)
+ {
// TODO: Implement getWidthForLinks() method.
}
- public function getHeightForLinks($page=1) {
+ public function getHeightForLinks($page = 1)
+ {
// TODO: Implement getHeightForLinks() method.
}
- public function isSinglePage(): bool {
+ public function isSinglePage(): bool
+ {
return $this->isOnePage();
}
- public function isDoublePage(): bool {
+ public function isDoublePage(): bool
+ {
return !$this->isSinglePage();
}
- public function getPageNumber(): int {
+ public function getPageNumber(): int
+ {
// TODO: Implement getPageNumber() method.
}
- public function getQuality(): int {
+ public function getQuality(): int
+ {
// TODO: Implement getQuality() method.
}
// TODO: Implement addIssue() method.
}
- public function addPageBackground($page, $color, $arrowsColor,$image)
+ public function addPageBackground($page, $color, $arrowsColor, $image)
{
// TODO: Implement addPageBackgroundColor() method.
}
{
// TODO: Implement getLinkAlternativeText() method.
}
+
+ public function shortenURL($url)
+ {
+ return $url;
+ }
}