for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* DialogLibraryTrait.php
*
* Common functions 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\Plugin\Response\Dialog\Library;
trait DialogLibraryTrait
{
* The dialog library helper
* @var DialogLibraryHelper
protected $xHelper;
* Get the library name
* @return string
abstract public function getName(): string;
* Get the helper
* @return DialogLibraryHelper
public function helper(): DialogLibraryHelper
return $this->xHelper;
}
* Get the library base URI
public function getUri(): string
return '';
* Get the library subdir for the URI
public function getSubdir(): string
* Get the library version for the URI
public function getVersion(): string
* 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