for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* AbstractDialogLibrary.php
*
* Base class for javascript dialog libraries.
* @package jaxon-core
* @author Thierry Feuzeu <[email protected]>
* @copyright 2016 Thierry Feuzeu <[email protected]>
* @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
* @link https://github.com/jaxon-php/jaxon-dialogs
*/
namespace Jaxon\Dialogs\Dialog;
use function Jaxon\Dialogs\dialog;
abstract class AbstractLibrary
{
* The dialog library helper
* @var LibraryHelper
private $xHelper = null;
* Get the library name
* @return string
abstract public function getName(): string;
* Get the helper
* @return LibraryHelper
public function helper(): LibraryHelper
return $this->xHelper ?: $this->xHelper = dialog()->getLibraryHelper($this->getName());
}
* Get the library base URI
public function getUri(): string
return '';
* Get the CSS header code and file includes
public function getJs(): string
* Get the javascript header code and file includes
public function getCss(): string
* Get the javascript code to be printed into the page
public function getScript(): string
* Get the javascript code to be executed on page load
public function getReadyScript(): string