PHP Classes

File: src/Plugin/Code/ReadyScriptGenerator.php

Recommend this page to a friend!
  Packages of Thierry Feuzeu   Jaxon   src/Plugin/Code/ReadyScriptGenerator.php   Download  
File: src/Plugin/Code/ReadyScriptGenerator.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change:
Date: 1 year ago
Size: 648 bytes
 

Contents

Class file image Download
<?php

/**
 * ReadyScriptGenerator.php
 *
 * Generate the first ready script for Jaxon.
 *
 * @package jaxon-core
 * @author Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @copyright 2025 Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
 * @link https://github.com/jaxon-php/jaxon-core
 */

namespace Jaxon\Plugin\Code;

use Jaxon\Plugin\AbstractCodegenerator;

class ReadyScriptGenerator extends AbstractCodeGenerator
{
    /**
     * @inheritDoc
     */
    public function getScript(): string
    {
        return "jaxon.dom.ready(() => jaxon.processCustomAttrs());";
    }
}